otavioschwanck / mood-nvim

A Neovim configuration for Rails and Javascript
90 stars 12 forks source link

Errors when installing from bash script #20

Closed coderberry closed 1 year ago

coderberry commented 1 year ago

Hi Otavio!

I am trying to install mood-nvim by using the command:

bash <(curl -Ls https://raw.githubusercontent.com/otavioschwanck/mood-nvim/main/bin/mood-installer.sh)

And I am getting the following errors:

Error detected while processing command line:
Failed to run `config` for telescope.nvim
...m/lazy/telescope.nvim/lua/telescope/_extensions/init.lua:10: 'tmux-awesome-manager' extension doesn't exist or isn't installed: module 'telescope._extensions.tmux-awesome-manager' not found:
^Ino field package.preload['telescope._extensions.tmux-awesome-manager']
cache_loader: module telescope._extensions.tmux-awesome-manager not found
cache_loader_lib: module telescope._extensions.tmux-awesome-manager not found
^Ino file './telescope/_extensions/tmux-awesome-manager.lua'
^Ino file '/opt/homebrew/share/luajit-2.1.0-beta3/telescope/_extensions/tmux-awesome-manager.lua'
^Ino file '/usr/local/share/lua/5.1/telescope/_extensions/tmux-awesome-manager.lua'
^Ino file '/usr/local/share/lua/5.1/telescope/_extensions/tmux-awesome-manager/init.lua'
^Ino file '/opt/homebrew/share/lua/5.1/telescope/_extensions/tmux-awesome-manager.lua'
^Ino file '/opt/homebrew/share/lua/5.1/telescope/_extensions/tmux-awesome-manager/init.lua'
^Ino file './telescope/_extensions/tmux-awesome-manager.so'
^Ino file '/usr/local/lib/lua/5.1/telescope/_extensions/tmux-awesome-manager.so'
^Ino file '/opt/homebrew/lib/lua/5.1/telescope/_extensions/tmux-awesome-manager.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file './telescope.so'
^Ino file '/usr/local/lib/lua/5.1/telescope.so'
^Ino file '/opt/homebrew/lib/lua/5.1/telescope.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
# stacktrace:
  - /telescope.nvim/lua/telescope/_extensions/init.lua:10 _in_ **load_extension**
  - /telescope.nvim/lua/telescope/_extensions/init.lua:62 _in_ **load_extension**
  - .config/nvim/lua/plugins/telescope.lua:135 _in_ **config**
  - /telescope-all-recent.nvim/lua/telescope-all-recent/override.lua:1
  - /telescope-all-recent.nvim/lua/telescope-all-recent/init.lua:3
  - .config/nvim/lua/plugins/init.lua:112 _in_ **config**
  - .config/nvim/lua/core/plugins.lua:18
  - .config/nvim/init.lua:4 _in_ **setup**
  - .config/nvim/init.lua:25
[mason] [INFO  09:40:52] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:166: Executing installer for Package(name=typescript-language-server) {}
[mason] [INFO  09:40:52] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:166: Executing installer for Package(name=lua-language-server) {}
[mason] [INFO  09:40:52] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:166: Executing installer for Package(name=json-lsp) {}
[mason] [INFO  09:40:52] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:166: Executing installer for Package(name=solidity-ls) {}
[mason.nvim] Neovim is exiting while packages are still installing. Terminating all installations…[mason-lspconfig.nvim] failed to install lua_ls. Installation logs are available in :Mason and :MasonLog
[mason] [ERROR 09:40:54] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:200: Installation failed for Package(name=lua-language-server) error="Installation was aborted."
[mason] [ERROR 09:40:54] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:200: Installation failed for Package(name=json-lsp) error="Installation was aborted."
[mason-lspconfig.nvim] failed to install jsonls. Installation logs are available in :Mason and :MasonLog
[mason] [ERROR 09:40:54] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:200: Installation failed for Package(name=solidity-ls) error="Installation was aborted."
[mason-lspconfig.nvim] failed to install solidity. Installation logs are available in :Mason and :MasonLog
[mason-lspconfig.nvim] tsserver was successfully installed
[mason.nvim] Neovim exited while the following packages were installing. Installation was aborted.
- json-lsp
- lua-language-server
- solidity-ls
- typescript-language-server

I installed all of the pre-requisites, but each time I run nvim, I see the following errors:

CleanShot 2023-03-31 at 09 48 03

CleanShot 2023-03-31 at 09 48 32

Once I am in nvim, I am unable to run :PackerSync

otavioschwanck commented 1 year ago

Hi @coderberry , how are you?

Lets try to uninstall everything and install again:

Clean your neovim plugin stuff:

rm -rf ~/.local/share/nvim

And try to install again.

We are using lazy, not packer. You can run :Lazy install or :Lazy restore

otavioschwanck commented 1 year ago

@coderberry It was a bug indeed, commited the dev stuff, my bad! FIxed already

Just go to ~/.config/nvim and do a pull. After that open neovim

TulioMagnus commented 1 year ago

If you have any feedback on the automatic installment process please feel free to share, we are always trying to make it better.