Configuring deno.enable = false always show the error.
See original GitHub issueHi 💫
import { workspace } from 'coc.nvim';
// ...
workspace.getConfiguration('deno').update('enable', false);
// ...
Firing above anyway after running coc-deno, it shows always the error. I checked this by registering as command including just this line like following, and just fire it with CocCommand myext.test
.
// ...
commands.registerCommand(`${EXTENSION_NS}.test`, () => {
workspace.getConfiguration('deno').update('enable', false);
});
// ...
Error
[coc.nvim]: UnhandledRejection: Starting server failed
Error: Starting server failed
at LanguageClient.$start (/home/luma/.cache/dein/nvim-huge--coc--coc--lsp/repos/github.com/neoclide/coc.nvim_master/build/index.js:54056:17)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async LanguageClient.sendNotification (/home/luma/.cache/dein/nvim-huge--coc--coc--lsp/repos/github.com/neoclide/coc.nvim_master/build/index.js:53769:30)
Press ENTER or type command to continue
Workaround
I confirmed it cannot occur after commenting out restart on change configuration.
https://github.com/fannheyward/coc-deno/compare/master...LumaKernel:coc-deno-pruned:master?expand=1
Suggestions
- Restart only after enabling.
- Suppress restarting by configuration.
- I may prefer this one. maybe both would work, but I want to control restarting timing by my side.
Versions
coc.nvim
: recent (Oct 1) master354c751a6d767ff62cb2774df7d50d8ab1fb81e1
coc-deno
: latest from npm (3.10.1)
Thanks in advance.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
formatter runs when deno.enable = false · Issue #193 - GitHub
Describe the bug When deno.enable is set to false saving a javascript file still hangs trying to run the Deno formatter.
Read more >Development tools | Manual - Deno
Open third_party/v8/tools/profview/index.html in your browser, and select prof.json to view the distribution graphically. Useful V8 flags during profiling:.
Read more >How to sort out Deno errors with loading module?
I tried to following in Deno Powershell: deno run --allow-net --unstable app.js, but I get always error: can't load the module.
Read more >A guide on disabling/enabling lsp-mode features
A guide on disabling/enabling lsp-mode features# · 1. Symbol highlighting · 2. lsp-ui-doc - on hover dialogs. · 3. Lenses · 4. Headerline...
Read more >[Deprecated] Deno - Visual Studio Marketplace
Configuration · deno.enabled - Enable/disable this extension. Default is true . · deno.alwaysShowStatus - Always show the Deno status bar item.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
vscode-deno only restart LS on
deno.path
changed.https://github.com/denoland/vscode_deno/blob/8581e36920cc5c21cd3e43e2e94396b67b412b19/client/src/extension.ts#L141-L145
I prefer to this too.
Updated: try to restart on
deno.path
only, same error.Reproduced.