Comments (5)
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.
I've done the following now:
NOTE: Before this, I've run rm -rf ~/.vim
- Install
vim-plug
:
$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- Setup
~/.vim/vimrc
like so:
call plug#begin('~/.vim/plugged')
Plug 'AlphaMycelium/pathfinder.vim'
call plug#end()
- Install plugins:
:PlugInstall
- 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.
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?
- In
~/.vim/plugged/pathfinder.vim/plugin/main.vim
line 12 changeendpython
toEndpython
- Same file line 20 change
endpython
toEndpython
from pathfinder.vim.
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.
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)
- Function error python3#Call HOT 1
- Use neovim floating window if available
- Freezes during i_ctrl-r with vim-peekaboo
- Possibly not working on Vim 8.0 HOT 3
- Option to disable motion descriptions HOT 1
- Can I configure how long the suggestions appear? HOT 3
- PathfinderLoop does not start after installation
- kk is not always the same as 2k
- Move to anywhere on the target line in visual-line mode
- Freezes when handling large files
- Cognitive complexity HOT 1
- &wrap setting is not transferred to the server HOT 1
- Set fg/bg color of popup HOT 1
- IndexError when deleting lines at the end of a file
- 1-100% motions
- Not working with folds
- Failing to start after latest update
- "Undefined variable: g:python3_host_prog" on non-Neovim installation HOT 2
- Undefined variable: g:python3_host_prog HOT 2
- Do not show hint if its length is >= the number of keys pressed. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pathfinder.vim.