Occasionally the extension does'nt working at all
Hi, I used to work with this extension for a while, but after updating to v0.7.0, I have been having a lot of issues like the ones below. I tried going back to an earlier version to continue, but that version also displayed errors. Occasionally, after a few attempts with various versions, if it starts to work, the next day, after reopening the Vscode, everything starts over and....
[Error - 4:04:36 PM] The VHDL LS server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. [Error - 4:04:36 PM] VHDL LS client: couldn't create connection to server. Message: Pending response rejected since connection got disposed Code: -32097 [Error - 4:04:36 PM] Restarting server failed Message: Pending response rejected since connection got disposed Code: -32097
Hi, Could you provide more information about your operating system and / or code you are working with? Unfortunately, the error you describe could have a lot of reasons
Hej Hej I appreciate your response. I am using a 64-bit / Windows 11 Enterprise system, and every time I close VScode and reopen it, ´ i should try different VHDL_LS versions until it works. Could it be because it is my working laptop that I had to switch to Windows 11 recently?
Hi again, This issue persists. I should spend a couple of hours switching between different versions until it starts working because it is not fixed on my end. While this approach does not always work, there are times when it does.
Err: [Error - 2:28:31 PM] The VHDL LS server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. [Error - 2:28:31 PM] VHDL LS client: couldn't create connection to server. Message: Pending response rejected since connection got disposed Code: -32097 [Error - 2:28:31 PM] Restarting server failed Message: Pending response rejected since connection got disposed Code: -32097 [Error - 2:28:31 PM] Server process exited with code 101.
How are you installing vhdl_ls? Are you using the version bundled through the VSCode extension or did you download the version yourself?
Hi, tnx for your response. Yes, I'm using the VScode extension to install it. I never tried to download it directly. Could that possibly be a solution?
Could you do the following, please? In VSCode, on the project that you use the language server on, go to "Output" (commonly on the bottom of the window, in the same tab group as i.e., Terminal) and choose "VHDL-LS Client" on the pop-down menu on the right. Could you paste the output that you see here?
Here you are:
Checking for language server executable in c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\vhdl_ls Found version 0.80.0 Using embedded language server Checking for updates... Language server started Current vhdl_ls version: 0.80.0 Latest vhdl_ls version: 0.83.1 Fetching https://github.com/VHDL-LS/rust_hdl/releases/download/v0.83.1/vhdl_ls-x86_64-pc-windows-msvc.zip Writing c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\install\0.83.1\vhdl_ls-x86_64-pc-windows-msvc.zip Server download complete Extracting c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\install\0.83.1\vhdl_ls-x86_64-pc-windows-msvc.zip to c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\vhdl_ls\0.83.1 Server extracted to c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\vhdl_ls\0.83.1 Language server update finished.
If you close VSCode and re-open it, does the message stay the same?
NO, got the error now When you close and reopen it, start sending failure notifications continuously. the VHDL-LS Clinet OUTPUT message is like this:
Checking for language server executable in c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\vhdl_ls Found version 0.83.1 Using embedded language server
And is the error output that you posted everything that you see (I.e., the whole log) Usually, there should be more information concerning the error
When I select VHDL LS I can see all of those crash and failure notifications, but if I select VHDL-LS Client, that is the whole log I have.
From here, I should continue to switch between diff versions until one of them can be enabled.
But why, when it started to work, the version was like: Found version 0.80.0 and after close and reopen changes to: Found version 0.83.1 Is this trying to tell us something?
When I select VHDL LS I can see all of those crash and failure notifications, but if I select VHDL-LS Client, that is the whole log I have.
From here, I should continue to switch between diff versions until one of them can be enabled.
Can you show me the whole log of the VHDL LS output? I believe that what you have shown is not the entire log, but I might be wrong.
But why, when it started to work, the version was like: Found version 0.80.0 and after close and reopen changes to: Found version 0.83.1 Is this trying to tell us something?
There are two different versions at play:
- The version of the VSCode extension (0.7.0) changes very rarely.
- The version of the language server (aka the backend of the VSCode extension) changes much faster. Therefore, there is an automated way to update the language server (which you have experienced now).
The issue that you are experiencing likely has something to do with the language server version, not the VSCode version
Hej Sorry for the late response. I don't have access to my work computer during the weekend.
If it works (after many tries and errors), it looks like a short message, but once it's not working, the message in the VHDL-LS client will be very short, but the VHDL-LS tab will have a long message of a panicked message with a lot of not-clear CHAR that I will attach below:
thread '.¹a¯«)í&.~àímJØÃ¾)X ÄÕõBV:°×?ËPÆX»Çº<Á\çmÁ!þÅGþ63h%¡_m¾+ÕÂÉnÀÁ;Hllpì_bÊqÝd"Hjm&ÛðöóÌyXlxVHYEB 400 170k¸0Þýp¬±¥¬ØºÂÆTe8Ê(ƹkp%2dáåa6w[...]
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Loaded Installation configuration file: c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\vhdl_ls\0.83.1\vhdl_ls-x86_64-pc-windows-msvc\bin../vhdl_libraries\vhdl_ls.toml
Loaded workspace root configuration file: c:\Users\EM4489\GIT\fpga_dev\vhdl_ls.toml
[Error - 9:57:12 AM] Server process exited with code 101.
[Error - 9:57:12 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 9:57:12 AM] Connection to server got closed. Server will restart.
true
[Error - 9:57:12 AM] VHDL LS client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
Loaded Installation configuration file: c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\vhdl_ls\0.83.1\vhdl_ls-x86_64-pc-windows-msvc\bin../vhdl_libraries\vhdl_ls.toml
Loaded workspace root configuration file: c:\Users\EM4489\GIT\fpga_dev\vhdl_ls.toml
thread '.¹a¯«)í&.~àímJØÃ¾)X ÄÕõBV:°×?ËPÆX»Çº<Á\çmÁ!þÅGþ63h%¡_m¾+ÕÂÉnÀÁ;Hllpì_bÊqÝd"Hjm&ÛðöóÌyXlxVHYEB 400 170k¸0Þýp¬±¥¬ØºÂÆTe8Ê(ƹkp%2dáåa6w[...]
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
[Error - 9:57:19 AM] Server process exited with code 101.
[Error - 9:57:19 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 9:57:19 AM] Connection to server got closed. Server will restart.
true
[Error - 9:57:19 AM] VHDL LS client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
thread '.¹a¯«)í&.~àímJØÃ¾)X ÄÕõBV:°×?ËPÆX»Çº<Á\çmÁ!þÅGþ63h%¡_m¾+ÕÂÉnÀÁ;Hllpì_bÊqÝd"Hjm&ÛðöóÌyXlxVHYEB 400 170k¸0Þýp¬±¥¬ØºÂÆTe8Ê(ƹkp%2dáåa6w[...]
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Loaded Installation configuration file: c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\vhdl_ls\0.83.1\vhdl_ls-x86_64-pc-windows-msvc\bin../vhdl_libraries\vhdl_ls.toml
Loaded workspace root configuration file: c:\Users\EM4489\GIT\fpga_dev\vhdl_ls.toml
[Error - 9:57:22 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 9:57:22 AM] Connection to server got closed. Server will restart.
true
[Error - 9:57:22 AM] VHDL LS client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 9:57:22 AM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 9:57:23 AM] Server process exited with code 101.
thread '.¹a¯«)í&.~àímJØÃ¾)X ÄÕõBV:°×?ËPÆX»Çº<Á\çmÁ!þÅGþ63h%¡_m¾+ÕÂÉnÀÁ;Hllpì_bÊqÝd"Hjm&ÛðöóÌyXlxVHYEB 400 170k¸0Þýp¬±¥¬ØºÂÆTe8Ê(ƹkp%2dáåa6w[...]
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
[Error - 9:57:26 AM] Server process exited with code 101.
Loaded Installation configuration file: c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\vhdl_ls\0.83.1\vhdl_ls-x86_64-pc-windows-msvc\bin../vhdl_libraries\vhdl_ls.toml
[Error - 9:57:26 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 9:57:26 AM] Connection to server got closed. Server will restart.
true
[Error - 9:57:26 AM] VHDL LS client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 9:57:26 AM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
thread '.¹a¯«)í&.~àímJØÃ¾)X ÄÕõBV:°×?ËPÆX»Çº<Á\çmÁ!þÅGþ63h%¡_m¾+ÕÂÉnÀÁ;Hllpì_bÊqÝd"Hjm&ÛðöóÌyXlxVHYEB 400 170k¸0Þýp¬±¥¬ØºÂÆTe8Ê(ƹkp%2dáåa6w[...]
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Loaded Installation configuration file: c:\Users\EM4489.vscode\extensions\hbohlin.vhdl-ls-0.7.0\server\vhdl_ls\0.83.1\vhdl_ls-x86_64-pc-windows-msvc\bin../vhdl_libraries\vhdl_ls.toml
Loaded workspace root configuration file: c:\Users\EM4489\GIT\fpga_dev\vhdl_ls.toml
[Error - 9:57:29 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 9:57:29 AM] The VHDL LS server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 9:57:29 AM] VHDL LS client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 9:57:29 AM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 9:57:29 AM] Server process exited with code 101.
This error is more helpful, thanks!
It indicates that there is some character somewhere that is non-utf8. In theory, the language server should handle this gracefully, but there seems to be a bug. Would it be possible for you to extract the file where this issue arises? You could, for example, try to comment files in your vhdl_ls.toml and re-starting the language server until the error no longer arises. Some tips on making the debugging a bit easier:
- You can comment half of the files in each iteration, mimicking a binary search. This can speed up things.
- To restart the server, you can open the command palette and choose
Developer: Reload Window. This may be a faster alternative than others and reduces the risk of caching mechanisms affecting the testing.
I think I found it.
To map all our subfolders in a folder and also to prevent duplicate a folder name, we use a double star char to cover all of our subfolders like this, and it causes the error.
[libraries] hard_fifo.files = ['C:\Users\EM4489\GIT\fpga_dev\projects\hard_fifo \ ** \ *.vhd']
As soon as I comment it out and reload the window any time, it works perfectly. Is this approach correct? or there is a safer method to use instead of those (**)?
The usage of asterisks shouldn't be a problem. I suspect that the real problem is instead in one of the VHDL files in hard_fifo.
I have tried with all subfolders, like:
[libraries] hard_fifo.files = ['C:\Users\EM4489\GIT\fpga_dev\projects\hard_fifo \source\ *.vhd'] or [libraries] hard_fifo.files = ['C:\Users\EM4489\GIT\fpga_dev\projects\hard_fifo \simulation\ *.vhd'] or [libraries] hard_fifo.files = ['C:\Users\EM4489\GIT\fpga_dev\projects\hard_fifo \IPs\ *.vhd']
It works immediately and shows unmaped and unused signals, etc. Supposing I have 3 main subfolders, like src,sim,pkg. How should we map them without replicating the main folder name?