You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
Environment (please complete the following information):
OS: Windows 11 24H2 build 26100.3915]
VS Code version 1.99.3
Extension version 1.16.0
verible-verilog-format v0.0-3973-g904f446f
Steps to reproduce
Steps to reproduce the behavior:
Directly open vscode and then open the file
Directly open vscode and create a new v/sv File
Use code [PathToFile] to open
Etc. In summary, the situation is that execute Formatter without workspaceFolders
If vscode is not opened in the worksapce, workspaceFolders cannot be indexed
The last commit of this file caused this problem. Perhaps we should check whether workspace exists in workspaceFolders
By the way, why not print the stack information in the catch? (Maybe I haven't found how to view it)
The text was updated successfully, but these errors were encountered:
UrMyLacia
changed the title
[BUG] The formatter cannot be used without workspaceFolders
[BUG] The formatter cannot be worked without workspaceFolders
Apr 29, 2025
Describe the bug
A clear and concise description of what the bug is.
Environment (please complete the following information):
Steps to reproduce
Steps to reproduce the behavior:
Directly open vscode and then open the file
Directly open vscode and create a new v/sv File
Use code [PathToFile] to open
Etc.
In summary, the situation is that execute Formatter without workspaceFolders
Log
Output -> Verilog
Expected behavior
Format should be executed
Actual behavior
No changes
Causes of the problem
I tracked the and the problem stemmed from no workspace in variable
workspaceFolders
vscode-verilog-hdl-support/src/providers/FormatPrivider.ts
Line 71 in 65ec5ba
If vscode is not opened in the worksapce, workspaceFolders cannot be indexed
The last commit of this file caused this problem. Perhaps we should check whether workspace exists in workspaceFolders
By the way, why not print the stack information in the catch? (Maybe I haven't found how to view it)
The text was updated successfully, but these errors were encountered: