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

groovy.lang.MissingPropertyException from Micronaut-Core #5896

Closed
MartinBalin opened this issue Apr 27, 2023 · 0 comments · Fixed by #5899
Closed

groovy.lang.MissingPropertyException from Micronaut-Core #5896

MartinBalin opened this issue Apr 27, 2023 · 0 comments · Fixed by #5899
Assignees
Labels
kind:bug Bug report or fix VSCode Extension [ci] enable VSCode Extension tests
Milestone

Comments

@MartinBalin
Copy link
Contributor

Apache NetBeans version

Apache NetBeans 18 release candidate

What happened

Clone micronaut-core from GH, this gets you to default branch 4.0.x
Install VSNetBeans 18.0.0 RC2 https://nightlies.apache.org/netbeans/candidate/vsix/ use GraalVM 22.3.0 JDK17.
In VSNetBeans enable JavaLSP and Groovy support, both are Enabled.
Open cloned micronaut-core.
later you will see following exception thrown several times and shown also in VSCode dialog during project background scanning.

Reason: groovy.lang.MissingPropertyException: Could not get unknown property 'sourceCompatibility' for task ':aop:compileKotlin' of type org.jetbrains.kotlin.gradle.tasks.KotlinCompile.
groovy.lang.MissingPropertyException: Could not get unknown property 'sourceCompatibility' for task ':aop:compileKotlin' of type org.jetbrains.kotlin.gradle.tasks.KotlinCompile.
	at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(AbstractDynamicObject.java:85)
	at org.gradle.internal.metaobject.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:62)
	at org.gradle.api.internal.AbstractTask.property(AbstractTask.java:571)
	at org.gradle.api.DefaultTask.property(DefaultTask.java:169)
	at org.netbeans.modules.gradle.tooling.NbProjectInfoBuilder.detectSources(NbProjectInfoBuilder.java:1088)
	at```
see attachement for the full stack trace.
This DOES NOT happen when Groovy is Disabled.

### How to reproduce

See steps above.
[groovy.lang.MissingProperyExc.txt](https://github.com/apache/netbeans/files/11347233/groovy.lang.MissingProperyExc.txt)



### Did this work correctly in an earlier version?

No / Don't know

### Operating System

macOS venture

### JDK

GraalVM 22.3.0 JDK17

### Apache NetBeans packaging

Apache VSNetBeans for VSCode

### Anything else

_No response_

### Are you willing to submit a pull request?

No
@MartinBalin MartinBalin added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Apr 27, 2023
@MartinBalin MartinBalin added VSCode Extension [ci] enable VSCode Extension tests and removed needs:triage Requires attention from one of the committers labels Apr 27, 2023
@MartinBalin MartinBalin assigned sdedic and unassigned ppisl Apr 28, 2023
@mbien mbien linked a pull request Apr 29, 2023 that will close this issue
@neilcsmith-net neilcsmith-net added this to the NB18 milestone May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants