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

   ## Problem description
   In a GSP, tags in the current project are easily found via the go to 
declaration command, but tags in Grails plugins are not always found.
   
   For example, the spring security plugin 
(https://github.com/grails/grails-spring-security-core) has the namespace ‘sec’ 
and tags like `<sec:ifAllGranted/>` aren't found by intellij if you click go to 
declaration.
   
    In older versions this used to work consistently, but now it's not.
   
   Example project: https://github.com/jdaugherty/intellij-tag-example
   
   I think I figured out the issue.  First, if you open the 
`AssetPipelineGrailsPlugin` class, by default sources won't be downloaded.  
IntelliJ offers to download the sources, but when you download, you'll get this 
warning:
   
   _⚠️ attachment `image.png` was not included in the export_{width=50%}
   
   It's like IntelliJ doesn't understand that groovy files are sources.  
Clicking yes, will still attach the sources.  Then tag declarations will work.
   
   ## Questions
   * Can this attach roots bug be fixed?
   * Also do sources have to be always downloaded for tag resolution to work?
   * How can I force that to always occur in intellij?
   
   ---
   
   *1 attachment(s) referenced here (`image.png`) are not part of the CSV 
export.*
   *Imported from 
[IDEA-364650](https://youtrack.jetbrains.com/issue/IDEA-364650) · Type: Bug · 
Votes: 24*
   *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