-
-
Notifications
You must be signed in to change notification settings - Fork 28
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-language-server in vscode not working for not finding elm version #231
Comments
How did you install elm and how did you configure the commandline/terminal in vscode. It's usually a combination of that. The terminal in vscode can have different intitialization (missing bin folder etc) then your normal one. |
To install elm I used the elm installer for windows. I also tried to re-install elm itself, but it didn't have any effect. About vscode what configurations in particular are you talking about? I haven't touched almost anything after installing vscode |
I just realized those probably don't matter, the cases where I've seen those problems where with You could try to downgrade the vscode plugin, to see if that changes anything, as you mentioned it stopped working. I've pushed an update last weekend. |
I also had this same experience today - suddenly, this extension's features were no longer working for any Elm files. Closing and reopening VSCode multiple times did not fix the problem. My eventual solution was to disable and re-enable this extension after restarting VSCode, which (so far) seems to have fixed the problem. I was upgraded to version 2.4.1 a few days ago, but this extension was working fine for a while after that. Similarly, I was upgraded to the latest version of VSCode recently, but again Elm files were working fine for a while after that. I did notice that re-enabling this extension took nearly 2 seconds: Subsequent testing shows extension startup times exceeding 2 seconds. Additionally, I went looking thru Output -> Log (Extension Host) to find messages related to this extension, and here's what I found:
Note that this extension failed on initial VSCode launch, after it waited almost 10 seconds. I realize the log screenshot from @n-doronzo didn't indicate timeout issues, so this may not be the same bug. But it was definitely the same end-user experience (it was working, then it suddenly stopped working for no obvious reason). Your Environment
|
How deep/big is the folder your trying to run this on, the timeout seems to stem from the search for the .elm file(s) |
I'm only getting started with Elm, so I have very few .elm files. This computer has a modern SSD. Below is an illustration of the number of directories in my development path - the
|
It does not stop, after finding one, as we need to find all possible |
I'm new to elm. everything worked for past week but now stopped working. installed elm with Elm windows installer. [Info - 6:48:40 PM] Loading Elm tree-sitter syntax from c:\Users\saeed.vscode\extensions\elmtooling.elm-ls-vscode-2.4.1\server\out\tree-sitter-elm.wasm i tried disable and enable the extension. deleting elm-stuff, deleting elm.json and creating with "elm init" again. none of them worked. in the output, i noticed there is an undefined in the path which should be 0.19.1. elm.json file contents : { |
We're running |
Thanks for reply. |
There are two ways to open vscode in windows:
Try the second one. |
First, I'd like to thank you for providing such a good tool for such a great language.
Expected Behavior
To start without errors and work when opening the project
Current Behavior
It does not work.
It used to work, and suddenly stopped.
Possible Solution
Steps to Reproduce (for bugs)
Just by opening the workspace in vscode.
Context
The "output" tab for elm displays the following:
I tried my self running
elm --version
on a terminal window both inside and outside the project and it prints the version correctly (0.19.1).Here is the elm.json for my project
I tried disabling and re-enabling the tool, also uninstalling and reinstalling. Nothing changed...
Your Environment
Thanks in advance
The text was updated successfully, but these errors were encountered: