question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuring deno.enable = false always show the error.

See original GitHub issue

Hi 💫

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

image
[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) master 354c751a6d767ff62cb2774df7d50d8ab1fb81e1
  • coc-deno : latest from npm (3.10.1)

Thanks in advance.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fannheywardcommented, Oct 10, 2022

vscode-deno only restart LS on deno.path changed.

https://github.com/denoland/vscode_deno/blob/8581e36920cc5c21cd3e43e2e94396b67b412b19/client/src/extension.ts#L141-L145

Suppress restarting by configuration.

I prefer to this too.

Updated: try to restart on deno.path only, same error.

1reaction
fannheywardcommented, Oct 10, 2022

Reproduced.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found