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

Server crashes when specifying libraryIndexing #52

Open
jagjordi opened this issue Nov 12, 2024 · 1 comment
Open

Server crashes when specifying libraryIndexing #52

jagjordi opened this issue Nov 12, 2024 · 1 comment

Comments

@jagjordi
Copy link

I am trying to get the LSP to include a library contains a package that I import in my SV files. however when I specify it in the libraryIndexing option the server crashes. this is the log:

[ERROR][2024-11-12 11:28:52] .../vim/lsp/rpc.lua:770    "rpc"   "/sbin/svlangserver"    "stderr"        "/usr/lib/node_modules/@imc-trading/svlangserver/lib/svindexer.js:395\n        for (let incdir of [...new Set(this._srcFiles.map(file => path.dirname(file))), ...new Set(this._srcFiles.map(file => path.dirname(file)))]) {\n                                                      ^\n\nTypeError: Cannot read properties of undefined (reading 'map')\n    at SystemVerilogIndexer._generateVerilatorOptionsFile (/usr/lib/node_modules/@imc-trading/svlangserver/lib/svindexer.js:395:55)\n    at /usr/lib/node_modules/@imc-trading/svlangserver/lib/svindexer.js:76:26\n    at f (/usr/lib/node_modules/@imc-trading/svlangserver/node_modules/once/once.js:25:25)\n    at Glob.<anonymous> (/usr/lib/node_modules/@imc-trading/svlangserver/node_modules/glob/glob.js:148:7)\n    at Glob.emit (node:events:507:28)\n    at Glob._finish (/usr/lib/node_modules/@imc-trading/svlangserver/node_modules/glob/glob.js:194:8)\n    at next (/usr/lib/node_modules/@imc-trading/svlangserver/node_modules/glob/glob.js:213:12)\n    at /usr/lib/node_modules/@imc-trading/svlangserver/node_modules/glob/glob.js:245:9\n    at /usr/lib/node_modules/@imc-trading/svlangserver/node_modules/fs.realpath/index.js:37:7\n    at LOOP (node:fs:2839:14)\n\nNode.js v23.1.0\n"
~

Any idea why this happens? Am I doing something wrong? Or is it a bug?

@kkanhere
Copy link
Collaborator

Please provide the complete config and details on ide being used, versions etc.

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

No branches or pull requests

2 participants