mttkay / replicant

A REPL for the Android Debug Bridge (ADB)
MIT License
123 stars 9 forks source link

"The specified path does not exist" after start on Windows #25

Open frapontillo opened 10 years ago

frapontillo commented 10 years ago

After launching replicant from the Windows cmd.exe or Console2, a The specified path does not exist error is thrown.

Everything keeps working, but that may cause an issue when launching replicant from external tools. In Intellij Idea, for example, as it looks like it's not flushing the standard error properly, thus not showing the initial "Welcome" message.

Attached screenshot.

screenshot 2013-11-29 21 07 39

mttkay commented 10 years ago

I've never tested on Windows and I'm surprised it even starts. There's a few Unix specific things hard coded that would only work on *nixes and Mac. I don't have a Windows box to test unfortunately. Which shell are you using? Are you using bash via cygwin or something similar?

mttkay commented 10 years ago

Oh you mentioned it's cmd.exe (not sure what Console 2 is.)

I'm honestly not super interested in adding Windows support and don't have the setup to test it anyway, but if you feel like helping out or know someone who can, I'd happily accept patches!

frapontillo commented 10 years ago

I am using the standard cmd prompt and Console2, which basically redirects everything to cmd, I guess. Yes, I have Cygwin installed as well. Yeah, I may try to debug the issue if I ever find the time to learn ruby too. :)

mttkay commented 10 years ago

I suspect it's related to the dotfiles it installs during startup to make autocompletion and history work. It places those files in your home directory, which works differently on Windows.

Maybe I can put some time aside to look at it in a VirtualBox.

Out of curiosity, why are you using cmd.exe? That's like the worst shell in computing history. Especially with cygwin installed, you could just use bash or zshell. They will translate Unix paths to Windows.

frapontillo commented 10 years ago

That problem also happens on a Cygwin-free machine, the one I am currently on. I tried installing Cygwin/bash.exe on this one as well, and replicant still gives the same path error.