#16 How to diagnose Failed to parse

Open
opened 7 months ago by flip101 · 3 comments
flip101 commented 7 months ago

When i start vhdl-tool server i get Failed to parse for some files. How can i see a line number and parse error? Or multiple errors so i don't have to fix them one-by-one (stopping and starting vhdl-tool server each time).

When i start `vhdl-tool server` i get `Failed to parse` for some files. How can i see a line number and parse error? Or multiple errors so i don't have to fix them one-by-one (stopping and starting vhdl-tool server each time).
vhdl-tool commented 7 months ago
Owner

Once the server is running, you can run this command: vhdl-tool client lint "**/*.vhd" to get the line numbers and parse errors for all files. Note that the command accepts wildcards.

I'll add a convenience wrapper for batch checking an entire project in the near future.

Also, while we have tested VHDL-Tool with over a million lines of code, its possible there may be bugs in the parser and it may be falsely reporting parse errrors. If it looks like that's happening, please don't hesitate to file another bug report.

Cheers

Once the server is running, you can run this command: `vhdl-tool client lint "**/*.vhd"` to get the line numbers and parse errors for all files. Note that the command accepts wildcards. I'll add a convenience wrapper for batch checking an entire project in the near future. Also, while we have tested VHDL-Tool with over a million lines of code, its possible there may be bugs in the parser and it may be falsely reporting parse errrors. If it looks like that's happening, please don't hesitate to file another bug report. Cheers

Hi, After doing "vhdl-tool client lint ..." on one of my failing files, I noticed that vhdl-tool isn't recognising the following:

library ieee; use ieee.std_logic_1164.all, ieee.numeric_std.all, std.textio.all;

It stops on the first comma: (22, 44): unexpected ',' expecting ';'

I believe this is valid VHDL.

Hi, After doing "vhdl-tool client lint ..." on one of my failing files, I noticed that vhdl-tool isn't recognising the following: library ieee; use ieee.std_logic_1164.all, ieee.numeric_std.all, std.textio.all; It stops on the first comma: <filename.pkg> (22, 44): unexpected ',' expecting ';' I believe this is valid VHDL.
vhdl-tool commented 2 months ago
Owner

Yep, that's valid VHDL. It's fixed in the latest version which you can get from the usual download link.

Yep, that's valid VHDL. It's fixed in the latest version which you can get from the usual download link.
Sign in to join this conversation.
No Label
No Milestone
No assignee
3 Participants
Loading...
Cancel
Save
There is no content yet.