<p dir="auto">I've been porting over some debugging code into Deno 1.0.0 and discovered that the file path in stack traces can be suppressed under certain scenarios.</p>
<p dir="auto">I have simplified the test scenario to the following code:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Place this code in /tmp/deno_test as path_test.ts
// % cd /tmp/deno_test
// % deno run path_test.ts
// Exception contains full path
// % cd /tmp
// % deno run deno_test/path_test.ts
// Exception does not contain full path!!

import * as path from &quot;https://deno.land/std/path/mod.ts&quot;;

function f1(){ throw new Error(&quot;damn&quot;) }

try {
  f1()
}catch(e){
  console.log(e)
}"><pre class="notranslate"><span class="pl-c">// Place this code in /tmp/deno_test as path_test.ts</span>
<span class="pl-c">// % cd /tmp/deno_test</span>
<span class="pl-c">// % deno run path_test.ts</span>
<span class="pl-c">// Exception contains full path</span>
<span class="pl-c">// % cd /tmp</span>
<span class="pl-c">// % deno run deno_test/path_test.ts</span>
<span class="pl-c">// Exception does not contain full path!!</span>

<span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">path</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/std/path/mod.ts"</span><span class="pl-kos">;</span>

<span class="pl-k">function</span> <span class="pl-en">f1</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">Error</span><span class="pl-kos">(</span><span class="pl-s">"damn"</span><span class="pl-kos">)</span> <span class="pl-kos">}</span>

<span class="pl-k">try</span> <span class="pl-kos">{</span>
  <span class="pl-en">f1</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-k">catch</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Here the output from my Ubuntu 20.04 with Deno 1.0.0:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/tmp/deno_test$ deno run path_test.ts 
Compile file:///tmp/deno_test/path_test.ts
Error: damn
    at f1 (file:///tmp/deno_test/path_test.ts:11:22)
    at file:///tmp/deno_test/path_test.ts:14:3
/tmp/deno_test$ cd ../
/tmp$ deno run deno_test/path_test.ts 
Compile file:///tmp/deno_test/path_test.ts
Error: damn
    at f1 (path_test.ts:11:22)
    at path_test.ts:14:3"><pre class="notranslate">/tmp/deno_test$ deno run path_test.ts 
Compile file:///tmp/deno_test/path_test.ts
Error: damn
    at f1 (file:///tmp/deno_test/path_test.ts:11:22)
    at file:///tmp/deno_test/path_test.ts:14:3
/tmp/deno_test$ <span class="pl-c1">cd</span> ../
/tmp$ deno run deno_test/path_test.ts 
Compile file:///tmp/deno_test/path_test.ts
Error: damn
    at f1 (path_test.ts:11:22)
    at path_test.ts:14:3</pre></div>
<p dir="auto">When the line <code class="notranslate">import * as path from "https://deno.land/std/path/mod.ts"</code> is commented out the issue goes away on my machine.</p>
<p dir="auto">When I import any deno module (for ex, the parse module), the error message show only the file name instead of the full path of the source file. That avoid the vscode from creating a link where I can click and jump to the line of the error.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26843533/81490998-0e702380-925f-11ea-8528-ff8f556ea56f.png"><img src="https://user-images.githubusercontent.com/26843533/81490998-0e702380-925f-11ea-8528-ff8f556ea56f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Without importing anything, the full path of the file is shown as expected.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26843533/81491011-33fd2d00-925f-11ea-9966-33e6a082222a.png"><img src="https://user-images.githubusercontent.com/26843533/81491011-33fd2d00-925f-11ea-9966-33e6a082222a.png" alt="image" style="max-width: 100%;"></a></p>