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

Using powershell for downloading is broken when calling julia from inside mintty. #167

Closed
twadleigh opened this issue Sep 1, 2015 · 6 comments

Comments

@twadleigh
Copy link

I am testing wrapping julia in the mintty terminal emulator for windows. In that case, using powershell for downloads in download_cmd causes a hang. Removing :powershell, it worked fine with curl for me.

@tkelman
Copy link
Contributor

tkelman commented Sep 5, 2015

I'm having a hard time reproducing this.

@twadleigh
Copy link
Author

I can't reproduce it on the loaner laptop I have right now, either. I'll try again on my work machine when I'm back in the office next week.

I'm now seeing this on my laptop. I'll try to hack up BinDeps to make things more verbose and see if I can provide some better information.

@twadleigh
Copy link
Author

On my machine I'm able to reproduce this by:

  1. deleting the usr and downloads directories under Images/deps;
  2. executing Pkg.build("Images") from mintty-wrapped julia.

BinDeps hangs here while executing the command:

`powershell -Command '(new-object net.webclient).DownloadFile("http://www.imagemagick.org/download/binaries/ImageMagick-6.9.2-0-Q16-x64-dll.exe", "C:\tw\v0.4\Images\deps\downloads\ImageMagick-6.9.2-0-Q16-x64-dll.exe")'`

The download completes, but the run never returns.

@twadleigh
Copy link
Author

I'm hoping this ends up having the same root cause as the "Ctrl+C in a subprocess kills mintty" problem, so that one fix addresses both outstanding issues.

Unfortunately, this seems to boil down to subtlies with spawn, which puts it outside of my comfort zone. I might be able to push this forward with some help, but I'm otherwise at an impasse.

@tkelman
Copy link
Contributor

tkelman commented May 4, 2016

@twadleigh or anyone else who was able to reproduce this, can you remind me what version of Windows you were using when you saw this? The Images download presumably needs to be ImageMagick now.

edit: windows 7 according to JuliaLang/julia#7267 (comment)

@twadleigh
Copy link
Author

Win 7

On Wed, May 4, 2016, 1:16 AM Tony Kelman [email protected] wrote:

@twadleigh https://github.com/twadleigh or anyone else who was able to
reproduce this, can you remind me what version of Windows you were using
when you saw this? The Images download presumably needs to be ImageMagick
now.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#167 (comment)

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