Skip to content

Grails: 'Go to' invoked on a plugin tag doesn't work unless source code is downloaded #403

Description

@jdaugherty

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 · Type: Bug · Votes: 24
Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingimported-from-youtrackMigrated from the JetBrains YouTrack IDEA tracker

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions