alm icon indicating copy to clipboard operation
alm copied to clipboard

Running alm.tools on termux (android)

Open angelosc opened this issue 9 years ago • 8 comments

I'm trying to run alm.tools on my android device using termux. I'am able to install it without any errors, but after starting it, I'm getting the following error:

fileListingWorker worker restarting. Don't know why it stopped with code: 1 CANNOT LINK EXECUTABLE: library "libcares.so" not found projectServiceWorker worker restarting. Don't know why it stopped with code: 1 CANNOT LINK EXECUTABLE: library "libcares.so" not found

and the errors are repeated until I stop it (through ctrl-c)

Any ideas ?

angelosc avatar Jan 22 '17 13:01 angelosc

Suspect chokidar or perhap fsevents doesn't work on termux. If that is indeed the case their install should have failed (better ux) instead of runtime. Typing on my mobile. Will give you steps to narrow down soon 🌹👌🏻

basarat avatar Jan 22 '17 20:01 basarat

Use the following repro

mkdir foo 
cd foo
npm init -y
npm install chokidar --save
node -e "require('chokidar')";

Please report the error to https://github.com/paulmillr/chokidar/issues :rose:

I personally don't have a termux setup :heart:

basarat avatar Jan 22 '17 22:01 basarat

I have been trying to get this great project to work in Termux on Android as well. I get the same worker issues described above, however chokidar doesn't seem to be the problem.

mkdir foo 
cd foo
npm init -y
npm install chokidar --save
node -e "require('chokidar')";

runs fine. Also installing chokidar and running node chokidar-test.js with:

var chokidar = require('chokidar');
chokidar.watch('.', {ignored: /[\/\\]\./}).on('all', (event, path) => {
  console.log(event, path);
});

correctly executes and logs events to the console.

Any other idea why fileListingWorker and projectServiceWorker might be failing at runtime? It would be amazing to have alm running on an Android tablet. It's the perfect portable device for developing on the go. Right now I'm stuck with vim while traveling, but have been dying for a better editor like alm for some time now.

dontsave avatar Feb 18 '17 04:02 dontsave

That moment when my code is the only one experiencing the problem

image

😄 😢 :rose:

basarat avatar Feb 18 '17 05:02 basarat

@dontsave using su? (ref https://github.com/termux/termux-app/issues/112#issuecomment-230656521)

basarat avatar Feb 18 '17 05:02 basarat

@basarat not in su. the error happens as a normal user. su alm just results in alm command not found

dontsave avatar Feb 18 '17 21:02 dontsave

@dontsave released with 2.33.0 give it a go! :rose:

/cc @notoriousb1t the attached commit https://github.com/alm-tools/alm/commit/eddbc6715d4d27f3436a0adc5bc4387db738a772 essentially breaks atom support. Some gory memories https://github.com/atom/atom/issues/2887#issuecomment-93887882 :rose:

basarat avatar Feb 18 '17 21:02 basarat

works great now!

dontsave avatar Feb 20 '17 03:02 dontsave