-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
--enable-preview #161
Comments
Not sure I follow. Does the project use preview features? |
I don't think so, but it seemed to compile with --enable-preview by default, so it's expected to run with --enable-preview as well. |
This would have to be configured in the project configuration. Do you have a sample project where I can reproduce this? |
Sure! In VSCode, create a new sample Java project
Navigating to the default App.java with VSCode, the main function can be run by selecting "run". Navigating to the same App.java with Neovim and trying to run it with Dap Configurations (which automatically detects it), will result in the --enable-preview message from before. Hope this helps! I'm not too sure how to configure it in the project configuration. |
Can you try with #165 ? |
Works like a charm 😁 appreciate the quick fix!! |
LSP client configuration
https://github.com/axieax/dotconfig/blob/main/nvim/lua/lsp/utils.lua#L22-L80
Eclipse.jdt.ls version
latest
Steps to Reproduce
Empty Java project with no config files
:Telescope dap configurations
Select main class
Error appears when run
Expected Result
Running dap configurations successfully brings up the main classes - where selecting one would normally work.
Actual Result
For some of my Java projects, the main functions cannot be run with DAP properly due to the missing --enable-preview argument (barebones Java repo with no config file - works fine in VSCode).
The text was updated successfully, but these errors were encountered: