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

fix: set startup directory failed is not an error #2457

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

TwIStOy
Copy link
Contributor

@TwIStOy TwIStOy commented Apr 2, 2024

Fix launching neovide with a "fake" neovim instance neovide --neovim-bin nvim.dev.local:

nvim.dev.local:

#!/bin/bash
ssh dev.local "bash -l -c \"nvim $@\"" 

What kind of change does this PR introduce?

  • Fix

Did this PR introduce a breaking change?

  • No

@Kethku Kethku merged commit bcd9134 into neovide:main Apr 2, 2024
2 checks passed
@Kethku
Copy link
Member

Kethku commented Apr 2, 2024

Seems good to me. Ty

@fredizzimo
Copy link
Member

It's a reasonable fix, but I think there's another bug hiding here. The startup directory is not supposed to be set based on the --neovim-bin argument, only based on actual files and directories passed as arguments.

@falcucci

@falcucci
Copy link
Member

falcucci commented Apr 2, 2024

this is indeed a good missing error treatment.

It's a reasonable fix, but I think there's another bug hiding here. The startup directory is not supposed to be set based on the --neovim-bin argument, only based on actual files and directories passed as arguments.

I think it has nothing with --neovim-bin and also the startup dir should follow for non tty only.

I am just not able to replicate it just creating that "fake" neovim instance as mentioned.

A startup path must be given somehow.

the following command wouldn't be even considered as a non tty:

neovide --neovim-bin nvim.dev.local

I have created an instance as a connected fake server and nothing wrong happened aswell,

It also depends about the platform. macOS would take $HOME in this case and execute it.

So I cannot suppose a hided bug here, we need to replicate it first.

@TwIStOy TwIStOy deleted the fix-command-arg branch April 3, 2024 10:48
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.

None yet

4 participants