Vscode_deno: Import autocomplete crashes when the `deno/deps` doesn't exists

Created on 27 Aug 2020  路  4Comments  路  Source: denoland/vscode_deno

A Deno fresh install doens't creates the deno/deps automatically, so that vscode_deno plugin crashes when trying to show module suggestions.

[Error - 11:33:20] Request textDocument/completion failed. Message: Request textDocument/completion failed with message: ENOENT: no such file or directory, scandir 'C:\Users\danilo\AppData\Local\deno\deps' Code: -32603

To Reproduce

  1. install deno (a new fresh install, without any deps)
  2. install vscode_deno plugin
  3. create a settings file (.vscode/settings.json)
{
  "deno.enable": true,
}
  1. create a .ts file
  2. try to autocomplete import * as test from 'http'

Expected behavior

Show module suggestions.

Screenshots

vscode_deno_error

Versions

vscode: 1.42.2
deno: 1.3.1
extension: 2.0.13

Most helpful comment

@axetroy thanks for you feedback.
i'd like to to my first contribution :)

All 4 comments

@danilosampaio try to call the file using absolute paths ./anyfile.ts

@axetroy thanks for you feedback.
i'd like to to my first contribution :)

@axetroy fix it with PR #169
thanks for your help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shadowtime2000 picture shadowtime2000  路  3Comments

TradeIdeasPhilip picture TradeIdeasPhilip  路  10Comments

zeljkoantich picture zeljkoantich  路  9Comments

elazutkin-dynata picture elazutkin-dynata  路  8Comments

promethyttrium picture promethyttrium  路  10Comments