Re: [NTG-context] Fwd: [CG Wiki] ConTeXt with VS Code (https://wiki.contextgarden.net/VSCode)

2022-10-03 Thread Max Chernoff via ntg-context
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/Nullish_coalescing_operator
   
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Fwd: [CG Wiki] ConTeXt with VS Code (https://wiki.contextgarden.net/VSCode)

2022-10-03 Thread Taco Hoekwater via ntg-context
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: w...@contextgarden.net
> 
> Hi!
> 
> I tried to use the VS Code extension described in 
> 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. 
> (/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
> w...@contextgarden.net
> https://lists.contextgarden.net/mailman/listinfo/wiki

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___