Skip to content

fix(ols): add error handling for 'odin root' command - #4511

Merged
justinmk merged 1 commit into
neovim:masterfrom
Silzinc:patch-1
Aug 21, 2026
Merged

justinmk merged 1 commit into
neovim:masterfrom
Silzinc:patch-1

Conversation

@Silzinc

@Silzinc Silzinc commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Handle errors when executing the 'odin root' command. Currently, if odin is not in the path, the configuration may provoke an error when opening an odin file.

@justinmk

justinmk commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

if odin is not in the path, the configuration may provoke an error when opening an odin file.

then check executable() , dont just throw pcall on something.

also there is a failing CI

Problem:
Current config throws an error if 'odin' is not on the PATH.

Solution:
Check its availability with executable().
@Silzinc

Silzinc commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor Author

My bad, that will teach me to edit online. Should be good now. (I force pushed to satisfy the commits convention)

@justinmk
justinmk merged commit 62c718f into neovim:master Aug 21, 2026
5 checks passed
@Silzinc
Silzinc deleted the patch-1 branch August 21, 2026 22:47
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

Successfully merging this pull request may close these issues.

2 participants