Skip to content

p4analyzer crashes on VSCode #36

@vgurevich

Description

@vgurevich

Describe the bug
This is the continuation of the prematurely closed issue #29

I tried to install p4analyzer-vscode using the generated p4-analyzer-vscode-0.0.0.vsix file. It does install (although it looks to me that I had to restart VSCode to see that), but then no matter what I tried to do, I could only see the following messages in the output log:

[Error - 1:09:43 AM] Request textDocument/declaration failed.
  Message: Internal server error.
  Code: -32603 
[Error - 1:10:41 AM] Request textDocument/definition failed.
  Message: Internal server error.
  Code: -32603 

To Reproduce
You can use any P4 program. I tried several from the most trivial to more realistic. All standard actions like "Jump to the definition", etc. result in the same issue, described above.

Expected behavior
Software should not crash

Version
p4analyzer: commit 17c2c6d

VSCode:

Version: 1.77.3
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:16:52.732Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Linux x64 5.15.0-1035-aws
Sandboxed: Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageA new issue that requires triage from the core team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions