Giter VIP home page Giter VIP logo

Comments (13)

wincent avatar wincent commented on July 18, 2024

I don't have a Windows development machine but if anybody does and cares to look into this a PR would be welcome.

from ferret.

tmccombs avatar tmccombs commented on July 18, 2024

I also get the same error on nvim on archlinux.

Neovim version is 0.3.8

from ferret.

tmccombs avatar tmccombs commented on July 18, 2024

It appears that this happens if a search is already running, and the cancel function is called

from ferret.

tmccombs avatar tmccombs commented on July 18, 2024

specifically the jobstop function is what causes the invalid argument error

from ferret.

loshjawrence avatar loshjawrence commented on July 18, 2024

Seeing the same error message, using nvim 0.3.8 on windows 10. rg is installed so I assume it's using that.

from ferret.

loshjawrence avatar loshjawrence commented on July 18, 2024

I saw there were some nvim settings to play with. Setting let g:FerretNvim=0 produces this:
image

from ferret.

loshjawrence avatar loshjawrence commented on July 18, 2024

@tmccombs @jdhao Setting let g:FerretJob=0 fixes it for me.
@wincent this plugin is beautiful.

from ferret.

loshjawrence avatar loshjawrence commented on July 18, 2024

Nevermind, let g:FerretJob=0 doesn't fix it. It just worked that once then breaks after that.

from ferret.

NICHTJ3 avatar NICHTJ3 commented on July 18, 2024

I got this issue to go away by not specifying the ferret executable in my vimrc

from ferret.

asidlo avatar asidlo commented on July 18, 2024

When using neovim on windows, I also experienced the ferret ack command not working as it does on unix. Interestingly, it does work fine using vim on both operating systems. In order to get it to work using neovim on windows I had to set both the variables @loshjawrence mentioned above (g:FerretJob and g:FerretNvim) to 0

let g:is_win = has('win32') || has('win64')
let g:is_nvim = has('nvim')

if g:is_win && g:is_nvim
  let g:FerretNvim = 0
  let g:FerretJob = 0
endif

Tested using the following:

  • version: NVIM v0.5.0-552-g980b12edb
  • os: Windows 10
  • term: Powershell v5.1.17763.1007
  • gui: nvim-qt

from ferret.

agh0 avatar agh0 commented on July 18, 2024

I had same problem with jobstop call on MacOS 10.4, nvim 0.5.0.
Changing argument from
call jobstop(l:job)
to
call jobstop(str2nr(l:job, 10))
helped me.

I don't know if it a proper solution (I'm really bad in vimscript), but if so, I can make a PR.

from ferret.

rollue avatar rollue commented on July 18, 2024

This happens on MacOS Catalina 10.15.7, nvim 0.4.4, python 3.9.5. And the suggested solutions do not work :(

from ferret.

nbardiuk avatar nbardiuk commented on July 18, 2024

@mhoonjeon there is another issue with a similar symptom caused by an upgrade of rg #78 maybe some of the workarounds can help.

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.