Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E55: Unmatched \) #106

Closed
billykern opened this issue Aug 30, 2024 · 7 comments
Closed

E55: Unmatched \) #106

billykern opened this issue Aug 30, 2024 · 7 comments
Labels
external The cause of the issue is external to this project

Comments

@billykern
Copy link

Hi, is this a known issue? perhaps it is something with my config, but I just uninstalled/re-installed the plugin and still seeing the below error when opening vim version 9.1.700

the error:

Error detected while processing /Users/billykern/.vimrc[13]..function plug#end[86]..script /opt/homebrew/Cellar/vim/9.1.0700/share/vim/vim91/filetype.vim[3167]../Users/billykern/.vim/plugged/vim-just/ftdetect/just.vim:
line    8:
E55: Unmatched \)

contents of vim/plugged/vim-just/ftdetect/just.vim

" Vim filetype plugin
" Language:	Justfile
" Maintainer:	Noah Bogart <[email protected]>
" URL:		https://github.com/NoahTheDuke/vim-just.git
" Last Change:	2024 May 30

if !has("nvim-0.8")
  au BufNewFile,BufRead \c{,*.}justfile,\c*.just  setfiletype just
endif

au BufNewFile,BufRead *  if getline(1) =~# '\v^#!/%(\w|[-/])*/%(env%(\s+-S)?\s+)?just\A' | setfiletype just | endif
@laniakea64
Copy link
Collaborator

Not a known issue. Haven't seen this error here. And it's weird since line 8 of that file doesn't have any ) character at all 😕

How are you installing vim-just?

I don't currently have access to my main dev system to investigate in detail atm, but I believe my daily use Vim version is 9.1.516. Did this previously work for you? Did the issue occur when you updated Vim to a newer version?

@laniakea64 laniakea64 added the needinfo More information is needed from someone label Sep 1, 2024
@laniakea64
Copy link
Collaborator

Ok, back at my dev machine and started further investigation by looking at Vim commit history. It looks like Vim 9.1.700 maybe known to be problematic in this area. Can you try updating Vim to 9.1.702 or later? If not, can you try downgrading Vim to a version older than 9.1.700?

@laniakea64 laniakea64 added the external The cause of the issue is external to this project label Sep 1, 2024
@laniakea64
Copy link
Collaborator

laniakea64 commented Sep 1, 2024

Can confirm this issue in Vim 9.1.700 and that this error does not occur in Vim 9.1.707. The error breaks case-insensitivity of filename matching: Vim 9.1.700 only matches all-lowercase. It also breaks detection of *.justfile User justfiles.

Since this Vim bug was fixed on Vim side (especially since they fixed it so quickly), it doesn't seem worth trying to work around it in vim-just, so closing this issue. @billykern , it might still be useful to know how you installed Vim and whether it's possible to install a working Vim version by that method?

@laniakea64 laniakea64 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2024
@billykern
Copy link
Author

Thanks for taking a look and confirming @laniakea64.

I installed vim with brew, I am not so familiar with the tool and don't see an easy way to change versions (tried brew edit vim to point to another one, but it keeps picking up 9.1.700 even if I --build-from-source on install/re-install)

they only update every 50 versions, but looking at commit history that should be somewhat soon...?
https://github.com/Homebrew/homebrew-core/blob/e3be66d09c5f2625edd8a3fcc1ac16529fb64187/Formula/v/vim.rb#L4

@laniakea64 laniakea64 removed the needinfo More information is needed from someone label Sep 2, 2024
@laniakea64
Copy link
Collaborator

laniakea64 commented Sep 2, 2024

Looking at that link and at https://formulae.brew.sh/formula/vim , it looks like there maybe a "head" option that would get you 9.1.708 as of this writing?

@billykern
Copy link
Author

you're right, thanks for explaining that, it worked ✅

@laniakea64
Copy link
Collaborator

Homebrew "stable" Vim version is now 9.1.750 so should no longer have this issue.

@laniakea64 laniakea64 unpinned this issue Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external The cause of the issue is external to this project
Projects
None yet
Development

No branches or pull requests

2 participants