Bug 2100577

Summary: Update dependency to libtree-sitter-devel 0.20.6 to maintain treesitter compatability
Product: [Fedora] Fedora EPEL Reporter: David <gigabot>
Component: neovimAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel9CC: aron, asn, gchamoul, igor.raits, javiertury, lukas.pietzschmann, michel, prd-fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: neovim-0.7.2-3.fc38 neovim-0.7.2-3.el9 neovim-0.7.2-3.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-26 08:43:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David 2022-06-23 18:30:27 UTC
The current treesitter dependency appears to be:

```
Name         : libtree-sitter-devel
Version      : 0.20.1
```

Unfortunately `nvim-treesitter` is starting to use a new ABI 14 which needs tree-sitter 0.20.3+: https://github.com/nvim-treesitter/nvim-treesitter/pull/3055

The official Neovim 0.7 is compatible with this change, but this build it not.

If it could be rebuilt with tree-sitter 0.20.6 (the latest Fedora version https://fedora.pkgs.org/36/fedora-updates-x86_64/libtree-sitter-devel-0.20.6-1.fc36.x86_64.rpm.html) or newer then all would be well.

Comment 1 Paul DeStefano 2022-06-23 22:43:39 UTC
Yep, I just ran into this.  Error is scary, but I'm not sure how much functionality I'm loosing. But, neovim is unusable with this plug enabled under these conditions.

Comment 2 Paul DeStefano 2022-06-29 05:10:18 UTC
Hmm, I have libtree-sitter-0.20.6-1.fc36.x86_64 and neovim-0.7.0-1.fc36.x86_64, now, but I still see this error, exactly as before.  I don't understand.

Error detected while processing FileType Autocommands for "*":                                       
Error executing lua callback: /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:33: ABI version
 mismatch for /home/<user>/.local/share/nvim/plugged/nvim-treesitter/parser/vim.so: supported betwe
en 13 and 13, found 14                                                                               
stack traceback:                                                                                     
        [C]: in function '_ts_add_language'                                                          
        /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:33: in function 'require_language'   
        /usr/share/nvim/runtime/lua/vim/treesitter.lua:39: in function '_create_parser'              
        /usr/share/nvim/runtime/lua/vim/treesitter.lua:94: in function 'get_parser'                  
        ...lugged/nvim-treesitter/lua/nvim-treesitter/highlight.lua:136: in function 'start'         
        ...lugged/nvim-treesitter/lua/nvim-treesitter/highlight.lua:142: in function 'attach'        
        .../plugged/nvim-treesitter/lua/nvim-treesitter/configs.lua:471: in function 'attach_module' 
        .../plugged/nvim-treesitter/lua/nvim-treesitter/configs.lua:494: in function 'reattach_module
'                                                                                                    
        .../plugged/nvim-treesitter/lua/nvim-treesitter/configs.lua:108: in function <.../plugged/nvi
m-treesitter/lua/nvim-treesitter/configs.lua:107>                                                    

David, can you comment?

Comment 3 Paul DeStefano 2022-06-29 05:23:22 UTC
Okay, I got new neovim pkg, too.  Now that error is gone.

Comment 4 David 2022-06-29 09:03:07 UTC
Great news! Did you see the new v0.7.2 version of Neovim? https://github.com/neovim/neovim/releases/tag/v0.7.2

Comment 5 David 2022-06-29 09:04:55 UTC
I requested an update to v0.7.2: https://bugzilla.redhat.com/show_bug.cgi?id=2101408

Comment 6 Michel Lind 2022-08-25 20:22:49 UTC
Ugh, and of course tree-sitter doesn't do a soname bump! I'll also do a PR against the rawhide branch of neovim adding a manual 'Requires'

Comment 7 Michel Lind 2022-08-25 20:32:08 UTC
I'll give asn a couple of days to look at https://src.fedoraproject.org/rpms/neovim/pull-request/8 -- but meantime, I can do an update that uses the current neovim spec from Rawhide, to unblock people. You'd just have to make sure you upgrade both libtree-sitter and neovim.

Comment 8 Fedora Update System 2022-08-26 02:15:19 UTC
FEDORA-EPEL-2022-c1a186594f has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-c1a186594f

Comment 9 Fedora Update System 2022-08-26 08:40:20 UTC
FEDORA-2022-e859c23b6b has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-e859c23b6b

Comment 10 Fedora Update System 2022-08-26 08:43:23 UTC
FEDORA-2022-e859c23b6b has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2022-08-26 12:39:19 UTC
FEDORA-2022-57e90257c6 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-57e90257c6

Comment 12 Fedora Update System 2022-08-26 13:03:47 UTC
FEDORA-EPEL-2022-c1a186594f has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-c1a186594f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 David 2022-08-27 08:33:44 UTC
Thanks for all your work on this update!

Comment 14 Fedora Update System 2022-08-27 17:07:09 UTC
FEDORA-2022-57e90257c6 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-57e90257c6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-57e90257c6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2022-08-27 21:03:36 UTC
FEDORA-EPEL-2022-c1a186594f has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-c1a186594f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2022-09-04 22:35:47 UTC
FEDORA-EPEL-2022-c1a186594f has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2022-09-12 17:40:20 UTC
FEDORA-2022-57e90257c6 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.