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

using fedora 38 and got lot of error #303

Closed
View-my-Git-Lab-krafi opened this issue May 16, 2023 · 9 comments
Closed

using fedora 38 and got lot of error #303

View-my-Git-Lab-krafi opened this issue May 16, 2023 · 9 comments

Comments

@View-my-Git-Lab-krafi
Copy link

View-my-Git-Lab-krafi commented May 16, 2023

nvim-treesitter[json]: Error during compilation
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
nvim-treesitter[lua]: Error during compilation
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Creating temporary directory
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-css...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-yaml...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-python...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-bash...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-c...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-java...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-markdown...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-rust...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-typescript...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-javascript...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-markdown_inline...
[nvim-treesitter] [2/14, failed: 2] Extracting tree-sitter-tsx...
[nvim-treesitter] [2/14, failed: 2] Compiling...
[nvim-treesitter] [2/14, failed: 2] Compiling...
[nvim-treesitter] [2/14, failed: 2] Compiling...
[nvim-treesitter] [2/14, failed: 2] Compiling...
[nvim-treesitter] [2/14, failed: 2] Compiling...
[nvim-treesitter] [2/14, failed: 2] Compiling...
[nvim-treesitter] [2/14, failed: 2] Compiling...
[nvim-treesitter] [2/14, failed: 2] Compiling...
[nvim-treesitter] [2/14, failed: 2] Compiling...
[nvim-treesitter] [2/14, failed: 2] Compiling...
[nvim-treesitter] [2/14, failed: 2] Compiling...
nvim-treesitter[css]: Error during compilation
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
nvim-treesitter[yaml]: Error during compilation
cc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
nvim-treesitter[python]: Error during compilation
cc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
nvim-treesitter[bash]: Error during compilation
cc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
nvim-treesitter[c]: Error during compilation
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
nvim-treesitter[markdown]: Error during compilation
cc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
nvim-treesitter[java]: Error during compilation
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
nvim-treesitter[javascript]: Error during compilation
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
nvim-treesitter[typescript]: Error during compilation
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
nvim-treesitter[markdown_inline]: Error during compilation
cc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
nvim-treesitter[rust]: Error during compilation
nvim-treesitter[rust]: Error during compilation
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
[nvim-treesitter] [13/14, failed: 13] Compiling...
Press ENTER or type command to continue

nvim-treesitter[tsx]: Error during compilation
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
Press ENTER or type command to continue

@View-my-Git-Lab-krafi
Copy link
Author

To fix this issue i have to install
sudo dnf install gcc gcc-c++ make
please update the readme.md

but still i am seeing a issue

**stack traceback:
/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:200: in function 'get_query'
...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:91: in function 'get_query'
...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:169: in function 'prepare_query'
...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:288: in function 'iter_captures'
...ker/start/nvim-treesitter/lua/nvim-treesitter/indent.lua:50: in function 'fn'
...r/start/nvim-treesitter/lua/nvim-treesitter/ts_utils.lua:356: in function 'get_indents'
...ker/start/nvim-treesitter/lua/nvim-treesitter/indent.lua:98: in function 'get_indent'
...tart/indent-blankline.nvim/lua/indent_blankline/init.lua:466: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
**

@View-my-Git-Lab-krafi
Copy link
Author

@vulekhanh
Copy link

Hi, are you still encountering error?

@ostap-tymchenko
Copy link
Contributor

hey not sure if this is the exact same issue but im on fedora and getting this on launch with nothing changed:

[lspconfig] Cannot access configuration for lua_ls. Ensure this server is listed in server_configurations.md or added as a custom server. [mason-lspconfig] automatically installing pyright [mason-lspconfig] automatically installing json-lsp Error detected while processing /home/ostap-timur-tymchenko/.local/share/nvim/site/pack/packer/start/nvim-treesitter/plugin/nvim-tre esitter.lua: E5113: Error while calling lua chunk: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:586: Overriding has-ancestor? stack traceback: [C]: in function 'error' /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:586: in function 'add_predicate' ...nvim-treesitter/lua/nvim-treesitter/query_predicates.lua:74: in main chunk [C]: in function 'require' ...ack/packer/start/nvim-treesitter/lua/nvim-treesitter.lua:8: in main chunk [C]: in function 'require' .../packer/start/nvim-treesitter/plugin/nvim-treesitter.lua:9: in main chunk Error detected while processing /home/ostap-timur-tymchenko/.local/share/nvim/site/pack/packer/start/nvim-ts-context-commentstring/p lugin/ts_context_commentstring.vim: line 1: E5108: Error executing lua ...s-context-commentstring/lua/ts_context_commentstring.lua:4: loop or previous error loading module 'nvi m-treesitter' stack traceback: [C]: in function 'require' ...s-context-commentstring/lua/ts_context_commentstring.lua:4: in function 'init' [string ":lua"]:1: in main chunk Press ENTER or type command to continue

@gnmearacaun
Copy link
Collaborator

gnmearacaun commented Jul 7, 2023

It has to do with an update to treesitter and that your parsers may be incompatable
What happens if you git pull (or git fetch upstream && git merge upstream/master) and :TSUpdate

@d3vv3
Copy link

d3vv3 commented Nov 26, 2023

For me it was the sudo dnf install g++

@arantebw
Copy link

For me it was the sudo dnf install g++

I have a new machine, so g++ and its dependencies were missing, this works for me.

@Brikkel
Copy link

Brikkel commented Jun 2, 2024

To fix this issue i have to install sudo dnf install gcc gcc-c++ make please update the readme.md

but still i am seeing a issue

**stack traceback: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:200: in function 'get_query' ...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:91: in function 'get_query' ...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:169: in function 'prepare_query' ...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:288: in function 'iter_captures' ...ker/start/nvim-treesitter/lua/nvim-treesitter/indent.lua:50: in function 'fn' ...r/start/nvim-treesitter/lua/nvim-treesitter/ts_utils.lua:356: in function 'get_indents' ...ker/start/nvim-treesitter/lua/nvim-treesitter/indent.lua:98: in function 'get_indent' ...tart/indent-blankline.nvim/lua/indent_blankline/init.lua:466: in function '' vim/_editor.lua: in function <vim/_editor.lua:0> *

Finally, installing gcc-c++ fixed all my tresitter issues

@View-my-Git-Lab-krafi
Copy link
Author

thanks to everyone , i dont know this issue is reinvent with present fedora version and neonim , thanks for your time, bye

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants