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

Timeout/write error on Termux #7

Closed
alexmozaidze opened this issue May 4, 2023 · 9 comments
Closed

Timeout/write error on Termux #7

alexmozaidze opened this issue May 4, 2023 · 9 comments

Comments

@alexmozaidze
Copy link

alexmozaidze commented May 4, 2023

For one termux-open-url takes some time to execute, giving me this error:
Screenshot_2023-05-04-03-55-12-648-edit_com termux

Second thing, termux-open-url only accepts valid url's, so the address must be prepended with the protocol (see termux/termux-app#1684), so be wary of that in case you'd want to implement #3.

@ofirgall
Copy link
Owner

ofirgall commented May 4, 2023

Hey, I'm not familiar with termux-open-url but the errors seems to occur because of time out of curl to https://api.github.com/repos/ofirgall/open.nvim.
Can you try to re-run the curl command that appears in the error message in your terminal?

@alexmozaidze
Copy link
Author

I ran curl -sSL -D ./bruh-zone --compressed -X GET https://api.github.com/repos/ofirgall/open.nvim and it worked. This is most definitely a timeout problem.

@ofirgall
Copy link
Owner

ofirgall commented May 4, 2023

I don't know what is the problem but you should open a ticket in plenary.nvim because it says it timed out in the image you attached.

@alexmozaidze
Copy link
Author

alexmozaidze commented May 5, 2023

I found this issue on plenary.nvim, perhaps, this could be fixed by setting the timeout on open.nvim's side?

@ofirgall
Copy link
Owner

ofirgall commented May 5, 2023

Feel free to add timeout in curl_opts at open.nvim's setup

@alexmozaidze
Copy link
Author

I put the timeout to 10 minutes (just to be sure) and discovered a different error message:
Screenshot_2023-05-05-20-06-58-456_com termux

@alexmozaidze
Copy link
Author

This really seems like an issue on plenary's side. I'll open an issue there later.

@alexmozaidze alexmozaidze changed the title Termux support Timeout/write error on Termux May 5, 2023
@alexmozaidze
Copy link
Author

Solved with merging nvim-lua/plenary.nvim#503. In order to make open.nvim work on Termux, one must set XDG_RUNTIME_DIR like so:

# .bashrc
export XDG_RUNTIME_DIR="$PREFIX/tmp"

Can you, please, mention this in the README?

@ofirgall
Copy link
Owner

ofirgall commented Jul 6, 2023

Thanks!

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

No branches or pull requests

2 participants