Giter VIP home page Giter VIP logo

Comments (5)

bfredl avatar bfredl commented on August 16, 2024

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.

bfredl avatar bfredl commented on August 16, 2024

Seems still an issue.

from pynvim.

tarruda avatar tarruda commented on August 16, 2024

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.

tarruda avatar tarruda commented on August 16, 2024

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.

bfredl avatar bfredl commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.