ThePrimeagen / ThePrimeagen/init.lua
Missing Prerequisite for C compiler
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4k
- Forks
- 680
- PR merge metrics
- No merged PRs in 30d
Description
After watching your great video I decided it would be easier to start with your config and modify it rather that starting from scratch.
After cloning the repo I get
Failed to run `config` for nvim-treesitter
....local/.config/nvim/lua/theprimeagen/lazy/treesitter.lua:44: attempt to call field 'register' (a nil value)
# stacktrace:
- nvim/lua/theprimeagen/lazy/treesitter.lua:44 _in_ **config**
- /cellular-automaton.nvim/plugin/cellular-automaton.lua:6
- nvim/lua/theprimeagen/lazy_init.lua:14
- nvim/lua/theprimeagen/init.lua:3
Press ENTER or type command to continue
- nvim/init.lua:1
Press ENTER or type command to continue
Failed to source `~/.local/share/nvim/lazy/cellular-automaton.nvim/plugin/cellular-automaton.lua`
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:485: Vim(source):No C compiler found! "cc", "gcc", "clang", "cl", "zig" are not executable.
# stacktrace:
- nvim/lua/theprimeagen/lazy_init.lua:14
- nvim/lua/theprimeagen/init.lua:3
I think C should be added as a prerequiste.
After installing C, using https://developers.redhat.com/articles/2023/11/10/install-gcc-and-build-hello-world-application-rhel-8#,
I get errors on harpoon so there is probably another prerequiste.
Failed to run `config` for nvim-treesitter
....local/.config/nvim/lua/theprimeagen/lazy/treesitter.lua:44: attempt to call field 'register' (a nil value)
# stacktrace:
- .config/nvim/lua/theprimeagen/lazy/treesitter.lua:44 _in_ **config**
- .config/nvim/lua/theprimeagen/lazy_init.lua:14
- .config/nvim/lua/theprimeagen/init.lua:3
Press ENTER or type command to continue
- .config/nvim/init.lua:1
Press ENTER or type command to continue
Failed to run `config` for harpoon
...~/.config/nvim/lua/theprimeagen/lazy/local.lua:7: module 'harpoon' not found:
^Ino field package.preload['harpoon']
cache_loader: module harpoon not found
cache_loader_lib: module harpoon not found
^Ino file './harpoon.lua'
^Ino file '/usr/share/luajit-2.1.0-beta3/harpoon.lua'
^Ino file '/usr/local/share/lua/5.1/harpoon.lua'
^Ino file '/usr/local/share/lua/5.1/harpoon/init.lua'
^Ino file '/usr/share/lua/5.1/harpoon.lua'
^Ino file '/usr/share/lua/5.1/harpoon/init.lua'
^Ino file './harpoon.so'
^Ino file '/usr/local/lib/lua/5.1/harpoon.so'
^Ino file '/usr/lib64/lua/5.1/harpoon.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
# stacktrace:
- .config/nvim/lua/theprimeagen/lazy/local.lua:7 _in_ **config**
- .config/nvim/lua/theprimeagen/lazy_init.lua:14
- .config/nvim/lua/theprimeagen/init.lua:3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the startup errors, then read lua/theprimeagen/lazy/treesitter.lua, lua/theprimeagen/lazy/local.lua, lua/theprimeagen/lazy_init.lua, and lua/theprimeagen/init.lua to trace the reported prerequisites. Document the required C compiler and any prerequisite indicated by the Harpoon failure, then verify a fresh setup no longer shows these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- documentation, tooling
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100