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

Preserve method parameter names in JAR #31

Open
bentsherman opened this issue Sep 26, 2024 · 0 comments
Open

Preserve method parameter names in JAR #31

bentsherman opened this issue Sep 26, 2024 · 0 comments

Comments

@bentsherman
Copy link
Member

bentsherman commented Sep 26, 2024

The language server uses reflection to provide things like hover hints for built-in classes like Channel. Method parameter names are not included by default in compiled Java code, but it should be possible to include them with the -parameters flag.

I tried it with this gradle config but it didn't work:

compileJava {
    options.compilerArgs << '-parameters' 
}

compileGroovy {
    options.compilerArgs << '-parameters' 
}

It compiled but then the hover hint was still incorrect:

Channel.of(arg0: T...) -> DataflowWriteChannel<T>

I probably just did something wrong in gradle, will come back to this later

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

1 participant