zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
25.2k stars 1.18k forks source link

Plugins cant me installed using plugin manager #1513

Open raprocks opened 4 years ago

raprocks commented 4 years ago

Description of the problem or steps to reproduce

Since 2.0.0 i cant use the internal plugin manager to install plugins like any plugin. It sometimes returns I/O timeout and sometimes connection refused.

OS: android 7.1.2 Terminal: Termux Screenshot_20200215-154143 As you can see my internet is working fine

zyedidia commented 4 years ago

It's hard to tell what the problem is. However, you can manually install plugins, either by downloading the zip file for the plugin or cloning the git repository for the plugin into ~/.config/micro/plug.

raprocks commented 4 years ago

@zyedidia i did that already the plugins seem to work that way . The problem is only when using online features of plugin manager like update install and available

@dullbananas :)) i dont have a pc lol thats why

niten94 commented 2 months ago

The commit hash format and compilation date is same with the executable file in GitHub so I think the package in Termux was not used. Errors about I/O timeout or connection being refused occur when running Go programs compiled with Linux as target in Termux, because domains have to be looked up using a different method in Android.

Network functions in Bionic libc are used when compiling Go programs and targetting Android, but /etc/resolv.conf is usually used when targetting Linux. The DNS server listening at UDP port 53 on IPv6 localhost is probably used when the file cannot be used, but a DNS server is not usually run. There is a page where differences with Linux are written: https://wiki.termux.com/wiki/Differences_from_Linux

Go programs in Termux packages target Android and use $PREFIX/etc/resolv.conf in resolv-conf package so micro package can be used and installed instead. I do not think it will be much useful distributing executable files targetting Android in GitHub, but proot can be used like this especially when testing and running pre-release versions:

pkg install proot resolv-conf
proot -b $PREFIX/etc/resolv.conf:/etc/resolv.conf micro -plugin available