Civet icon indicating copy to clipboard operation
Civet copied to clipboard

VSCode fails to jump with ctrl+click on `file://` urls

Open STRd6 opened this issue 1 year ago • 2 comments

Ctrl Clicking these location outputs in the console fails to jump to them.

ReferenceError: gatherRecursive is not defined
    at processBlocks (file:///home/daniel/apps/civet/source/parser/block.civet:143:3)
    at processProgram (file:///home/daniel/apps/civet/source/parser/lib.civet:1362:3)
    at file:///home/daniel/apps/civet/source/parser.hera:1069:1
    at /home/daniel/apps/civet/node_modules/@danielx/hera/dist/machine.js:270:25
    at $EVENT (/home/daniel/apps/civet/node_modules/@danielx/hera/dist/machine.js:314:16)

It works if we remove file://

STRd6 avatar Feb 18 '24 19:02 STRd6

Could that be a bug in your split branch? Maybe block.civet needs to import gatherRecursive from lib.civet?

edemaine avatar Feb 18 '24 19:02 edemaine

It's not the specific error, just that the link doesn't navigate in VSCode.

STRd6 avatar Feb 18 '24 19:02 STRd6