Giter VIP home page Giter VIP logo

Comments (6)

wincent avatar wincent commented on September 19, 2024

What version of Neovim are you using? Ferret should only be calling job_start() in Vim, not Neovim.

from ferret.

adamski avatar adamski commented on September 19, 2024

Output from --version

NVIM v0.2.2
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I/tmp/neovim-20171118-53412-9ielcr/neovim-0.2.2/build/config -I/tmp/neovim-20171118-53412-9ielcr/neovim-0.2.2/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20171118-53412-9ielcr/neovim-0.2.2/build/src/nvim/auto -I/tmp/neovim-20171118-53412-9ielcr/neovim-0.2.2/build/include
Compiled by [email protected]

Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.2.2/share/nvim"

from ferret.

wincent avatar wincent commented on September 19, 2024

You can see the code that is checking to see whether to use the Neovim-specific path here. If you set g:FerretNvim to 0, or for some reason has('nvim') was returning false, then that would explain what you are seeing. You can check both of those with:

:echo g:FerretNvim
:echo has('nvim')

from ferret.

adamski avatar adamski commented on September 19, 2024

Thanks, the first command gives me

E121: Undefined variable: g:FerretNvim
E15: Invalid expression: g:FerretNvim

and the second shows 1, as expected.

from ferret.

wincent avatar wincent commented on September 19, 2024

Well that's pretty confusing then. This line should be returning true-ish, which means that on this line it invokes the Neovim codepath and not the alternative path.

You're dying on this line, but this function should never even be getting called.

I don't think there is an obvious bug here as this works fine for me on Neovim and Vim, and you've already established that your local config seems to be correct. At this point I don't think I can debug this remotely but perhaps I have given you enough context now to be able to dig in and figure out why the wrong path is getting executed (you could add some :echomsg debug statements to trace the execution, and inspect them with :messages if you wanted). Failing that, uninstalling and getting a clean install pointing at the HEAD of the "master" branch might be a fix for you.

from ferret.

wincent avatar wincent commented on September 19, 2024

Closing this one due to inactivity but feel free to comment with more info if you'd like me to re-open it again.

from ferret.

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.