Comments (3)
Thank you very much @shanlalit !!!
Removing the .
on Elixir LS Project Dir makes it work on both Windows
and WSL
. Amazing, now I can work on both platforms as I was doing on MacOS.
from vscode-elixir-ls.
Hi @ferdef,
I'm also seeing similar issues on my Ubuntu 19.04 installation
- Suggest @SPEC is not working
- Compile errors are not visible in the vscode
- Code documentation and code completion is working
- I'm running Elixir 1.10, It was working fine with Elixir 1.9 (I don't have version manager to quickly check if it still works with Elixir 1.9)
For this simple error in my code "def get_task(task,, date) do"
Here is what I see in the ElixirLS output in message mode:
[Trace - 10:01:23 PM] Sending notification 'textDocument/didSave'.
[Trace - 10:01:23 PM] Sending notification 'workspace/didChangeWatchedFiles'.
[Trace - 10:01:29 PM] Sending notification 'textDocument/didChange'.
[Trace - 10:01:29 PM] Sending notification '$/cancelRequest'.
[Trace - 10:01:29 PM] Sending request 'textDocument/codeLens - (72)'.
[Trace - 10:01:29 PM] Received response 'textDocument/codeLens - (63)' in 11987ms. Request failed: Request cancelled (-32800).
[Trace - 10:01:30 PM] Sending request 'textDocument/documentSymbol - (73)'.
[Trace - 10:01:30 PM] Received response 'textDocument/documentSymbol - (73)' in 4ms. Request failed: an exception was raised:
** (SyntaxError) nofile:7: syntax error before: ','
(language_server 0.2.28) lib/language_server/providers/document_symbols.ex:41: ElixirLS.LanguageServer.Providers.DocumentSymbols.list_symbols/1
(language_server 0.2.28) lib/language_server/providers/document_symbols.ex:35: ElixirLS.LanguageServer.Providers.DocumentSymbols.symbols/2
(language_server 0.2.28) lib/language_server/server.ex:442: anonymous fn/3 in ElixirLS.LanguageServer.Server.handle_request_async/2 (-32000).
[Error - 10:01:30 PM] Request textDocument/documentSymbol failed.
Message: an exception was raised:
** (SyntaxError) nofile:7: syntax error before: ','
(language_server 0.2.28) lib/language_server/providers/document_symbols.ex:41: ElixirLS.LanguageServer.Providers.DocumentSymbols.list_symbols/1
(language_server 0.2.28) lib/language_server/providers/document_symbols.ex:35: ElixirLS.LanguageServer.Providers.DocumentSymbols.symbols/2
(language_server 0.2.28) lib/language_server/server.ex:442: anonymous fn/3 in ElixirLS.LanguageServer.Server.handle_request_async/2
Code: -32000
[Trace - 10:01:30 PM] Received notification 'window/logMessage'.22:01:30.139 [error] Process #PID<0.188.0> raised an exception
** (SyntaxError) nofile:7: syntax error before: ','
(language_server 0.2.28) lib/language_server/providers/document_symbols.ex:41: ElixirLS.LanguageServer.Providers.DocumentSymbols.list_symbols/1
(language_server 0.2.28) lib/language_server/providers/document_symbols.ex:35: ElixirLS.LanguageServer.Providers.DocumentSymbols.symbols/2
(language_server 0.2.28) lib/language_server/server.ex:442: anonymous fn/3 in ElixirLS.LanguageServer.Server.handle_request_async/2
from vscode-elixir-ls.
Hi @ferdef,
My issue is resolved, as it was specifically with .exs file.
According the ElixirLS readme -- in order to debug modules in .exs files (such as tests), they must be specified under requireFiles.
and there is one more thing :) which stops the compile error and spec suggestions on .ex files also
On both platforms I always get the message saying that the build is stopped because the cwd has changed (just removing the trailing .)
I removed this trailing . and it works fine, however if you add it once again it will stop showing the compile errors. So make sure your Elixr LS: Project Dir is blank.
I hope it solves your problem.
from vscode-elixir-ls.
Related Issues (20)
- @doc on hover quit showing recently HOT 2
- Honor .formatter.exs line_length in editor.ruler HOT 4
- Running wallaby `feature` tests in VS Code HOT 3
- Confusing / harmful directions about debug_info in the README HOT 1
- Header must provide a Content-Length property error in VSCode HOT 24
- All testcases run from VS Code on Windows are always passed HOT 5
- elixirls crashes whenever I open VSCode HOT 2
- Completions broke? HOT 13
- Syntax highlighting broken in "Darcula theme for Elixir" HOT 4
- Hit return on "handle_call" completion insert extra "do" and "end" HOT 2
- elixir command check is invalid HOT 2
- Slow Formatting on First Save of Lengthy HEEx Templates
- elixir extension not supported HOT 4
- Feature request: Send to REPL/Terminal HOT 2
- Suggestion Problem HOT 1
- debugging with "Debug Test" option gets killed after a minute
- Wrong textmate scope for __MODULE__ with function call HOT 2
- How to Pass "--no-start" flag to the "mix test" command? HOT 4
- Memory and High CPU Usage HOT 43
- can not find hex under debian12.5 HOT 4
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 vscode-elixir-ls.