vscode-verilog-hdl-support icon indicating copy to clipboard operation
vscode-verilog-hdl-support copied to clipboard

[BUG]cannot peak module definition in another file

Open xiaoas opened this issue 5 years ago • 1 comments

Describe the bug I've got universal-ctags installed, When I ctrl+click a module defined in another file, or reference a module defined in another file, the editor won't take me there / give me a peak of the module's definition. This is a feature request (sorry if I posted it in the wrong way)

Environment (please complete the following information):

  • OS: Windows 10 1909 build 18363.449
  • VS Code version 1.39.2
  • Extension version 1.0.3
  • iverilog, universal-ctags

Steps to reproduce Steps to reproduce the behavior:

  1. in work folder, create a file named FOO.sv with module FOO
  2. in work folder, create a file named USE_FOO.sv with module USE_FOO
  3. reference module FOO within USE_FOO
  4. hover your mouse over text "FOO"
  5. right click text FOO, select "go to definition" / "peek definition"

Expected behavior The editor should appear as if FOO is defined with the same file of module USE_FOO. in step 3/4/5, there shall be a peak of FOO's definition.

Actual behavior nothing really happens

Additional context Sorry if this is impossible to implement, I am a student studying the language and the request might be unreasonable. I do think the feature can be helpful (as this is possible in other languages extensions)

xiaoas avatar Nov 01 '19 08:11 xiaoas

I have the same problem

guojiazhuxi avatar Dec 07 '21 08:12 guojiazhuxi

I have installed universal-ctags and the instantiate module works correctly. But when trys to go to the definition of a module, it reports 'NO defination found for xxx'. I have no idea with the problem.

DavidZyy avatar Feb 02 '23 16:02 DavidZyy

Same problem. I am using command line arguments for Icarus Verilog -Y .sv -y ""

MahmoudKMaarouf avatar Apr 07 '23 16:04 MahmoudKMaarouf

Same problem! Looks like there isn't any progress yet...✋

cheerryio avatar May 06 '23 07:05 cheerryio

I recommand another extension:https://github.com/Nitcloud/Digital-IDE

DavidZyy avatar May 06 '23 13:05 DavidZyy

I recommand another extension:https://github.com/Nitcloud/Digital-IDE

Thanks for the suggestion.

MahmoudKMaarouf avatar May 06 '23 17:05 MahmoudKMaarouf