The "path" argument must be of type string. Received type object.
See original GitHub issueVersion: 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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6
Top Results From Across the Web
The "path" argument must be of type string. Received ...
In my case I was using const path = require( "path" ) and then using path to join a subdirectory like path.join( myDirectoryName...
Read more >[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path ...
[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined · This story will cover three possible fixes: · 1:...
Read more >The "path" argument must be of type string. Received ...
Converts JSON schema to MD. Actual Behaviour. The following error is thrown: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of ...
Read more >The "path" argument must be of type string. Received - YouTube
JavaScript : TypeError [ERR_INVALID_ARG_TYPE]: The "path " argument must be of type string. Received type undefined raised when starting ...
Read more >[err_invalid_arg_type]: the "path" argument must be of type ...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry, I don’t have the Java setup ready. After I installed the latest Oractle JDK (11) and I added the
JAVA_HOME
variable set the error went away.@Ghack9 @tails618 A simple way is to configure it in the VS Code User Settings. You could open User Settings via shortcut below, then search
java.home
and set your JDK installation directory to thejava.home
setting.⌘
+,
Ctrl
+,