Coder Social home page Coder Social logo

Comments (7)

s1n7ax avatar s1n7ax commented on May 20, 2024

@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.

JohnWickzzz avatar JohnWickzzz commented on May 20, 2024

@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.

s1n7ax avatar s1n7ax commented on May 20, 2024

@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.

JohnWickzzz avatar JohnWickzzz commented on May 20, 2024

@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.

s1n7ax avatar s1n7ax commented on May 20, 2024

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.

JohnWickzzz avatar JohnWickzzz commented on May 20, 2024

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.

s1n7ax avatar s1n7ax commented on May 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.