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

git password prompt in lakefile breaks neovim #274

Open
gebner opened this issue Sep 2, 2022 · 3 comments
Open

git password prompt in lakefile breaks neovim #274

gebner opened this issue Sep 2, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@gebner
Copy link
Collaborator

gebner commented Sep 2, 2022

Put the following in a lakefile:

require std4 from git "https://github.com/leanprover-community/std4" @ "main"

Note that I made a mistake: this repo does not exist since std4 is in the leanprover organization.

When I open this file in neovim, it then shows the following:

  meta if get_config? doc = some "on" then -- do not download and build doc-gen4 by default
  require «doc-gen4» from git "https://github.com/leanprover/doc-gen4" @ "main"
+
+ Username for 'https://github.com': ub.com/leanprover-community/std4" @ "main"

There is a password prompt, and it shown on top of the neovim TUI. Even worse, there is no way to either enter a password or interact with neovim.

@Julian Julian added bug Something isn't working lean4 labels Sep 2, 2022
@Julian
Copy link
Owner

Julian commented Sep 2, 2022

I don't see that here -- anything else you can share about reproducing?

What I see isn't much (no error at all):

Screen.Recording.2022-09-02.at.22.11.15.mov

@gebner
Copy link
Collaborator Author

gebner commented Sep 2, 2022

This could be a difference between macOS and Linux. From what I can tell the git password prompt goes to extreme lengths so that it is shown (and accepts input!) even when you redirect all outputs:

$ git clone https://github.com/leanprover-community/std4 </dev/null >/dev/null 2>/dev/null
Username for 'https://github.com': gebner
Password for 'https://gebner@github.com':

@Julian
Copy link
Owner

Julian commented Sep 2, 2022

Got it, will give a shot on a Linux box then I guess (though what you show there is the same as the behavior on macOS -- I think it just chooses to read/write directly to /dev/tty?)

@Julian Julian removed the lean4 label Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants