Comments (11)
Thank you for your report, but I can't reproduce this. What's your coc.nvim version? You can get it from :CocInfo
.
The write EPIPE
means write date to a closed connection, maybe something broken between the client and server.
from coc-pyright.
I just updated the plugin and have the same error.
coc.nvim version: 0.0.82-d1568d56 2023-09-29 19:43:34 +0800
from coc-pyright.
Does the pyright
process exist while you encounter this error message?
from coc-pyright.
[Info - 13:45:42.604] No source files found.
Strange log, pyright didn't find any Python files in your project.
Do you have some root patterns files, for example .git/
, pyproject.toml
, pyrightconfig.json
file in your project root?
from coc-pyright.
pyright is running /opt/homebrew/Cellar/node/21.2.0/bin/node --max-old-space-size=3072 /Users/jayed/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/langserver.index.js --node-ipc --clientProcessId=45713
I understand the "no source files found" error now. The file doesn't have a .py
extension. When I rename it to include the extension, 1 source file is found, however the [coc.nvim]: Uncaught exception: write EPIPE
error still exists.
I have a number of root patterns
['.git', '.env', 'venv', '.venv', 'setup.cfg', 'setup.py', 'pyproject.toml', 'pyrightconfig.json']
however this is an incredibly simple project with one text file, one python file, one tags file, and a .git
directory
from coc-pyright.
Do you have any other extensions? Make a minimal test, maybe the error isn't came from coc-pyright.
from coc-pyright.
I receive the error with only pyright
from coc-pyright.
It also happens with a minimal vimrc
let mapleader = ";"
map <leader>e :e ./init.vim<CR><C-W>
map <silent><leader>E :source ./init.vim<CR>:filetype detect<CR>:exe ":echo 'init.vim reloaded'"<CR>
set runtimepath+=$HOME/.vim/
call plug#begin('$HOME/.vim/plugged')
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
call plug#end()
filetype plugin indent on
au FileType python let b:coc_root_patterns = ['.git', '.env', 'venv', '.venv', 'setup.cfg', 'setup.py', 'pyproject.toml', 'pyrightconfig.json']
syntax on
from coc-pyright.
If, however, I change from iTerm2
to the macOS Terminal
the error goes away
from coc-pyright.
It's not coc.nvim or coc-pyright issue, but something broken in your env.
from coc-pyright.
I'm also experiencing this issue in iTerm2 on macOS.
from coc-pyright.
Related Issues (20)
- how to write `pyrightconfig.json` to get info from specific dirs. HOT 2
- 🚨 警报!立即领取您的 $1000 快速奖励,现在就是时候在 $PYTH 中了!
- Extension fails to activate on startup HOT 1
- Erases existing argument when completing function call keyword argument HOT 1
- coc throws error whenever I try to accept any suggestion from pyright HOT 4
- Error on createExtension coc-pyright from coc-pyright/lib/index.js TypeError: Cannot read properties of undefined HOT 5
- new module isn't recognized until I re-open nvim HOT 1
- pyright is not working on LocalConfig on windows HOT 7
- how to disable typechecking? HOT 2
- support call hierachy HOT 1
- Support multiple virtual environments using workspace folders
- coc-pyright seems unable to recognize modules installed by `pip install --editable` HOT 1
- No semantic token group for top level tokens
- Inlay Hints stopped working HOT 1
- "Import cannot be resolved" with new files HOT 3
- Installing spawn EINVAL HOT 1
- coc-settings.json not being respected HOT 3
- Extension doesn't work HOT 3
- Pyright not enabled on files that are opened with go to definition
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-pyright.