Code Monkey home page Code Monkey logo

Comments (7)

seagle0128 avatar seagle0128 commented on May 24, 2024

Doesn't work for me as well. Don't know how to setup :(

Errors:

user-error: No definitions found for: foo
Error from the Language Server: no identifier found (Unknown error)

from lsp-java.

vibhavp avatar vibhavp commented on May 24, 2024

Can you try adding this to your .emacs and see whether that fixes it?

(require 'flycheck)
(lsp-flycheck-add-mode 'java-mode)
(global-flycheck-mode 1)

from lsp-java.

seagle0128 avatar seagle0128 commented on May 24, 2024

Nop for me. I think it's not related to flycheck settings.
Waiting for @tepf 's feedback.

from lsp-java.

vibhavp avatar vibhavp commented on May 24, 2024

Do unknown symbols show errors in VSCode?

from lsp-java.

seagle0128 avatar seagle0128 commented on May 24, 2024

I digg out the root cause finnaly. I fount this message in *lsp-java stderr*.

Error: Unable to access jarfile Found more than one java language server entry points: (/home/vincent/.emacs.d/eclipse.jdt.ls/server/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar /home/vincent/.emacs.d/eclipse.jdt.ls/server/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar.pack.gz)

Process lsp-java stderr finished

I deleted all *.pack.gz* in the plugins folder, and restart Emacs. It works well now.

from lsp-java.

schiegl avatar schiegl commented on May 24, 2024

Deleting *pack.gz files in the plugins directory made the plugin work. But now Emacs freezes sometimes when I try to tab complete. It's generally pretty slow as well. Furthermore it still doesn't detect simple semantic errors like the one in my first post.

from lsp-java.

yyoncho avatar yyoncho commented on May 24, 2024

Fixed with #21 . The warnings/errors are not displayed when the file that is currently open does not have classpath configured. In latest lsp-java you have to configure the projects roots:

(setq lsp-java--workspace-folders (list "/path/to/project1"
                                        "/path/to/project2"
                                        ...))

from lsp-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.