redhat-developer / redhat-developer/vscode-java
The "path" argument must be of type string. Received type object.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
Version: 1.46.0-insider
Commit: 9f89da69154ac6c99dfa7c82986e2df95b7bbe0b
Date: 2020-06-08T22:13:15.761Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.3.0-55-generic
Starting up the Java extension I get the following error:
[2020-06-09 10:13:00.576] [exthost] [error] Activating extension redhat.java failed due to an error:
[2020-06-09 10:13:00.576] [exthost] [error] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
at validateString (internal/validators.js:112:11)
at Object.join (path.js:1040:7)
at /home/martin/.vscode-insiders/extensions/redhat.java-0.62.0/dist/extension.js:7:11895
at new Promise (<anonymous>)
at /home/martin/.vscode-insiders/extensions/redhat.java-0.62.0/dist/extension.js:7:11865
at Object.<anonymous> (/home/martin/.vscode-insiders/extensions/redhat.java-0.62.0/dist/extension.js:7:12607)
at Generator.next (<anonymous>)
at o (/home/martin/.vscode-insiders/extensions/redhat.java-0.62.0/dist/extension.js:7:10014)
Same as #1449, but different stack trace.
Checking my env, JAVA_HOME is not set
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing Java extension activation on the listed VS Code Insiders version with JAVA_HOME unset, then inspect the path.join call shown in dist/extension.js. Compare the behavior and stack trace with issue #1449; done means the extension activates without the reported invalid path argument error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100