-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix: Qute template validation breaks when using Gradle #1237
Conversation
src/main/java/com/redhat/devtools/intellij/qute/psi/utils/PsiQuteProjectUtils.java
Outdated
Show resolved
Hide resolved
Doesn't work. When I put a breakpoint on the calling code, to display the value of templateDir, I get these logged, when opening the java class declaring the template:
grute is the project name. So the real problem is getting the proper module (grute.main) |
a0b1764
to
e1dc9af
Compare
public static @NotNull URI toUri(@NotNull Module module) { | ||
VirtualFile[] roots = ModuleRootManager.getInstance(module).getContentRoots(); | ||
if (roots.length > 0) { | ||
return toUri(roots[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not enough. The generated-sources content root shows up 1st in a myproject.main module
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
e1dc9af
to
b2a9210
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
b2a9210
to
bb7c0f5
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
bb7c0f5
to
b019358
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
b019358
to
043fae7
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
043fae7
to
3283b88
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
3283b88
to
7813220
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
7813220
to
a136c1a
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
a136c1a
to
324e5ba
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
324e5ba
to
074d74d
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
074d74d
to
054b296
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
054b296
to
5824e15
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
5824e15
to
6510c01
Compare
Please make sure the gradle test projects use gradle 8.4, like the rest. This will minimize downloads, memory usage and will keep the build as fast as possible |
...a/com/redhat/devtools/intellij/qute/psi/internal/java/AbstractQuteTemplateLinkCollector.java
Outdated
Show resolved
Hide resolved
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
6510c01
to
8aa7153
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
8aa7153
to
38eebe3
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
38eebe3
to
f7005a9
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
f7005a9
to
893288c
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
893288c
to
b46943f
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
b46943f
to
2ba842a
Compare
projects/qute/projects/gradle/qute-quickstart/gradle/wrapper/gradle-wrapper.properties
Outdated
Show resolved
Hide resolved
src/main/java/com/redhat/devtools/intellij/qute/psi/QuteSupportForTemplate.java
Outdated
Show resolved
Hide resolved
src/main/java/com/redhat/devtools/intellij/qute/psi/utils/PsiQuteProjectUtils.java
Outdated
Show resolved
Hide resolved
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
2ba842a
to
a2cc0b4
Compare
src/main/java/com/redhat/devtools/intellij/qute/psi/utils/PsiQuteProjectUtils.java
Show resolved
Hide resolved
...a/com/redhat/devtools/intellij/qute/psi/internal/java/AbstractQuteTemplateLinkCollector.java
Outdated
Show resolved
Hide resolved
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
a2cc0b4
to
a2c4c49
Compare
Fixes redhat-developer#1237 Signed-off-by: azerr <[email protected]>
a2c4c49
to
5c0bd57
Compare
Kudos, SonarCloud Quality Gate passed! |
@angelozerr thanks! |
fix: Qute template validation breaks when using Gradle
Fixes #1224