Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliJ - Better IDE Support #13910

Open
jdaugherty opened this issue Dec 5, 2024 · 5 comments
Open

IntelliJ - Better IDE Support #13910

jdaugherty opened this issue Dec 5, 2024 · 5 comments

Comments

@jdaugherty
Copy link
Contributor

jdaugherty commented Dec 5, 2024

Issue description

Placeholder ticket to discuss issues with current IntelliJ integration and how we can help provide better IDE support. Please consider voting for these issues on JetBrain's tracker to help us get better IDE support.

Known IntelliJ Issues

  1. Attach Sources Issues - 'Attach Roots' dialog after downloading library sources in a Gradle-based project - IDEA-363773
  2. Tag Libs - cannot go to declaration unless sources are downloaded - IDEA-364650
  3. Tag Libs - attribute go to support - IDEA-199021
  4. Intellij Does not resolve gradle API classes - wrong gradle distribution selected (use all instead of bin if using gradle via wrapper OR use a local gradle distribution with the sources)
  5. Using go to declaration in Multiproject builds will open the class file - IDEA-342753
@jdaugherty
Copy link
Contributor Author

Tag Libs - go to declaration

Reached out to intellij's support because tag libs inside of a project seem to support go to declaration, while tag libs outside of the project don't always resolve (for example the asset plugin or the spring security core plugin tags)

Open ticket IDEA-199021

@codeconsole
Copy link
Contributor

codeconsole commented Dec 6, 2024

Tested in Grails 6.2.2

Fields plugin tags do not autocomplete and show up red.
asset:image,asset:link,asset:stylesheet... asset pipeline tags to not autocomplete and show up in red

Seems like base tags are back to clicking into source again. I was previously ending up in an xml file.
g:form clicks into FormTagLib.groovy as expected
g:if clicks into GroovyIfTag as expected
g:message clicks into ValidationTagLib as expected
g:link works.

Do we have an example of any Plugin that has working autocomplete tags?
@jdaugherty have you tried Grails 5.x? Perhaps something else was removed that broke everything similar to how shell removal in 6.2.x broke the IntelliJ plugin

@jdaugherty
Copy link
Contributor Author

jdaugherty commented Dec 8, 2024

Intellij Does not resolve gradle API classes

If the project is setup with a gradle distribution of 'bin' instead of 'all' in the wrapper properties:
image

Intellij won't find the gradle source files. We should consider either specifying 'all' for our projects, adding a gradle wrapper task, or as part of .sdkmanrc add gradle. The downside of using 'all' is it's a 200mb download. Maybe this is a reason to use .sdkmanrc gradle define?

@jdaugherty
Copy link
Contributor Author

I've updated the ticket description for more IDEA tickets to document the problems found by go to research on the tag libs.

@jdaugherty
Copy link
Contributor Author

I added https://youtrack.jetbrains.com/issue/IDEA-342753 to the list of issues since it seems to be persistent under some circumstances. It may actually be fixed in environments that are setup from scratch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants