mshr-h / vscode-verilog-hdl-support

HDL support for VS Code
MIT License
293 stars 78 forks source link

How to prompt me for syntax errors. #54

Open LeiWang1999 opened 5 years ago

LeiWang1999 commented 5 years ago

After installing this powerful plugin, my Windows and Linux VsCode don't have the fancy features like the ones you show (with syntax highlighting and auto-completion, but there is no function that can prompt me for syntax errors). I see yours. The sample diagram even has output variables for display. Where am I doing something wrong? Thank you . and i‘m a Chinese Student , English is not good, please forgive me.

Raamakrishnan commented 5 years ago

Syntax error checking (aka linting) is not provided directly by the extension. It just takes the output of your simulator and shows it as an error. The supported simulators are Icarus Verilog, Verilator, Modelsim, Vivado Logical Simulator. Please read the README here and here on how to configure your simulators. Feel free to reply here if you need more help.

Also, if you don't have ctags installed and configured, the auto-completion that you are seeing is the basic one provided by VS Code. Read here on how to install and configure ctags for better auto-completion

LeiWang1999 commented 5 years ago

How fast you can give my response ! and Thank you i will try now.

LeiWang1999 commented 5 years ago

And , What is Ctags ? Should i install this and export it to my System environment variable.

Raamakrishnan commented 5 years ago

Ctags is a programming tool that generates an index (or tag) file of names found in source and header files of various programming languages wiki Yes, install it and have it in your PATH variable

LeiWang1999 commented 5 years ago

Hallo, I am back. I installed Ctags and imported the environment variables. It seems that my Code completion has changed. But I still don't understand how the plugin calls the emulator. My platform is Vivado. Which one should I choose in the four options? (It's like modelsim) And, don't I need to provide a specific path to the emulator? Or the plugin itself integrates the emulator.

Finally, is it true that the world alone will not configure this stuff? . . . . I cried.

LeiWang1999 commented 5 years ago

Sorry, I learned, thank you very much for your help, and I am honored to communicate with you through these networks!