jdaugherty opened a new issue, #127:
URL: https://github.com/apache/grails-intellij-plugin/issues/127

   Given a view or layout in a Grails plugin, IDEA can find the views/templates 
if the plugin is **not** specified, but fails to find them if the `plugin` attr 
is specified *and* it is self-referential (the `plugin` specified in the attr 
is the same plugin as the one you're developing.
   
   Assuming we are working in `example` (i.e., plugin descriptor = 
`ExampleGrailsPlugin.groovy`)
   
   **main.gsp**
   ```
   <%-- works: --%>
   <g:render view="/common/partial" />
   
   <%-- does not work: --%>
   <g:render view="/common/partial" plugins="example" />
   ```
   In the first (working) example, we can Cmd+click on "partial" to be taken to 
that view.
   
   In the second (non-working) example:
   
   - We cannot Cmd+click on "partial" to be taken to that view);
   - IDEA marks the attr values in red and reports that it cannot resolve:
     - directory 'common';
     - template '_partial.gsp'; or
     - symbol 'example'
   
   The inspection ought to be able to detect that the `plugin` referenced in 
the attr is self-referential and then resolve those directories and templates.
   
   ---
   
   *Imported from 
[IDEA-107228](https://youtrack.jetbrains.com/issue/IDEA-107228) · Type: Bug · 
Votes: 0*
   *Comments, attachments, dates and reporter are not part of the export — 
follow the link above for the full history.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to