Why am I unable to open a project from wsl2 in vscode using code .
After updating Vscode, Anytime I try opening project from my wsl2 with code ., which should work normally as expected but instead, I receive
`node:internal/modules/cjs/loader:990
throw err;
^
Error: Cannot find module '\\wsl.localhost\Ubuntu- 20.04\home\dexter\workspace\LeanIcon\gen_dashboard'
at Module._resolveFilename (node:internal/modules/cjs/loader:987:15)
at Module._load (node:internal/modules/cjs/loader:832:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}`
Related
When I try to run realm-cli I get node:internal/child_process everytime, no matter what i do.
I tried reinstalling, using different node version, previous mongodb-realm-cli version, same error.
I'm on new Mac M1, using zsh and nvm
$ realm-cli whoami
node:internal/child_process:413
throw errnoException(err, 'spawn');
^
Error: spawn Unknown system error -86
at ChildProcess.spawn (node:internal/child_process:413:11)
at spawn (node:child_process:700:9)
at Object.<anonymous> (/Users/me/.nvm/versions/node/v17.9.0/lib/node_modules/mongodb-realm-cli/wrapper.js:22:22)
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
errno: -86,
code: 'Unknown system error -86',
syscall: 'spawn'
}
Node.js v17.9.0
I try to execute the node kline command, but it gives me an error:
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'C:\Program Files\nodejs\kline'
←[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:725:27)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)←[39m
←[90m at internal/main/run_main_module.js:17:47←[39m {
code: ←[32m'MODULE_NOT_FOUND'←[39m,
requireStack: []
}
Although npm install kline was successful. Tell me, maybe I missed something.
From what I gathered the kline module doesn't seem to be designed for the command line. Besides this to install a package which should run from the command line, e.g. nodemon, you should add the -g flag to the npm install command. This will install your package in the global npm scope which also supports calling these packages as a command, if supported.
I have not found a solution to similar questions here ... hoping someone can decipher these error logs for me? Maybe my installation is corrupt?
Things that were working yesterday (and years before) but not today:
Does not open terminal from VS Code
Does not recognize my git folders
xdebug for PHP does not work
I verified that I have Node, NPM, and Git installed.
Here is the output:
Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node)
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1250:18)
at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2039)
at Module.load (internal/modules/cjs/loader.js:1039:32)
at Module._load (internal/modules/cjs/loader.js:932:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1079:19)
at v (/usr/share/code/resources/app/out/vs/loader.js:3:12287)
at bindings (/usr/share/code/resources/app/node_modules.asar/bindings/bindings.js:112:48)
at Object.<anonymous> (/usr/share/code/resources/app/node_modules.asar/spdlog/index.js:3:35)
at Module.u._compile (/usr/share/code/resources/app/out/vs/loader.js:3:12841)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1039:32)
at Module._load (internal/modules/cjs/loader.js:932:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1079:19)
at require (internal/modules/cjs/helpers.js:72:18)
at t (/usr/share/code/resources/app/out/vs/loader.js:4:101)
at r.load (/usr/share/code/resources/app/out/vs/loader.js:3:13249)
at r.load (/usr/share/code/resources/app/out/vs/loader.js:3:10262)
at c (/usr/share/code/resources/app/out/vs/loader.js:4:10314)
at Object.errorback (/usr/share/code/resources/app/out/vs/loader.js:4:10435)
at r.triggerErrorback (/usr/share/code/resources/app/out/vs/loader.js:3:10626)
at /usr/share/code/resources/app/out/vs/loader.js:3:10332
at r.load (/usr/share/code/resources/app/out/vs/loader.js:3:13266)
at r.load (/usr/share/code/resources/app/out/vs/loader.js:3:10262)
at c (/usr/share/code/resources/app/out/vs/loader.js:4:10314)
at r._loadModule (/usr/share/code/resources/app/out/vs/loader.js:4:10444)
at r._resolve (/usr/share/code/resources/app/out/vs/loader.js:5:452)
at r.defineModule (/usr/share/code/resources/app/out/vs/loader.js:4:6145)
at r._relativeRequire (/usr/share/code/resources/app/out/vs/loader.js:4:6831)
at n (/usr/share/code/resources/app/out/vs/loader.js:4:9420)
at m (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:28:41895)
at new Promise (<anonymous>)
at y (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:28:41875)
at S._createSpdLogLogger (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:28:42850)
at new S (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:28:42655)
at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:57:1669
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Y.startup (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:57:1448) {
phase: 'loading',
moduleId: 'spdlog',
neededBy: [ '===anonymous3===' ]
}
[main 2021-02-19T21:47:36.128Z] update#setState idle
[main 2021-02-19T21:47:36.164Z] [storage state.vscdb] open(): Unable to open DB due to Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node)
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
(node:10240) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information
[main 2021-02-19T21:47:36.305Z] [storage state.vscdb] open(): Unable to use backup due to Error: ENOENT: no such file or directory, unlink '/home/mdegalli/.config/Code/User/globalStorage/state.vscdb'
[main 2021-02-19T21:47:36.305Z] [storage] init(): Unable to init global storage due to Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node)
[main 2021-02-19T21:47:36.505Z] [uncaught exception in main]: Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node)
[main 2021-02-19T21:47:36.505Z] Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node)
I rolled back my VS Code version to 1.52.1 and that solved the problem. I was going to accept the answer from another user here, but their post disappeared. Thanks to them for helping me solve this problem!
I am having an issue with my settings.json in VSCode where it is throwing the following error.
$ref '/definitions/jspmDefinition' in 'vscode://schemas/settings/user' can not be resolved.
I have run a debug where it shows that the below.
Info: Start process (11:47:32 AM)
Error:
/Users/zachhoferitza/Library/Application Support/Code/User/node_aacfea1700caf.tmp:2
"editor.suggestSelection": "first",
^
SyntaxError: Unexpected token ':'
at wrapSafe (internal/modules/cjs/loader.js:1072:16)
at Module._compile (internal/modules/cjs/loader.js:1122:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
Info: End process (11:47:32 AM)
Everything looks in order and the error started a couple of days ago. I have gone through some of my extensions such as Prettier and uninstalled them and reinstalled, this did not fix the issue. Any help would be appreciated. Please click here to see a snapshot of my vscode if needed.
Got same issue.
TL, DR: helped removal of hookyqr.createmodule plugin
Tried to search for substring `` in vscode repo https://github.com/microsoft/vscode/search?q=jspmDefinition but got no luck (no found entries)
then I tried to search at my .vscode dir for this substring:
~/.vscode $ rg 'jspmDefinition' .
./extensions/hookyqr.createmodule-0.0.5/package.json
296: "jspmDefinition": {
334: "$ref": "#/definitions/jspmDefinition"
That's it! Also, I created an issue about that: https://github.com/HookyQR/VSCodeCreateModule/issues/4
We are trying to implement Report State API at github openhab project.
We are using “actions-on-google” version “2.6.0”.
We have added below lines to openhab.js file
const {smarthome} = require('actions-on-google');
const app = smarthome({
});
Please find the below console output:
smartfueb_march_gmail_com#instance-1-ubuntu16:/home/smartfueb_march/openhab-google-assistant/functions$ gcloud beta functions deploy openhabGoogleAssistant --stage-bucket smart_test1 --trigger-http
Deploying function (may take a while - up to 2 minutes)...failed.
ERROR: (gcloud.beta.functions.deploy) OperationError: code=3, message=Function failed on loading user code. Error message: Code in file index.js can't be loaded.
Is there a syntax error in your code?
Detailed stack trace: TypeError: smarthome is not a function
at Object. (/user_code/openhab.js:23:13)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/user_code/index.js:18:17)
at Module._compile (module.js:577:32)
We could resolve the issue of smarthome is not function by using below commands and changing the package.json file to 2.6.0.
$ sudo npm install -g actions-on-google#latest