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

Execution of vlib.exe failed (vlog-66)

Open voltavidTony opened this issue 2 years ago • 6 comments

I'm trying to get TerosHDL working, and sofar everything is good except for the linter. I'm using ModelSim, which I got through installing Intel Quartus Lite (So it's ModelSim-Intel FPGA Edition). I use modelsim to run a design (vsim), but when used as the linter, it doesn't work. Instead, whenever I open a Verilog file (*.v), it just produces the error message "Execution of vlib.exe failed. Please check the error log for more details. TerosHDL: modelsim(vlog-66) [Ln 1, Col 1]". I don't know what this error log is, let alone where to find it. I already checked VSCode's log path, but there's nothing. I've also read all the posts about needing a 'work' folder in the project root, which I have. All of the tools run correctly when I invoke them through the command line ('vlib work' runs correctly). I don't know if it has anything to do with it, but the build process tries to invoke the 'vco' shell script which obviously doesn't work since my platform is Windows. However, the build runs fine and proceeds with the simulation, which also works correctly (which I can verify because the output waveforms are what I expect).

My system:

  • OS: Windows 11 22H2
  • VSCode version version: 1.83.0

voltavidTony avatar Oct 09 '23 05:10 voltavidTony

I have this same problem, I'm honestly just trying to get started with this extension after having a terrible experience writing code in modelsim directly. I would appreciate if someone could elaborate on this bug!

DomininkDandaUofT avatar Oct 18 '23 10:10 DomininkDandaUofT

@DomininkDandaUofT also are you using Windows?

qarlosalberto avatar Oct 18 '23 10:10 qarlosalberto

In VSCode go to: Help -> Toggle Developer Tools -> Console. You will see the call to ModelSim. Please, copy and paste the output.

qarlosalberto avatar Oct 18 '23 10:10 qarlosalberto

Okay, I think I see the issue. Whenever I save, the extension tries to launch vlog like this: vlog -quiet -nologo -sv -work c:\Users\username\.teroshdl_<5 random alhanumeric characters>_ "<source file>" However, when I check in file explorer, this c:\Users\username\.teroshdl_<5 random alhanumeric characters>_ never exists. (It did in fact exist twice, but as two empty files, not as folders which I assume is what they are supposed to be. Also, why is the work path random each time? That would just spam up the home directory with loads of folders.

voltavidTony avatar Oct 18 '23 15:10 voltavidTony

I have this same problem, I'm honestly just trying to get started with this extension after having a terrible experience writing code in modelsim directly. I would appreciate if someone could elaborate on this bug!

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

kiko1412 avatar Feb 08 '24 02:02 kiko1412