Skip to content
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`

@Z3rio Z3rio Nov 10, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Copy link
Copy Markdown

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.