Errors opening terminal, git, and xdebug with vs code - visual-studio-code

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!

Related

Vscode WSL Development

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: []
}`

Protractor exited with error code 100 when run config.js

A few days ago, my protractor was working fine. But yesterday when I tried to run the same tests, I got:
E/launcher - Error: Error: Cannot find module 'jasmine-reporters'
Require stack:
- D:\Repos\POS\config\config_c80_checkScreen.js
- C:\Users\ingridd\AppData\Roaming\npm\node_modules\protractor\built\configParser.js
- C:\Users\ingridd\AppData\Roaming\npm\node_modules\protractor\built\launcher.js
- C:\Users\ingridd\AppData\Roaming\npm\node_modules\protractor\built\cli.js
- C:\Users\ingridd\AppData\Roaming\npm\node_modules\protractor\bin\protractor
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at onPrepare (D:\Repos\POS\config\config_c80_checkScreen.js:62:28)
at C:\Users\ingridd\AppData\Roaming\npm\node_modules\protractor\built\util.js:46:49
at Function.promise (C:\Users\ingridd\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:682:9)
at Object.runFilenameOrFn_ (C:\Users\ingridd\AppData\Roaming\npm\node_modules\protractor\built\util.js:38:16)
at C:\Users\ingridd\AppData\Roaming\npm\node_modules\protractor\built\runner.js:98:27
at _fulfilled (C:\Users\ingridd\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:834:54)
Closing report
[11:03:30] E/launcher - Process exited with error code 100
On my project folder, I have the protractor-jasmine2-screenshot-reporter folder as you can see on the screenshot
jasmine2 folder
Please see where the ENV var is located
env var
The last thing I tried was to update the web driver and install the latest protractor. But I still get the same error.
Any suggestion is appreciated.
Error 100 is RUNNERS_FAILED_EXIT_CODE which is because there is an unexpected error. The error looks like you are missing the jasmine-reporters. npm install -S jasmine-reporters should fix it.

VS Code settings.json error: $ref'/definitions/jspmDefinition'in'vscode://schemas/settings/user' can not be s

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

Facing error while starting Intershop PWA server locally

Inprocess to setup local PWA locally, I created environment.local.ts file with local configuration and tried to start PWA using command ng s -c local and now getting below error.
Please suggest !
WARNING in
./node_modules/#wishtack/reactive-component-loader/dist/reactive-component-loader/fesm5/wishtack-reactive-component-loader.js
226:65-83 "export 'ɵɵdefineInjectable' was not found in
'#angular/core'
WARNING in
./node_modules/#wishtack/reactive-component-loader/dist/reactive-component-loader/fesm5/wishtack-reactive-component-loader.js
226:175-183 "export 'ɵɵinject' was not found in '#angular/core'
WARNING in
./node_modules/#wishtack/reactive-component-loader/dist/reactive-component-loader/fesm5/wishtack-reactive-component-loader.js
226:195-203 "export 'ɵɵinject' was not found in '#angular/core'
WARNING in
./node_modules/#wishtack/reactive-component-loader/dist/reactive-component-loader/fesm5/wishtack-reactive-component-loader.js
226:215-223 "export 'ɵɵinject' was not found in '#angular/core'
WARNING in
./node_modules/#wishtack/reactive-component-loader/dist/reactive-component-loader/fesm5/wishtack-reactive-component-loader.js
226:248-256 "export 'ɵɵinject' was not found in '#angular/core'
ERROR in ./src/styles.scss Module build failed (from
./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from
./node_modules/sass-loader/lib/loader.js): Error: Node Sass does not
yet support your current environment: Windows 64-bit with Unsupported
runtime (79) For more information on which environments are supported
please see: https://github.com/sass/node-sass/releases/tag/v4.12.0
at module.exports (C:\ProgressiveWebApp\pwa\node_modules\node-sass\lib\binding.js:13:13)
at Object. (C:\ProgressiveWebApp\pwa\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1103:10)
at Module.load (internal/modules/cjs/loader.js:914:32)
at Function.Module._load (internal/modules/cjs/loader.js:822:14)
at Module.require (internal/modules/cjs/loader.js:956:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.sassLoader (C:\ProgressiveWebApp\pwa\node_modules\sass-loader\lib\loader.js:46:72)
at C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\NormalModule.js:301:20
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at runSyncOrAsync (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:143:3)
at iterateNormalLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:205:4
at VirtualFileSystemDecorator.readFile (C:\ProgressiveWebApp\pwa\node_modules#ngtools\webpack\src\virtual_file_system_decorator.js:39:13)
at processResource (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:202:11)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:158:10)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\loadLoader.js:47:3)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\loadLoader.js:47:3)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\loadLoader.js:47:3)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at runLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:365:2)
at NormalModule.doBuild (C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\NormalModule.js:280:3)
at NormalModule.build (C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\NormalModule.js:427:15)
at Compilation.buildModule (C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\Compilation.js:635:10)
at C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\Compilation.js:1021:12
at C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\NormalModuleFactory.js:405:6
at C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\NormalModuleFactory.js:155:13
ERROR in
./src/app/shared/common/components/loading/loading.component.scss
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Node Sass does not yet support your current environment:
Windows 64-bit with Unsupported runtime (79) For more information on
which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.12.0
at module.exports (C:\ProgressiveWebApp\pwa\node_modules\node-sass\lib\binding.js:13:13)
at Object. (C:\ProgressiveWebApp\pwa\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1103:10)
at Module.load (internal/modules/cjs/loader.js:914:32)
at Function.Module._load (internal/modules/cjs/loader.js:822:14)
at Module.require (internal/modules/cjs/loader.js:956:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.sassLoader (C:\ProgressiveWebApp\pwa\node_modules\sass-loader\lib\loader.js:46:72)
ERROR in ./node_modules/#wishtack/rx-scavenger/dist/scavenger.js
Module not found: Error: Can't resolve 'core-js/es/map' in
'C:\ProgressiveWebApp\pwa\node_modules#wishtack\rx-scavenger\dist'
ERROR in ./node_modules/#wishtack/rx-scavenger/dist/scavenger.js
Module not found: Error: Can't resolve
'core-js/modules/es.array.includes' in
'C:\ProgressiveWebApp\pwa\node_modules#wishtack\rx-scavenger\dist'
Thanks,
Mayank
Check the versions of node and npm by using:
node --version
npm --version
Compare with the required versions declared in package.json in the root folder of the project:
"engines": {
"node": ">=10.16.0",
"npm": "~6.9.0"
},
Update node or npm if necessary.

TypeError: smarthome is not a function

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