iamcco / iamcco/diagnostic-languageserver
Does not run on arch: SyntaxError
- Dominant language
- TypeScript
- Stars
- 439
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Does not run on Archlinux when installed from AUR. This used to work fine but sometime in the last few months, I get a syntax error when trying to run the binary.
**To Reproduce**
Steps to reproduce the behavior:
1. Install `diagnostic-languageserver` from AUR
2. Run `diagnostic-languageserver`
**Expected behavior**
Binary runs
**Desktop:**
diagnostic-languageserver version: 1.14.2-1 (According to the AUR)
node version: v12.22.12
linux kernel: 5.18.15
distro: arch
Log:
```
/usr/lib/node_modules/diagnostic-languageserver/node_modules/vscode-jsonrpc/lib/common/linkedMap.js:40
return this._head?.value;
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/usr/lib/node_modules/diagnostic-languageserver/node_modules/vscode-jsonrpc/lib/common/api.js:37:21)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure by installing diagnostic-languageserver 1.14.2-1 from AUR and running the diagnostic-languageserver entry point with Node v12. Inspect node_modules/vscode-jsonrpc/lib/common/linkedMap.js, especially the optional-chaining syntax shown in the log. Done means the binary starts successfully on Arch Linux with the reported environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arch-linux, linux, nodejs, typescript
- Domain
- cli, devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100