Coder Social home page Coder Social logo

Comments (19)

chemzqm avatar chemzqm commented on May 25, 2024

@megalithic https://github.com/neovim/node-client need to have a new release.
Sorry for the unconvince.

from coc.nvim.

megalithic avatar megalithic commented on May 25, 2024

Could you give more details? Is there a PR that needs to be merged, or is there something specific that they know about that needs to be fixed but haven't documented it anywhere? Are you running a patched version locally? Would love to know more. Thanks so much!

from coc.nvim.

chemzqm avatar chemzqm commented on May 25, 2024

It's already merged neovim/node-client@c1e940b
just need to publish a new release to npm.

from coc.nvim.

chemzqm avatar chemzqm commented on May 25, 2024

BTW, coc currently only have some advanced language support for typescript (more language and LSP support is coming), so it might not fit your requirement.

from coc.nvim.

megalithic avatar megalithic commented on May 25, 2024

thanks for the info @chemzqm!

from coc.nvim.

megalithic avatar megalithic commented on May 25, 2024

@chemzqm might be worth adding a note to the Troubleshooting section to mention about the version of the neovim-node-host client needs to be updated past 4.1.0 to work with your plugin, which i still desperately want to try! :)

from coc.nvim.

megalithic avatar megalithic commented on May 25, 2024

@chemzqm I was able to complete the post-install process, yay! However, coc.nvim is never able to register with the plugins registry, e.g., it continually says there was a problem initializing and to run :UpdateRemotePlugins and restart. Running :checkhealth shows the following for coc.nvim:

health#coc#check
========================================================================
  - OK: Environment check passed
  - ERROR: service could not be initailized
    - ADVICE:
      - You may not have neovim package installed correctly,
      - check out https://github.com/neovim/node-client#debugging--troubleshooting

and the node-host health check shows:

## Node.js provider (optional)
  - INFO: Node.js: v8.11.3
  - INFO: Neovim node.js host: /Users/me/.n/bin/neovim-node-host
  - OK: Latest "neovim" npm package is installed: 4.2.0

Any thoughts?

from coc.nvim.

chemzqm avatar chemzqm commented on May 25, 2024

Did you run :UpdateRemotePlugins after npm install? And what's the result?

from coc.nvim.

megalithic avatar megalithic commented on May 25, 2024

@chemzqm yes, repeatedly, with no specific error output, other than seeing that the plugin isn't registered with the node host. I know plugins can register with the node host because if I switch back to deoplete + nvim-typescript; nvim-typescript registers with the node host, and deoplete with the python3 host.

from coc.nvim.

chemzqm avatar chemzqm commented on May 25, 2024

Check your ~/.local/share/nvim/rplugin.vim, is that coc registered correctly?

According to https://github.com/neovim/node-client#debugging--troubleshooting, you can set NVIM_NODE_LOG_LEVEL to error and NVIM_NODE_LOG_FILE to a log file, and get the output from the log file.

from coc.nvim.

megalithic avatar megalithic commented on May 25, 2024

~/.local/share/nvim/rplugin.vim output:

" node plugins


" python3 plugins
call remote#host#RegisterPlugin('python3', '/Users/me/.dotfiles/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete', [
      \ {'sync': v:false, 'name': '_deoplete_init', 'type': 'function', 'opts': {}},
     \ ])


" ruby plugins


" python plugins

i'll see if i can't get logging to occur from the link you provided and will report back.

from coc.nvim.

chemzqm avatar chemzqm commented on May 25, 2024

Looks like coc is not registed, the output of :UpdateRemotePlugins should contains:
screen shot 2018-06-28 at 9 57 40 pm

from coc.nvim.

megalithic avatar megalithic commented on May 25, 2024

Exactly! However, we don't know why it's not able to register. I'm not getting any logging from your plugin or from the node client either. Are you able to remove your plugin completely and reinstall from GitHub without issues?

from coc.nvim.

chemzqm avatar chemzqm commented on May 25, 2024

@megalithic just tried using [email protected] from npm, no issue found.

from coc.nvim.

chemzqm avatar chemzqm commented on May 25, 2024

There should be something in your log file, try set environment variable NVIM_NODE_LOG_LEVEL to debug

from coc.nvim.

megalithic avatar megalithic commented on May 25, 2024

thanks for your help @chemzqm, i'll keep trying and report back once i have more information. :/

from coc.nvim.

chemzqm avatar chemzqm commented on May 25, 2024

I got the reason, I can fix that.

from coc.nvim.

megalithic avatar megalithic commented on May 25, 2024

oh excellent! thanks so much!

from coc.nvim.

chemzqm avatar chemzqm commented on May 25, 2024

To avoid https://github.com/sourcegraph/javascript-typescript-langserver get high CPU usage, I add rplugin folder to my .gitignore and forget to remove that.

from coc.nvim.

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.