Coder Social home page Coder Social logo

Invalid character in group name about vim HOT 14 CLOSED

 avatar commented on June 11, 2024 1
Invalid character in group name

from vim.

Comments (14)

yuys13 avatar yuys13 commented on June 11, 2024 1

I understand. I will go ahead and create a PR to change the guard to 0.8.1.

The ability to use @ in highlight group names is not a change in nvim-treesitter, but a Breaking changes in neovim 0.8.0.
So after changing the guard to 0.8.1, there is no need to update this guard to match the treesitter update.

from vim.

benknoble avatar benknoble commented on June 11, 2024

It's not clear to me why this would fail in that way, but I do see the recent commit b9f4f3a169266031d3744335595eee02a6e396c6—is that related?

@dsifford sorry to have to bother you, but I'm at a loss.

from vim.

sigvef avatar sigvef commented on June 11, 2024

Hi! Same issue for me, I pinned it down to being introduced in #291. For me, I just downgraded dracula.vim locally to d7723a8 as a quick fix. I suspect you could also upgrade treesitter or something as a solution as well. Hope that helps!

from vim.

benknoble avatar benknoble commented on June 11, 2024

Darn. I was hoping we had done that in a way that would avoid problems. I guess we could try/catch it, but it would be nicer if we could test for the ability to define these groups instead.

from vim.

oryband avatar oryband commented on June 11, 2024

I suspect you could also upgrade treesitter or something as a solution as well.

Calling :TSUpdate does not resolve the issue.

from vim.

yuys13 avatar yuys13 commented on June 11, 2024

I have tested the behavior using neovim 0.8.0 and could not reproduce it.
Can you please tell me the exact version of neovim(nvim --version) where the problem occurs?

Note that it is difficult to support all nightly builds prior to the 0.8.0 release.

from vim.

oryband avatar oryband commented on June 11, 2024
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

# uname -a
Linux roach 5.15.0-53-generic #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

# nvim --version
NVIM v0.8.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -ffile-prefix-map=/build/neovim-4iczgp/neovim-0.7.0~ubuntu1+git202207122117-d8360e903-dd05b3569=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/neovim-4iczgp/neovim-0.7.0~ubuntu1+git202207122117-d8360e903-dd05b3569/build/cmake.config -I/build/neovim-4iczgp/neovim-0.7.0~ubuntu1+git202207122117-d8360e903-dd05b3569/src -I/build/neovim-4iczgp/neovim-0.7.0~ubuntu1+git202207122117-d8360e903-dd05b3569/.deps/usr/include -I/usr/include -I/build/neovim-4iczgp/neovim-0.7.0~ubuntu1+git202207122117-d8360e903-dd05b3569/build/src/nvim/auto -I/build/neovim-4iczgp/neovim-0.7.0~ubuntu1+git202207122117-d8360e903-dd05b3569/build/include
Compiled by buildd@lcy02-amd64-051

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

from vim.

yuys13 avatar yuys13 commented on June 11, 2024

Hi! @oryband
The neovim you are using appears to be a version under development. Is there any reason why you cannot use the released neovim?

Also nvim-treesitter only supports the last release of neovim(0.8.1 now) and the last commit of master.
see nvim-treesitter/nvim-treesitter#3656 (comment)

I think the solution to this issue is the following
Use the released version of neovim
or
Do not use nvim-treesitter

from vim.

benknoble avatar benknoble commented on June 11, 2024

If 0.8.1 suffices, we can guard against it.

from vim.

yuys13 avatar yuys13 commented on June 11, 2024

If we guarded in 0.8.1, the highlight will disappear in the released 0.8.0.

from vim.

benknoble avatar benknoble commented on June 11, 2024

If we guarded in 0.8.1, the highlight will disappear in the released 0.8.0.

But you said

Also nvim-treesitter only supports the last release of neovim(0.8.1 now) and the last commit of master.
see nvim-treesitter/nvim-treesitter#3656 (comment)

So how can we include highlights that won't break? Or are you saying 0.8.0 suffices iff it's the released version?

from vim.

yuys13 avatar yuys13 commented on June 11, 2024

Or are you saying 0.8.0 suffices iff it's the released version?

Yes, I have confirmed that it works in the released 0.8.0.
However, nvim-treesitter is not supported and it just happens to work.

But you said

Also nvim-treesitter only supports the last release of neovim(0.8.1 now) and the last commit of master.
see nvim-treesitter/nvim-treesitter#3656 (comment)

I am also wondering how to deal with this.

Which of the following do you think is better?

  • Make it work well with the released version. But get a warning in the unreleased version.
  • No warnings occur in any version. But cannot highlight using tree-sitter in released 0.8.0

Hmmm, now that 0.8.1 has been released, should I fix it to guard against 0.8.1?

from vim.

yuys13 avatar yuys13 commented on June 11, 2024

Oh, and if I guard with 0.8.1, I might get an issue from a user of the released 0.8.0 that it is not highlighted with treesitter.

what should i do? 😭

from vim.

benknoble avatar benknoble commented on June 11, 2024

I don't like warning. I think that if nvim-treesitter is "latest release and tip of master"-compatible only, then we can afford for the highlights to also be that way.

Then the question is how to implement that: we don't want to have to update the guard every time there is a NeoVim release.

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