Comments (5)
Also, if rtp
contains two remote python plugins, and the first one is ok, but the 2nd one has e.g. a syntax error, this error is just silently ignored. nvimrc-rplugin
then gets this contents:
cat .vim/.nvimrc-rplugin\~
" python plugins
call remote#host#RegisterPlugin('python', '/home/bjorn/dev/nvim-ipy/rplugin/python/nvim_ipy.py', [
\ {'sync': 0, 'name': 'IPyComplete', 'type': 'function', 'opts': {}},
\ {'sync': 0, 'name': 'IPyConnect', 'type': 'function', 'opts': {}},
\ {'sync': 0, 'name': 'IPyRun', 'type': 'function', 'opts': {}},
\ {'sync': 0, 'name': 'IPyInterrupt', 'type': 'function', 'opts': {}},
\ {'sync': 0, 'name': 'IPyObjInfo', 'type': 'function', 'opts': {}},
\ {'sync': 0, 'name': 'IPyTerminate', 'type': 'function', 'opts': {}},
\ ])
call remote#host#RegisterPlugin('python', '/home/bjorn/dev/taskmngr/rplugin/python/nvim_taskmngr.py', [
\ {'sync': 0, 'name': 'IPyComplete', 'type': 'function', 'opts': {}},
\ {'sync': 0, 'name': 'IPyConnect', 'type': 'function', 'opts': {}},
\ {'sync': 0, 'name': 'IPyRun', 'type': 'function', 'opts': {}},
\ {'sync': 0, 'name': 'IPyInterrupt', 'type': 'function', 'opts': {}},
\ {'sync': 0, 'name': 'IPyObjInfo', 'type': 'function', 'opts': {}},
\ {'sync': 0, 'name': 'IPyTerminate', 'type': 'function', 'opts': {}},
\ ])
it seems that the secound plugin nvim_taskmngr.py
, which has a syntax error, just gets registered the same methods as the first one!
from pynvim.
Seems still an issue.
from pynvim.
After neovim/neovim#2208 I will move the python code registration to it's own repository, and will have a look at improving this message.
from pynvim.
I've added a small improvement to the error message: tarruda/neovim@54bd384
There are still problems with the loading infrastructure, but I will have to deal with those later
from pynvim.
nvimrc-rplugin don't get wrong contents, but now error is just silently ignored. Rather than hiding errors in logs, this is true for errors on method calls in rplugins as well, wouldn't it be better to just echo the traceback? One might say "it is not friendly to the (plugin) enduser to throw a big, incomprehensible traceback in their face" but this a lot better than what we do now, i e either later showing another equally annoing vimscript error (but completely useless to the plugin developer) or (much worse) just letting the rplugin silently misbehave, and thus forcing the plugin user to mess with debug settings and logfiles to just have anything to report to the plugin developer.
from pynvim.
Related Issues (20)
- pip install pynvim fails on macOS M1 trying to build greenlet. HOT 5
- Building a wheel for Python2 fails HOT 1
- [request] Update pypi release HOT 9
- After updated to python 3.11, neovim can't find pynvim even I already install pynvim HOT 2
- pynvim needs to be updated to use pyproject.toml HOT 4
- more (complex) pynvim rplugin documentations & examples (packer, configs,...) HOT 1
- import pynvim 'disables' logging globally HOT 1
- Can't install pynvim with pipx HOT 1
- `num_to_str` boolean check makes `Ultisnips` snippet engine laggy HOT 5
- pin install pynvim fails to build greenlet on windows HOT 1
- Test failures: "Event loop is closed" with Python 3.12, Fedora Linux HOT 6
- test_vim.py fails with Python 3.12 HOT 1
- Controlling neovim from jupyter notebook: "another loop is running" HOT 4
- Get error "no module named imp" with Python 3.12 HOT 8
- No longer works in Python 3.12 HOT 4
- `<abuf>` is wrong for `BufUnload` with hidden buffer HOT 2
- luaeval behavior: functions are silently returning `None` HOT 3
- docs (readthedocs) CI is failing HOT 4
- Output flooded with EventLoop related messages HOT 5
- checkhealth WARNING: Could not contact PyPI to get latest version HOT 8
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 pynvim.