question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The "path" argument must be of type string. Received type object.

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

6reactions
aeschlicommented, Jun 10, 2020

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.

4reactions
testforstephencommented, Sep 23, 2020

@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 the java.home setting.

  • macOS: + ,
  • Windows: Ctrl + ,
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found