Giter Club home page Giter Club logo

Comments (5)

aryabhatta-dey avatar aryabhatta-dey commented on May 17, 2024

Can you try again? I just tried reproducing your bug. Started off with a clean .vim and .vimrc and installed minplug as given in https://github.com/Jorengarenar/minPlug. It installed flawlessly for me and also working. So the problem does not seem to me with pathfinder.vim or minplug which might make it harder to solve.
In case it matters I am using Arch with everything updated to latest as of today.

Edit - Can you try again with a different plugin manager. Which might make it easier to diagnose where the problem lies

from pathfinder.vim.

levouh avatar levouh commented on May 17, 2024

I've done the following now:

NOTE: Before this, I've run rm -rf ~/.vim

  1. Install vim-plug:
$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  1. Setup ~/.vim/vimrc like so:
call plug#begin('~/.vim/plugged')

Plug 'AlphaMycelium/pathfinder.vim'

call plug#end()
  1. Install plugins:
:PlugInstall
  1. Startup Vim, and get the following:
Error detected while processing /home/amasquelier/.vim/plugged/pathfinder.vim/plugin/main.vim:
line   12:
E221: Marker cannot start with lower case letter
  File "<string>", line 1
    << endpython
     ^
SyntaxError: invalid syntax
line   13:
E1042: import/export can only be used in vim9script
line   14:
E1042: import/export can only be used in vim9script
line   15:
E492: Not an editor command: from os.path import normpath, join
line   17:
E492: Not an editor command: plugin_root_dir = vim.eval("fnamemodify(resolve(expand('<sfile>:p')), ':h')")
line   18:
E319: Sorry, the command is not available in this version: python_root_dir = normpath(join(plugin_root_dir, '..', 'python'))
line   19:
E492: Not an editor command: sys.path.insert(0, python_root_dir)
line   20:
E492: Not an editor command: endpython
line   27:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'commands'
Press ENTER or type command to continue

from pathfinder.vim.

aryabhatta-dey avatar aryabhatta-dey commented on May 17, 2024

Thanks for following through
I think the problem is the same as this one psf/black#1347. It seems to me we might have the same bug.
The related issue vim/vim#4705
And the change https://github.com/vim/vim/releases/tag/v8.2.0578
Also it might be I am not being able to reproduce your problem on vanilla arch because there is a patch in vanilla arch vim which doesn't let this happen. Since I cannot reproduce it can you make two edits and let me know if that solves it for you?

  1. In ~/.vim/plugged/pathfinder.vim/plugin/main.vim line 12 change endpython to Endpython
  2. Same file line 20 change endpython to Endpython

from pathfinder.vim.

levouh avatar levouh commented on May 17, 2024

I apologize for the delayed response, and again because I know this doesn't help determine the root cause, but I've updated to the latest patch (8.0905) and the plugin is working as intended.

I noticed that you mentioned the fix being in patch 0578, but note that the version I mentioned using was 0579:

$ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 14 2020 22:30:44)
Included patches: 1-579
...

Because my upgrades have been a detriment towards potentially solving the problem, albeit with possibly 2 characters as well, I'd be happy to help by reverting my update and trying what you'd mentioned above. However, I don't want to go to the effort if you don't need me to. Let me know @aryabhatta-dey.

from pathfinder.vim.

aryabhatta-dey avatar aryabhatta-dey commented on May 17, 2024

R e thanks for replying back.. the delay is nothing. I am glad that it's working for you. Then I will go ahead and close the issue. Hope you find the plugin helpful and do drop by to report on anything new or for PRs. Hope to see you again:)

PS - I meant in 578 they introduced the breaking change. It seems somewhere along the line in a later patch they have reverted to allow both endpython and Endpython. That is why I couldn't reproduce it on my system and why it got fixed for you automatically. Still this was helpful issue as in case someone else runs in a similar issue in the future they can easily solve the bug

from pathfinder.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.