Open masalkhi opened 2 years ago
is it reproducible after M-x lsp-start-plain
?
after typing the the command, a new frame was opened:
I got the following in the *Compile-Log* buffer:
In php-project-project-find-function:
php-project.el:293:21:Warning: reference to free variable ‘root’
In end of data:
php-project.el:314:1:Warning: the following functions are not known to be
defined: when-let, root
I got the following in the *Backtrace* buffer:
Debugger entered--Lisp error: (void-function rx-let)
(rx-let ((numeric-literal (| number hex-number)) (number (: (| (: (1+ digit) (32 (: 46 ...))) (: 46 (1+ digit))) (32 exponent))) (exponent (: (| 101 69) (32 (| 43 45)) (1+ digit))) (hex-number (: 48 (| 120 88) (1+ hex-digit)))) (rx bow numeric-literal eow))
(defvar dart--numeric-literal-re (rx-let ((numeric-literal (| number hex-number)) (number (: (| (: (1+ digit) (32 ...)) (: 46 (1+ digit))) (32 exponent))) (exponent (: (| 101 69) (32 (| 43 45)) (1+ digit))) (hex-number (: 48 (| 120 88) (1+ hex-digit)))) (rx bow numeric-literal eow)))
eval-buffer(#<buffer *load*-88128> nil "/tmp/lsp-tmp-elpawF9WWF/dart-mode-20220401.0/dart-mode.el" nil t) ; Reading at buffer position 5682
load-with-code-conversion("/tmp/lsp-tmp-elpawF9WWF/dart-mode-20220401.0/dart-mode.el" "/tmp/lsp-tmp-elpawF9WWF/dart-mode-20220401.0/dart-mode.el" nil t)
require(dart-mode)
(closure ((pkg-list lsp-mode lsp-ui yasnippet lsp-java lsp-python-ms lsp-haskell helm-lsp lsp-treemacs dap-mode lsp-origami lsp-dart company flycheck lsp-pyright rust-mode php-mode scala-mode dart-mode clojure-mode typescript-mode csharp-mode) t) (pkg) (if (package-installed-p pkg) nil (package-install pkg)) (require pkg))(dart-mode)
mapc((closure ((pkg-list lsp-mode lsp-ui yasnippet lsp-java lsp-python-ms lsp-haskell helm-lsp lsp-treemacs dap-mode lsp-origami lsp-dart company flycheck lsp-pyright rust-mode php-mode scala-mode dart-mode clojure-mode typescript-mode csharp-mode) t) (pkg) (if (package-installed-p pkg) nil (package-install pkg)) (require pkg)) (lsp-mode lsp-ui yasnippet lsp-java lsp-python-ms lsp-haskell helm-lsp lsp-treemacs dap-mode lsp-origami lsp-dart company flycheck lsp-pyright rust-mode php-mode scala-mode dart-mode clojure-mode typescript-mode csharp-mode))
(let* ((pkg-list (quote (lsp-mode lsp-ui yasnippet lsp-java lsp-python-ms lsp-haskell helm-lsp lsp-treemacs dap-mode lsp-origami lsp-dart company flycheck lsp-pyright rust-mode php-mode scala-mode dart-mode clojure-mode typescript-mode csharp-mode)))) (package-initialize) (package-refresh-contents) (mapc (function (lambda (pkg) (if (package-installed-p pkg) nil (package-install pkg)) (require pkg))) pkg-list) (yas-global-mode) (add-hook (quote prog-mode-hook) (quote lsp)) (add-hook (quote kill-emacs-hook) (list (quote lambda) nil (cons (quote delete-directory) (cons package-user-dir (quote (t)))))))
eval-buffer(#<buffer *load*> nil "/tmp/plainG9XmHn.el" nil t) ; Reading at buffer position 2298
load-with-code-conversion("/tmp/plainG9XmHn.el" "/tmp/plainG9XmHn.el" nil t)
load("/tmp/plainG9XmHn.el" nil t)
command-line-1(("-l" "/tmp/plainG9XmHn.el" "/home/masalkhi/java-project/lsp/debugging/src/main/java/com/example/debugging/DemoApplication.java"))
command-line()
normal-top-level()
Press c
- you can ignore that error
@ericdallo seems like lsp-dart does not work on 26.3
CI seems to compile it properly, why do you think this @yyoncho ?
Debugger entered--Lisp error: (void-function rx-let)
Ah, it is dart-mode actually causing the trouble.
I have installed 26.1 from the source code, I have typed the the command, no errors was shown and it opened a new frame. I had to specify my lisp file with the command load-file because it did not load my init.el file. then I have entered the command lsp-mode, it tells me that it Disconnected. and in the other frame is just the same.
and I have installed the 27.1 too I got the following in the *ERROR* buffer, when typing lsp-start-plain
Failed to verify signature spinner-1.7.4.tar.sig:
Bad signature from 066DAFCB81E42C40 GNU ELPA Signing Agent (2019) <elpasign@elpa.gnu.org>
Command output:
gpg: Signature made Fr 02 Jul 2021 11:10:02 CEST
gpg: using RSA key C433554766D3DDC64221BFAA066DAFCB81E42C40
gpg: BAD signature from "GNU ELPA Signing Agent (2019) <elpasign@elpa.gnu.org>" [unknown]
Everything is working perfectly, until saving a file for the first time, the syntax errors will not be highlight or omitted until typing C-x C-s . also the auto-completion will not work after the first save. any any suggestions how I to solve this.
before the first save, everything is good:
now saving for the fist time and after that removing the text, the highlighting will not be omitted:
typing C-x C-s and after that the highlighted syntax errors will be omitted:
writing some text (no syntax error will show)
typing C-x C-s again and all the syntax errors will be highlighted
The workspace directory of the jdtls is the same for the eclipse IDE installed on my PC.
and if there is a way to import an already existed maven project to lsp-java I would appreciate.
GNU Emacs 26.3
Linux 5.13.0-40-generic #45~20.04.1-Ubuntu SMP x86_64 GNU/Linux
the init.el file: