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.

Getting error Unknown function: coc#util#echo_line

See original GitHub issue

When saving a Python file, I get the following error:

[coc.nvim]: UnhandledRejection: request error nvim_call_function - Vim:E117: Unknown function: coc#util#echo_line
Error
    at ON.request (/home/farzad/.vim/plugged/coc.nvim/build/index.js:30:34613)
    at ON.call (/home/farzad/.vim/plugged/coc.nvim/build/index.js:33:3671)
    at Timeout._onTimeout (/home/farzad/.config/coc/extensions/node_modules/coc-pyright/lib/index.js:21911:33)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)

What’s the output of :CocCommand pyright.version

[coc.nvim] coc-pyright 1.1.163 with Pyright 1.1.163

What’s the output of :CocCommand workspace.showOutput Pyright

Workspace: /tmp/algo/disjoint
Using python from /tmp/algo/disjoint/.direnv/python-3.9.6/bin/python

[Info  - 11:07:38 a.m.] Pyright language server 1.1.163 starting
[Info  - 11:07:38 a.m.] Server root directory: /home/farzad/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/
[Info  - 11:07:38 a.m.] No configuration file found.
[Info  - 11:07:38 a.m.] No pyproject.toml file found.
[Info  - 11:07:38 a.m.] Setting pythonPath for service "disjoint": "/tmp/algo/disjoint/.direnv/python-3.9.6/bin/python"
[Warn  - 11:07:38 a.m.] stubPath /tmp/algo/disjoint/typings is not a valid directory.
[Info  - 11:07:38 a.m.] Assuming Python version 3.9
[Info  - 11:07:38 a.m.] Assuming Python platform Linux
[Warn  - 11:07:38 a.m.] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Warn  - 11:07:38 a.m.] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Info  - 11:07:38 a.m.] Searching for source files
[Info  - 11:07:38 a.m.] Auto-excluding /tmp/algo/disjoint/.direnv/python-3.9.6
[Info  - 11:07:38 a.m.] Found 1 source file

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
fannheywardcommented, Aug 24, 2021

Fixed in v1.1.164, please :CocUpdate.

3reactions
badicsalexcommented, Aug 23, 2021

https://github.com/fannheyward/coc-pyright/blob/master/src/formatters/baseFormatter.ts#L135

The coc#util#echo_line function no longer exists in coc: neoclide/coc.nvim@00ed6677383

Read more comments on GitHub >

github_iconTop Results From Across the Web

" E118: Too many arguments for function: coc#util#install ...
Run yarn install to build from source code in folder of coc.nvim. Vim:E117: Unknown function: coc#util#echo_line. The problem looks like you're ...
Read more >
What is Warzone's "unknown function" Fatal Error? How to fix
Warzone players have been hit by the "unknown function" Fatal Error, preventing them from playing the game at all after the June 3...
Read more >
How to fix Warzone's 'fatal error unknown function ... - Dexerto
Warzone PC players have been dealing with a new issue - the fatal error unknown function error code - since the June 3...
Read more >
How to fix the 'unknown function' Call of Duty: Warzone fatal ...
A new error code is hampering Call of Duty: Warzone players' ability to log on and play the game at all. The “unknown...
Read more >
How to fix "Fatal Error: Unknown Function" bug in Call of Duty
Fixing the Call of Duty: Warzone "Fatal Error: Unknown Function" bug. This issue is not just a problem for PC players. Xbox and...
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