Giter Site home page Giter Site logo

Comments (15)

brooth avatar brooth commented on August 26, 2024

That's weird. Do you have any buffer-related tweaks or plugins in your vimrc?

from far.vim.

tmccombs avatar tmccombs commented on August 26, 2024

I get the same error with a vim config with nothing but add Far directory to my runtimepath.

nvim is version 0.1.7. I'm also running on linux, I'm not sure if that would make a difference at all.

from far.vim.

brooth avatar brooth commented on August 26, 2024

Linux shouldn't be the problem. I also use nvim 0.1.7 running on Ubuntu 16.04.

Could you check something on your side please. Modify autoload/far.vim, add absolute path to the user-service dir, i.e. instead of this (~ line 816):

    exec 'buffer! '.file_ctx.fname

should be this:

    exec 'buffer! <PATH TO "user-service" DIR>/'.file_ctx.fname

from far.vim.

tmccombs avatar tmccombs commented on August 26, 2024

Same problem.

Also after the command fails, ls! doesn't show any buffers besides the Far buffer.

from far.vim.

brooth avatar brooth commented on August 26, 2024

Can you try again with these options:

g:far#auto_write_replaced_buffers = 0
g:far#auto_delete_replaced_buffers = 0

if still fails, than these

g:far#auto_write_replaced_buffers = 1
g:far#auto_delete_replaced_buffers = 0

from far.vim.

tmccombs avatar tmccombs commented on August 26, 2024

I still get the error with those options (I tried both)

from far.vim.

tek avatar tek commented on August 26, 2024

same here. If I run Fardo repeatedly, it eventually works.

from far.vim.

brooth avatar brooth commented on August 26, 2024

@tmccombs Please, turn on debug mode, reproduce the bug and attach the log file since I have no idea why it fails on your side.

from far.vim.

tek avatar tek commented on August 26, 2024

https://gist.github.com/c5f6c1ef592344583d5d1dc5f5d91640

from far.vim.

tmccombs avatar tmccombs commented on August 26, 2024

I just updated Far and it seems to work now.

from far.vim.

tmccombs avatar tmccombs commented on August 26, 2024

nvm. It still happens. I think what is happenign is it opens a preview buffer when you move the cursor over one of the lines that will be replaced. So if I scroll through all the replacements, it works. But if I do a :Fardo immediately it fails, because the buffers haven't been opened yet. Here are the results of debug mode:

far.vim.log.txt

from far.vim.

brooth avatar brooth commented on August 26, 2024

Everything works fine on my side, it is really weird. Can you attach your vim.rc, /home/thayne/sandbox/test dir. any other information you'd think is useful.

from far.vim.

tmccombs avatar tmccombs commented on August 26, 2024

Attached is the sandbox/test directory. the test.vim file in it is a minimal vim.rc that I can reproduce the problem with.

test.zip

from far.vim.

brooth avatar brooth commented on August 26, 2024

@tmccombs It should be OK now. Please check. And thanks for the help!

from far.vim.

tmccombs avatar tmccombs commented on August 26, 2024

Looks good. Thanks!

from far.vim.

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.