-
Notifications
You must be signed in to change notification settings - Fork 25
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
clojure-lsp unmarshalling json error #29
Comments
I think it's failing to parse |
I'll try to investigate clojure-lsp side when I can get some time. Acme + acme-lsp is a very compelling tool! |
Looks like clojure-lsp is utilizing the library lsp4j. I was able to get RPC tracing of the calls to log. Here is what happens on a call to "L fmt".
thanks for any suggestions you may have |
I've added a
clojure-lsp is allowed to return those according to the spec. It just differs from I'm not sure when I'll get around to looking deeper. If anyone wants to work on fixes, PRs are welcome. There are some workarounds to these types of JSON unmarshaling issues (see internal/lsp/protocol/compat.go), but in general it's not fun trying to unmarshal JSON union types in Go. |
Running on Mac OS X 10.15.2 with Plan 9 User Space and clojure-lsp
L hov - worked great
But
L comp, L def and L fmt all show the following in the terminal that is running acme-lsp -v
2019/12/28 17:16:52 Format failed in file manager: unmarshalling result: json: cannot unmarshal string into Go struct field CodeAction.command of type protocol.Command
The two log files that I configured in the .toml file have no contents. Here is my config file:
The text was updated successfully, but these errors were encountered: