Comments (7)
@buptlibo Hi, You can find the logs in the .local/share/nvim/nvim-java.log. Can you remove the file, then open up a java project file and send the logs
from nvim-java.
@buptlibo Hi, You can find the logs in the .local/share/nvim/nvim-java.log. Can you remove the file, then open up a java project and send the logs
Here is the log
nvim-java.log
from nvim-java.
@buptlibo
Did you open a .java file? If so it seems that you have not run require('lspconfig').jdtls.setup({})
. There is no indication of running that. You can just paste the content of the log btw.
from nvim-java.
@buptlibo Did you open a .java file? If so it seems that you have not run
require('lspconfig').jdtls.setup({})
. There is no indication of running that. You can just paste the content of the log btw.
Yes, I opened the SpringbootApplication.java.
I add the nvim-java plugin like the wiki "https://github.com/nvim-java/nvim-java/wiki/Lazyvim".
Just now, I add the
"require("java").setup()
require("lspconfig").jdtls.setup({})" to my config, and the log looks like
[INFO 六 12/16 18:47:34 2023] ...e/nvim/site/lazy/nvim-java/lua/java/startup/nvim-dep.lua:24: check neovim plugin dependencies [INFO 六 12/16 18:47:34 2023] ...lazy/nvim-java/lua/java/startup/lspconfig-setup-wrap.lua:11: wrap lspconfig.java.setup function to inject a custom java config [INFO 六 12/16 18:47:34 2023] ...ocal/share/nvim/site/lazy/nvim-java/lua/java/api/dap.lua:13: add LspAttach event handlers to setup dap adapter & config [INFO 六 12/16 18:47:34 2023] ...e/nvim/site/lazy/nvim-java/lua/java/startup/nvim-dep.lua:24: check neovim plugin dependencies [INFO 六 12/16 18:47:34 2023] ...lazy/nvim-java/lua/java/startup/lspconfig-setup-wrap.lua:11: wrap lspconfig.java.setup function to inject a custom java config [INFO 六 12/16 18:47:34 2023] ...ocal/share/nvim/site/lazy/nvim-java/lua/java/api/dap.lua:13: add LspAttach event handlers to setup dap adapter & config [INFO 六 12/16 18:47:34 2023] ...e/nvim/site/lazy/nvim-java/lua/java/startup/nvim-dep.lua:24: check neovim plugin dependencies [INFO 六 12/16 18:47:34 2023] ...lazy/nvim-java/lua/java/startup/lspconfig-setup-wrap.lua:11: wrap lspconfig.java.setup function to inject a custom java config [INFO 六 12/16 18:47:34 2023] ...ocal/share/nvim/site/lazy/nvim-java/lua/java/api/dap.lua:13: add LspAttach event handlers to setup dap adapter & config
from nvim-java.
Still there is no any indication of you calling lspconfig.jdtls.setup({})
. This is something you should do after setting up nvim-java. Note that lazyvim configuration might not work for you because every one setup things differently. You can try calling lspconfig.jdtls.setup({})
after java.setup()
.
Your dotfile is too big. If you can provide me a config without a lot of plugins and stuff I might be able to help you. BTW, I tried cloning and it fails at some point. Probably .git
is broken.
from nvim-java.
Maybe I found the problem in my nvim dotfiles. I use the lazy.nvim, if I set the nvim-java lazy=true(even if I add the ft="java"), the dap configuration will not automcatically work, but when I remove the the lazy setting, it works(sometime, if set lazy=false, the neovim start throw error of nvim-dap. When I enter quickly, the dap config will not auto config, but if I wait a little while, then enter, the java dap configured success. From this, I think the problem is the plugin start sequence caused).
If I solved this problem, I will reply here, it may take a lot of time, cause I'm not familiar with neovim and the lua configuration. My nvim dotfiles is forked from others.
from nvim-java.
@buptlibo well, if it works, sure. Setting up DAP takes time. That's why I have notification for them. You should see DAP configured
when it's done. I will change the message to a user friendlier one
from nvim-java.
Related Issues (20)
- bug: stop running release please in PRs
- bug: dap config not found HOT 15
- bug: Typo in JavaProfile command
- bug: JavaProfile profile deletion does not work
- bug: Failure when activating non existing profile HOT 2
- feature: Support of jdtls Java extensions. HOT 2
- feature: when tests are executed the results are auto opened
- bug: openjdk is installed regaredless fo the auto_install = false setting HOT 1
- mason keeps trying to install an invalid jdtls version HOT 4
- bug: Lombok is nog longer detected HOT 5
- bug: Jdtls not using the installed openjdk-17
- bug: After running JavaRunnerRunMain, it works fine. But when I close the opened terminal and try again it doesn't work HOT 3
- bug: DAP config not found - multimodule projects HOT 4
- feature: Extract variable refactor command
- Installation documentation outdated
- bug: jdtls installation fails because it is trying to download a file which does not exist HOT 3
- feature: Application to run multiple application at the same time in multi module project HOT 4
- feature: support remote debugging
- feature: Hoping for a Complete Configuration Demo to Set Up and Run Java and Maven Projects HOT 3
- bug: cant run the springboot project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-java.