Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LanguageServer Improve error messages in symbol table log #2080

Merged
merged 4 commits into from
Jan 29, 2024
Merged

LanguageServer Improve error messages in symbol table log #2080

merged 4 commits into from
Jan 29, 2024

Conversation

hzeller
Copy link
Collaborator

@hzeller hzeller commented Jan 28, 2024

Provide a more detailed summary of VLOG() status print.

If there are a bunch of issues (and for big or badly filelist configured projects, there can be 10s of thousands), provide a summary of what messages were encountered.

Looks something like

       1234 x NOT FOUND: Unable to reso...
        233 x NOT FOUND: No member symb...
         42 x ALREADY_EXISTS: foo/bar/b...
          3 x INVALID_ARGUMENT: Syntax ...

 * Canonicalize one instance of creating an error message from fs::error
 * Filesystem messages: if there is an empty filename, explicitly show that.
 * UpwardFileSearch: provide more details in the emitted status.
If there are a bunch of issues (and for big or badly filelist configured
projects, there can be 10s of thousands), provide a summary of what messages
were encountered. Looks something like

```
   1234 x NOT FOUND: Unable to reso...
    233 x NOT FOUND: No member symb...
     42 x ALREADY_EXISTS: foo/bar/b...
      3 x INVALID_ARGUMENT: Syntax ...
```
@codecov-commenter
Copy link

codecov-commenter commented Jan 28, 2024

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (d3e3ea6) 92.99% compared to head (b64dcf0) 92.97%.

Files Patch % Lines
verilog/tools/ls/symbol-table-handler.cc 5.55% 17 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2080      +/-   ##
==========================================
- Coverage   92.99%   92.97%   -0.02%     
==========================================
  Files         358      358              
  Lines       26465    26474       +9     
==========================================
+ Hits        24611    24615       +4     
- Misses       1854     1859       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hzeller hzeller requested a review from fangism January 29, 2024 00:10
Only print entering and attempts to open a file as VLOG(2), and
report non-found as VLOG(1). That way it is easier to spot if an include
was not found.

In not-found status, don't record all include paths searched (this
can be a lot, thus a long string), just the number of paths searched.

Refine error reporting in file_util. Turns out that Windows returns
ESRCH ('no such process') when it doesn't find a file.
@hzeller hzeller merged commit 91c9460 into chipsalliance:master Jan 29, 2024
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants