Giter VIP home page Giter VIP logo

Comments (3)

ferdef avatar ferdef commented on June 10, 2024 2

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.

shanlalit avatar shanlalit commented on June 10, 2024

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.

shanlalit avatar shanlalit commented on June 10, 2024

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)

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.