Fwd: [CG Wiki] ConTeXt with VS Code (https://wiki.contextgarden.net/VSCode)
Message below is forwarded from the wiki mailing list. Anybody?
Begin forwarded message:
From: Michal Kvasnička
Subject: [CG Wiki] ConTeXt with VS Code (https://wiki.contextgarden.net/VSCode) Date: 20 September 2022 at 16:31:06 CEST To: wiki@contextgarden.net Hi!
I tried to use the VS Code extension described in https://wiki.contextgarden.net/VSCode https://wiki.contextgarden.net/VSCode but in
xxx
I got the following error:
/home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/package.js:136 return (translations ?? []) ^
SyntaxError: Unexpected token '?' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (/home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/main.js:27:19) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Is there any way to discuss it with the extension developer? Can I find somewhere the extension source code (on github or so)? Many thanks.
Note: I downloaded the last ConTeXt and compiled it in its directory. But I've got an older version (part of TeXLive) installed on my Ubuntu 22.04, too. I hope this is not the cause of the problem.
Best wishes, Michal
_______________________________________________ Wiki mailing list Wiki@contextgarden.net https://lists.contextgarden.net/mailman/listinfo/wiki
— Taco Hoekwater E: taco@bittext.nl genderfluid (all pronouns)
Hi Taco, Michal,
/home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/package.js:136 return (translations ?? []) ^
That's the "Nullish coalescing operator", which MDN says is only available in Node.js >= v14. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/... What does running: nodejs --version give you? If it's less than v14, then you should probably upgrade your Node.js installation. If that's not possible, then you'll need to downgrade "vsce" to v1.103.1. If it's greater than v14, then you probably have two Node installations and you installed "vsce" with the wrong one. Thanks, -- Max
participants (2)
-
Max Chernoff
-
Taco Hoekwater