denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
94.54k stars 5.25k forks source link

Deno test outputs error locations with file:// url format #25791

Open sidesteps opened 1 week ago

sidesteps commented 1 week ago

Version: Deno 1.46.2

When running deno test On test fail, the output is

  throw new AssertionError(message);
        ^
    at assertEquals (https://deno.land/std@0.214.0/assert/assert_equals.ts:52:9)
    at file:///home/sstep/wif/serv/test/serv.test.js:174:9

Because of file:// format of the error location, it is not usable as a "jump to location" string in editors. For example in vim, you would press gF to get to the location of error. But because it is in file:// format it messes it up as a location pointer.

Perhaps it is better to show paths without file:// qualifier?

marvinhagemeister commented 1 week ago

Related https://github.com/denoland/deno/issues/19261