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

Windows support #1

Closed
ndmitchell opened this issue Jan 18, 2017 · 10 comments
Closed

Windows support #1

ndmitchell opened this issue Jan 18, 2017 · 10 comments

Comments

@ndmitchell
Copy link

Perhaps mention in the README that because this depends on vty it won't work on Windows, see jtdaugherty/vty#119.

@maoe
Copy link
Owner

maoe commented Jan 19, 2017

I wonder if I should switch over to a Windows-compatible library like ansi-terminal. It's much lower-level though.

@maoe
Copy link
Owner

maoe commented Jan 21, 2017

I've added README. I'll leave this open until viewprof gets Windows support.

@maoe
Copy link
Owner

maoe commented Feb 10, 2017

https://blogs.msdn.microsoft.com/commandline/2017/02/09/haskell-on-bashwsl/ may fix the issue without modifying vty.

@maoe
Copy link
Owner

maoe commented Feb 15, 2017

I added some Docker support in https://github.com/maoe/viewprof/tree/feature/docker, which may or may not work on Windows. If anyone has Windows that can run Docker, please try Windows equivalent of the following commands:

git clone https://github.com/maoe/viewprof.git
cd viewprof
git checkout feature/docker
./docker/setup
./docker/viewprof path/to/your.prof

@igrep
Copy link
Contributor

igrep commented Apr 22, 2017

I'm trying to try the docker image, then added this commit igrep@bedeea5
But I still have a problem. Maybe same as docker-archive/toolbox#607

@maoe
Copy link
Owner

maoe commented Apr 22, 2017

@igrep Thanks for trying this out!

So I suppose you got the invalid bind mount error as described in the ticket presumably on Windows 7 when running ./docker/viewprof, right?

I wonder if we need to tweak the -v option in ./docker/viewprof. The last comment on that issue says:

  • the 'Users' directory must be spelled like that, not "users".
  • the '//var/www/html' must be changed back to '/...' even though it helps when used with the -w parameter,
  • you have to set explicitly the mode, which is :rw

What if you hard-code the $PROF_FILE variable such that it satisfies all three points above?

@igrep
Copy link
Contributor

igrep commented Apr 23, 2017

So I suppose you got the invalid bind mount error as described in the ticket presumably on Windows 7 when running ./docker/viewprof, right?

Yes. But appending :rw failed with this error (same as without :rw)

> ./docker/viewprof dupln-test-M2G.prof
time="2017-04-23T10:14:35+09:00" level=info msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"

C:/Program Files/Docker Toolbox/docker.exe: Error response from daemon: invalid bind mount spec "C:\\Users\\Yuji\\Dropbox\\prg\\foreign\\viewprof\
\dupln-test-M2G.prof;C:\\msys64\\home\\viewprof\\--;rw": invalid mode: \msys64\home\viewprof\--;rw.
See 'C:/Program Files/Docker Toolbox/docker.exe run --help'.

@igrep
Copy link
Contributor

igrep commented Apr 23, 2017

And hard-coding did the same:

> ./docker/viewprof dupln-test-M2G.prof
time="2017-04-23T10:19:15+09:00" level=info msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"

C:/Program Files/Docker Toolbox/docker.exe: Error response from daemon: invalid bind mount spec ".\\dupln-test-M2G.prof;C:\\msys64\\home\\viewprof
\\dupln-test-M2G.prof": invalid volume specification: '.\dupln-test-M2G.prof;C:\msys64\home\viewprof\dupln-test-M2G.prof': invalid mount config fo
r type "volume": invalid mount path: '\msys64\home\viewprof\dupln-test-M2G.prof' mount path must be absolute.
See 'C:/Program Files/Docker Toolbox/docker.exe run --help'.

@igrep
Copy link
Contributor

igrep commented Apr 23, 2017

I'm gonna try some of these:

  • Tweak COMPOSE_CONVERT_WINDOWS_PATHS with docker-compose.
  • Downgrade Docker Toolbox.

@maoe
Copy link
Owner

maoe commented May 8, 2017

Thanks to @igrep, we can run viewprof using Docker. I still hope proper support for Windows is implemented in vty but we can close this for now.

@maoe maoe closed this as completed May 8, 2017
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

3 participants