<p dir="auto">I ran into this error when running <code class="notranslate">python .\tools\test.py</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\003_relative_import.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\004_set_timeout.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\005_more_imports.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\006_url_imports.ts --reload
127.0.0.1 - - [23/Sep/2018 20:32:26] &quot;GET /tests/subdir/mod2.ts HTTP/1.1&quot; 200 -
127.0.0.1 - - [23/Sep/2018 20:32:27] &quot;GET /tests/subdir/print_hello.ts HTTP/1.1&quot; 200 -
Expected success but got error. Output:
Downloading http://localhost:4545/tests/subdir/mod2.ts
Downloading http://localhost:4545/tests/subdir/print_hello.ts
error TS5009: Cannot find the common subdirectory path for the input files."><pre class="notranslate"><code class="notranslate">E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\003_relative_import.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\004_set_timeout.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\005_more_imports.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\006_url_imports.ts --reload
127.0.0.1 - - [23/Sep/2018 20:32:26] "GET /tests/subdir/mod2.ts HTTP/1.1" 200 -
127.0.0.1 - - [23/Sep/2018 20:32:27] "GET /tests/subdir/print_hello.ts HTTP/1.1" 200 -
Expected success but got error. Output:
Downloading http://localhost:4545/tests/subdir/mod2.ts
Downloading http://localhost:4545/tests/subdir/print_hello.ts
error TS5009: Cannot find the common subdirectory path for the input files.
</code></pre></div>
<p dir="auto">OS: Windows 10 x64<br>
Node version: v8.12.0<br>
NPM version: v6.4.1</p>
<p dir="auto">How to solve this issue?</p>
<p dir="auto">P.S. Similar issue was faced <a href="https://github.com/ivogabe/gulp-typescript/issues/193" data-hovercard-type="issue" data-hovercard-url="/ivogabe/gulp-typescript/issues/193/hovercard">here</a> and <a href="https://github.com/Microsoft/TypeScript/issues/11727" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/11727/hovercard">here</a> not sure if both are relevent but I can't figure it out still.</p>
<p dir="auto">There is some problem on Windows WRT to module resolution and the <code class="notranslate">$DENO_DIR</code> environmental variable.<br>
I've seen it in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="391397416" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1356" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/1356/hovercard" href="https://github.com/denoland/deno/pull/1356">#1356</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="393200425" data-permission-text="Title is private" data-url="https://github.com/denoland/deno_std/issues/37" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno_std/pull/37/hovercard" href="https://github.com/denoland/deno_std/pull/37">denoland/deno_std#37</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-12-20T21:08:48.3095557Z C:\Users\VssAdministrator\.deno\bin\deno.exe test.ts --allow-run --allow-net
2018-12-20T21:08:48.3724814Z ##[command]&quot;C:\Windows\system32\cmd.exe&quot; /D /E:ON /V:OFF /S /C &quot;CALL &quot;D:\a\_temp\eaf9adfb-fc74-4aa4-9a31-70201da22e50.cmd&quot;&quot;
2018-12-20T21:08:48.9943938Z Compiling D:/a/1/s/test.ts
2018-12-20T21:08:49.6446393Z Downloading https://deno.land/x/testing/testing.ts...
2018-12-20T21:08:49.8951715Z Downloading https://deno.land/x/testing/util... NOT FOUND
2018-12-20T21:08:50.1296920Z Downloading https://deno.land/x/testing/util.ts...
2018-12-20T21:08:51.0053504Z ‌error‌ TS5009: ‌Cannot find the common subdirectory path for the input files.‌
2018-12-20T21:08:51.0054022Z "><pre class="notranslate"><code class="notranslate">2018-12-20T21:08:48.3095557Z C:\Users\VssAdministrator\.deno\bin\deno.exe test.ts --allow-run --allow-net
2018-12-20T21:08:48.3724814Z ##[command]"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\eaf9adfb-fc74-4aa4-9a31-70201da22e50.cmd""
2018-12-20T21:08:48.9943938Z Compiling D:/a/1/s/test.ts
2018-12-20T21:08:49.6446393Z Downloading https://deno.land/x/testing/testing.ts...
2018-12-20T21:08:49.8951715Z Downloading https://deno.land/x/testing/util... NOT FOUND
2018-12-20T21:08:50.1296920Z Downloading https://deno.land/x/testing/util.ts...
2018-12-20T21:08:51.0053504Z ‌error‌ TS5009: ‌Cannot find the common subdirectory path for the input files.‌
2018-12-20T21:08:51.0054022Z 
</code></pre></div>
<p dir="auto">You can reproduce this by cloning <a href="https://github.com/denoland/deno_std">https://github.com/denoland/deno_std</a> and running <code class="notranslate">deno test.ts</code></p>