Skip to content
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

Elm is not found, but elm is using 100% CPU #512

Open
avh4 opened this issue Feb 10, 2021 · 1 comment
Open

Elm is not found, but elm is using 100% CPU #512

avh4 opened this issue Feb 10, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@avh4
Copy link

avh4 commented Feb 10, 2021

When working on elm-format, the project is not an Elm project, but there are Elm files that I sometimes have to open. When I open an Elm file in that case, vscode says it cannot find elm, but then it also starts an elm make process that uses 100% CPU and never terminates.

Expected Behavior

  • elm should not be run, given that it's reported to not be found (or if it is run, it should immediately fail because there is no elm.json file, and not continually use CPU)

Current Behavior

  • "Cannot find executable with name 'elm'" is shown
  • "Elm binary not found, did you install and setup the path to your bina..." is shown
  • elm make is executed (it is a child of the /snap/codium/135/usr/share/codium/codium /home/avh4/.vscode-oss/extensions/elmtooling.elm-ls-vscode-2.0.3/server/out/index.js --node-ipc --clientProcessId=181954 process

Possible Solution

Steps to Reproduce (for bugs)

  1. open the elm-format folder in vscode
  2. open an elm file, for example, tests/test-files/good/Elm-0.19/AllSyntax/Patterns.elm

Context

I have had to frequently kill the elm process that is started.

Your Environment

  • Version used: elm-ls-vscode-2.0.3
  • Editor used: VSCodium 1.53.0 (snap)
  • Environment name and version (e.g. node.js 5.4): node.js 12.18.3 / Electron 11.2.1
  • Operating System and version: Linux x64 5.8.0-43-generic (Ubuntu 20.04.2)
@razzeee
Copy link
Member

razzeee commented Feb 10, 2021

I can't reproduce the same error messages or the process getting stuck (if it gets run).
But the errors I'm seeing can be fixed by removing this line: https://github.com/elm-tooling/elm-language-client-vscode/blob/master/package.json#L26

But that's quiet a nuclear option, might be better to have a deeper look.

@razzeee razzeee added the bug Something isn't working label Feb 10, 2021
@razzeee razzeee added this to the Backlog milestone Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants