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

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

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

Errors opening terminal, git, and xdebug with vs 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!

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.

Based on the attached error output, why is my Unity3D build failing?

I've got a unity game which I have built several times before. Today, build mysteriously failed with a large error message, the meaning of which is a mystery to me. Any help would be appreciated. I've tried reverting to a former working copy of my code and shutting down and restarting, to no avail. The error is as follows:
Failed running "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" #"C:\Users\Owner\Documents\Destructo\Assets\..\Temp\emcc_arguments.resp"
stdout:WARNING: sanity check failed to run [Errno 13] Permission denied: 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\emscripten.config_sanity'
stderr:WARNING:root:did not see a source tree above or next to the LLVM root directory (guessing based on directory of C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_FastComp_Win\llc), could not verify version numbers match
INFO:root:(Emscripten: Running sanity checks)
WARNING:root:java does not seem to exist, required for closure compiler, which is optional (define JAVA in C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\emscripten.config if you want it)
WARNING:root:closure compiler will not be available
WARNING:root:--separate-asm works best when compiling to HTML. otherwise, you must yourself load the '.asm.js' file that is emitted separately, and must do so before loading the main '.js` file
error: failure to execute js library "C:\Users\Owner\Documents\Destructo\Assets\Plugins\plugin.jslib": SyntaxError: Unexpected identifier,,SyntaxError: Unexpected identifier at Object.load (eval at globalEval (C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\src\compiler.js:105:8), <anonymous>:173:14) at JSify (eval at globalEval (C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\src\compiler.js:105:8), <anonymous>:59:20) at C:\Users\Owner\Documents\Destructo\Assets\Plugins\plugin.jslib (C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\src\compiler.js:208:3) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7)preprocessed source (you can run a js engine on this to get a clearer error message sometimes):=============mergeInto(LibraryManager.library, { SaveString: function(s){ fix = InterfaceOut; url = "../interface/kabooka.php"; string = "save="+Pointer_stringify(s); request(fix, url, string); } ReadString: function(){ string = ""; if(interfaceInput != null){ return string+interfaceInput; } return string; }});=============Internal compiler error in src/compiler.js! Please raise a bug report at https://github.com/kripken/emscripten/issues/ with a log of the build and the input files used to run. Exception message: "SyntaxError: Unexpected identifier" | SyntaxError: Unexpected identifier at Object.load (eval at globalEval (C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\src\compiler.js:105:8), <anonymous>:173:14) at JSify (eval at globalEval (C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\src\compiler.js:105:8), <anonymous>:59:20) at Object.<anonymous> (C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\src\compiler.js:208:3) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7)Traceback (most recent call last):
File "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc", line 13, in <module>
emcc.run()
File "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py", line 1670, in run
final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args)
File "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py", line 1745, in emscripten
call_emscripten(cmdline)
File "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten.py", line 1842, in _main
temp_files.run_and_clean(lambda: main(
File "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\tempfiles.py", line 78, in run_and_clean
return func()
File "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten.py", line 1847, in <lambda>
DEBUG=DEBUG,
File "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten.py", line 1748, in main
temp_files=temp_files, DEBUG=DEBUG)
File "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten.py", line 93, in emscript
glue, forwarded_data = compiler_glue(metadata, settings, libraries, compiler_engine, temp_files, DEBUG)
File "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten.py", line 296, in compiler_glue
cwd=path_from_root('src'), error_limit=300)
File "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\jsrun.py", line 122, in run_js
raise Exception('Expected the command ' + str(command) + ' to finish with return code ' + str(assert_returncode) + ', but it returned with code ' + str(proc.returncode) + ' instead! Output: ' + str(ret)[:error_limit])
Exception: Expected the command ['C:/Program Files/Unity/Editor/Data\\Tools\\nodejs\\node.exe', '--stack_size=8192', '--max-old-space-size=2048', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\Emscripten\\src\\compiler.js', 'C:\\Users\\Owner\\Documents\\Destructo\\Temp\\EmscriptenTemp\\tmpm5ff0e.txt', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\Audio.js', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\Cursor.js', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\Eval.js', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\FileSystem.js', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\Logging.js', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\Profiler.js', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\SystemInfo.js', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\UnetWebSocket.js', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\Video.js', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\WebCam.js', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\WebRequest.js', 'C:\\Users\\Owner\\Documents\\Destructo\\Assets\\Plugins\\plugin.jslib', 'C:\\Program Files\\Unity\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\Emscripten\\src\\library_pthread_stub.js'] to finish with return code 0, but it returned with code 1 instead! Output: // The Module object: Our interface to the outside world. We import
// and export values on it, and do the work to get that through
// closure compiler if necessary. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..gener
UnityEditor.HostView:OnGUI()
For the sake of anyone else who might run into the same problem, I have found a solution.
I have been attempted to employ an interface between scripts in my game and scripts in the browser using a javascript plug-in. You can find unity's documentation on this here: https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html
Turns out that I foolishly failed to put a comma between method declarations in my javascript object. Monodevelop doesn't flag this error, and evidently it is possible to run the game in the Unity Editor without the commas, but not possible to build it (leading to my incorrect belief that I had reverted to code which was previously working).
It's a pretty big error message for a pretty small problem. So, make sure you put a comma between your method declarations.
I had a similar error and fixed it.
I deleted everything but the Assets folder in my Unity project, then reopened it, set all the necessary settings again and built it successfully.
It probably wasn't necessary to delete all of those folders, you can try deleting them one by one and see if it works after each one.
I don't know why I got the error in the first place, but never forget to just try deleting those pesky folders before going on a debugging campaign :D

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