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

docs: Add troubleshooting Help for M1 Macs #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/troubleshooting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,19 @@ If they are then you are using the syntax prior to [LunarVim#1813](https://githu
-- this is the correct syntax since 3dd60bd
vim.list_extend(lvim.lsp.override, { "jsonls" })
```

## Running LunarVim on M1 mac reports error `mach-o, but wrong architecture`
Copy link
Contributor

@Z3rio Z3rio Nov 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Running LunarVim on M1 mac reports error `mach-o, but wrong architecture`
## Errors with `mach-o` on startup

Sounds better considering the headers of the other troubleshoot helps


On start up, lunarvim reports errors such as below with several plugins.

``` bash
no suitable image found. Did find:
$HOME/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/kotlin.so: mach-o, but wrong architecture
$HOME/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/kotlin.so: mach-o, but wrong architecture
```

Lunarvim does not support M1 mac natively. This can be fixed by installing
homebrew and neovim through the x86_64 architecture platfomr location
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
homebrew and neovim through the x86_64 architecture platfomr location
homebrew and neovim through the x86_64 architecture platform location

Fix typo

`/usr/local`. Doing so will run neovim and homebrew through the x86_64
architecture. This only works provided you have Rosetta installed.
Comment on lines +86 to +89
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just got it confirmed on discord that you can have a native mac-o installation of Neovim through macports, so this not completely accurate.

Suggested change
Lunarvim does not support M1 mac natively. This can be fixed by installing
homebrew and neovim through the x86_64 architecture platfomr location
`/usr/local`. Doing so will run neovim and homebrew through the x86_64
architecture. This only works provided you have Rosetta installed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, do you mind detailing here how those individuals did that? I tried mostly everything I could to install brew and neovim and its dependencies through /opt/homebrew but it always led to the issue linked above.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just used macports which installed neovim as a native M1 application without any tweaks.