Closed Smithx10 closed 3 years ago
Tested with same version of deno as you, can't reproduce.
@Smithx10 Do you have coc-deno
installed? Or is it coc-denoland
?
In the case of coc-denoland, please report it to the coc-denoland issue.
As an additional note, for coc-denoland, you also need to set "tsserver.enable": false
.
Any Ideas ?
arch@9d46dd2d-1178-ce83-cbc4-d396e4a24060 ~/g/denolearning ❯❯❯ ls -1 ~/.config/coc/extensions/node_modules | sort
coc-actions
coc-cmake
coc-css
coc-cssmodules
coc-deno
coc-git
coc-go
coc-html
coc-java
coc-json
coc-marketplace
coc-metals
coc-powershell
coc-python
coc-rls
coc-rust-analyzer
coc-snippets
coc-solargraph
coc-svg
coc-tsserver
coc-ultisnips
coc-xml
coc-yaml
JavaScriptSnippets
I found this problem too, I fixed disabling of coc-tserver
in current workspace because it was making conflict with it.
coc-tserver
enabled and coc-deno
enabled.
Doesn't find Deno
Doesn't find top level await
coc-tserver
not enabled and coc-deno
enabled.
Finds Deno and suggest change "Denos" for "Deno"
Finds top level await
I'm using coc-tsserver 1.6.8 and coc-deno 3.2.0, can't reproduce this issue, don't need to disable coc-tsserver.
I'm using coc-tsserver 1.6.8 and coc-deno 3.2.0, can't reproduce this issue, don't need to disable coc-tsserver.
Could you show your javascript configuration? I'm guessing that deno-ts
is overriding tsserver
in your environment or my configuration is prioritizing tsserver
over deno-ts
because when I disabled tsserver
, deno-ts
runs fine as you just show here.
@Classy-Bear I am having the same problem - did you find a resolution?
@Classy-Bear I am having the same problem - did you find a resolution?
Not yet, meanwhile I have coc-tserver
disabled because I don't use it anymore. I will investigate why this happens and let you know if I find something useful.
OK sure, thank you. I also disabled coc-tsserver as a workaround. At least it's simple to do.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Wednesday, April 14th, 2021 at 7:19 PM, David @.***> wrote:
@Classy-Bear I am having the same problem - did you find a resolution?
Not yet, meanwhile I have coc-tserver disabled because I don't use it anymore. I will investigate why this happens and let you know if I something useful.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
@maheshsundaram what's the version coc-deno you used?
Firstly, thank you for your wonderful plugin! Very helpful!
coc-deno is 3.2.0 coc-tsserver is 1.5.8 deno version 1.9.0
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Wednesday, April 14th, 2021 at 8:16 PM, Heyward Fann @.***> wrote:
@.***(https://github.com/maheshsundaram) what's the version coc-deno you used?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Still can't reproduce this error.
console.log(Deno.args[0]);
.vim/coc-settings.json
{
"deno.enable": true,
"deno.lint": true,
"deno.unstable": true
}
coc-deno 3.3.0 and coc-tsserver 1.7.0.
@Classy-Bear @maheshsundaram
Is there a minimum reproducible procedure?
This is the procedure I tried, coc-deno
has no problem and is behaving correctly.
mkdir -p /tmp/deno-check
cd /tmp/deno-check
nvim check.ts
The code is this one from the official manual. https://deno.land/manual@v1.9.0/getting_started/first_steps#making-an-http-request
:CocCommand deno.initializeWorkspace
and checked and <CR>
.DEMO
@yaegassy I reproduce your demo and I wasn't able fix the problem. Here is my version, and configurations if it helps:
$ deno version
deno 1.9.0 (release, x86_64-apple-darwin)
v8 9.1.269.5
typescript 4.2.2
@Classy-Bear
If you really tried the same steps as I did (from creating the directory) and the problem persists, I don't know the cause of the problem either.
There seems to be nothing wrong with your various settings.
Try other machine environments using docker, vagrant, virtualbox, etc. and you may find the cause of your problem to be solved.
Yeah I will try that, thanks for your amazing help. Definitely is a problem with my environment, when I run :CocCommand deno.initializeWorkspace
It flashes (The error goes away, it shows some warnings in the code and then the ts-server
errors returns).
im having the same issue and my imports arent working
Is is possible to use coc-deno with another coc extension to show twind class suggestions that depends on coc-tsserver? I'm trying to port this extension https://github.com/tw-in-js/vscode-twind-intellisense/ that would depends on coc-tsserver like this one https://github.com/fannheyward/coc-styled-components/
@igorbrasileiro I don't think we can use these extensions with coc-deno or Deno LSP, cause typescript-styled-plugin
etc plugins can only work as TypeScript plugins with tsconfig.json.
After installing Deno and configuring CoC neovim is showing errors that "[tsserver 2304] [E] Cannot find name 'Deno'."
Although completions are working.