vscode-terosHDL icon indicating copy to clipboard operation
vscode-terosHDL copied to clipboard

Unable to use Modelsim linter

Open am9417 opened this issue 2 years ago • 1 comments

Describe the bug Setting linter to Modelsim fails. It gives the following errors in "Problems console":

Execution of vlib.exe failed. Please check the error log for more details.TerosHDL: modelsim(vcom-66) Failed to create directory "work".TerosHDL: modelsim(vlib-35)

To Reproduce

  1. Created a project in terosHDL Project Configuratot with a "work" library and some VHDL source files there.
  2. Configure modelsim in terosHDL configuration to point to C:/modelsim_dlx64_10.7c/win64pe (directory where vcom, vsim & vlib executables are found).
  3. Set VHDL Linter in TerosHDL configuration to Modelsim.

VS code version information

Version: 1.85.0 (system setup) Commit: af28b32d7e553898b2a91af498b1fb666fdebe0c Date: 2023-12-06T20:48:09.019Z Electron: 25.9.7 ElectronBuildId: 25551756 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22631

Screenshots kuva Image 1. Teros HDL project configuration

kuva Image 2. The error message is visible on the first line of the opened souce file as well, when hovering over the red wavy underline.

Additional context Modelsim path seems to be good. The error shows some output from vcom command, so the vcom gets executed. Also unable to locate the "error log" in question for more details. Vcom-66 error seems to be error cause by that there is no directory existing for "work" library. And Vlib-35 that the library directory could not be generated. It sound like a permission issue. In which directory is the linter trying to create the directories?

am9417 avatar Dec 11 '23 07:12 am9417

maybe you could see this . https://blog.csdn.net/zidan1412/article/details/135761059?spm=1001.2014.3001.5502

kiko1412 avatar Jan 22 '24 16:01 kiko1412