foobar
foobar7mo ago

Debug test in visual studio & deno.jsonc

Hi, I want to debug a test in Visual studio (on Mac). Test can't launch because I use a deno.jsonc with comment inside (live // a comment) How can I manage this issue ? Where can I modify the command line to remove in addition the warning ? Thanks
⚠️ The `--unstable` flag is deprecated and will be removed in Deno 2.0. Use granular `--unstable-*` flags instead.
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
error: Unable to load 'file:///Users/xxx/xx-api/deno.jsonc' import map

Caused by:
key must be a string at line 21 column 5

* Échec du lancement du processus de terminal "/opt/homebrew/bin/deno 'test', '--allow-all', '--no-check', '--unstable', '--inspect-wait', '--import-map', './deno.jsonc', '--filter', '/^data identical$/', '/Users/xxx/xx-api/xx/routes/xxx.test.ts'" (code de sortie : 1).
⚠️ The `--unstable` flag is deprecated and will be removed in Deno 2.0. Use granular `--unstable-*` flags instead.
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
error: Unable to load 'file:///Users/xxx/xx-api/deno.jsonc' import map

Caused by:
key must be a string at line 21 column 5

* Échec du lancement du processus de terminal "/opt/homebrew/bin/deno 'test', '--allow-all', '--no-check', '--unstable', '--inspect-wait', '--import-map', './deno.jsonc', '--filter', '/^data identical$/', '/Users/xxx/xx-api/xx/routes/xxx.test.ts'" (code de sortie : 1).
No description
3 Replies
marvinh.
marvinh.7mo ago
That is something that should work as it's perfectly normal to have a deno.jsonc file. Can you file an issue with that here? That way the team will be aware and can fix it https://github.com/denoland/deno/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=
foobar
foobarOP7mo ago
GitHub
Debug test in Visual Studio Code & deno.jsonc · Issue #23975 · deno...
Version: Deno 1.43.6 Deno for Visual Studio Code : 3.37.1 Mac Os: 14.4.1 (23E224) Debug test can't launch because I use a deno.jsonc with comment inside (ex : // a comment). It works when I del...
marvinh.
marvinh.7mo ago
sweet thanks 👍