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

Doesn't open browser in Windows #168

Open
janpio opened this issue Sep 27, 2018 · 7 comments
Open

Doesn't open browser in Windows #168

janpio opened this issue Sep 27, 2018 · 7 comments
Labels

Comments

@janpio
Copy link

janpio commented Sep 27, 2018

C:\Projects\Fastlane\optimize_startup_time (master -> origin)
λ speedscope C:\Users\Jan\.cache\rbspy\records\rbspy-2018-09-27-Y7AYEI5ihd.speedscope.json
Creating temp file C:\Users\Jan\AppData\Local\Temp\speedscope-1538089620601-55152.js
Creating temp file C:\Users\Jan\AppData\Local\Temp\speedscope-1538089620601-55152.html
Opening file://C:\Users\Jan\AppData\Local\Temp\speedscope-1538089620601-55152.html in your default browser

Nothing happens.

Opening file://C:\Users\Jan\AppData\Local\Temp\speedscope-1538089620601-55152.html manually worked.

@jlfwong
Copy link
Owner

jlfwong commented Sep 27, 2018

Hi @janpio, thanks for reporting this! I've done verrry close to zero testing on windows, so this doesn't particularly surprise me :)

I'll try to find some time to investigate this on a Windows VM.

Out of curiousity, which shell are running speedscope in on Windows? Is this powershell or git bash or something else?

@jlfwong jlfwong added the bug label Sep 27, 2018
@janpio
Copy link
Author

janpio commented Sep 27, 2018

Yeah, it didn't really surprise me as well, so no harm done ;)
Easiest solution is probably to change the text on Windows that the user should open it manually.

I was using Cmder right now, that usually behaves a bite more like git bash or a macOS or Linux shell than Powershell or cmd.exe. But should work everywhere of course 🔫

@spillerrec
Copy link
Contributor

spillerrec commented Aug 24, 2020

Changing the line cli.js:92:

  await opn(urlToOpen, {wait: false})

to wait: true solves the issue for me both in cmd and Powershell. I also notice that the 'opn' package has been renamed to 'open' and the old package has been deprecated. Using 'opn' or 'open' does not make any difference as far as I can tell.

@jlfwong
Copy link
Owner

jlfwong commented Aug 24, 2020

@spillerrec Oh sweet, thanks for figuring that out. I'd accept a PR to switch packages & patch the bug if you're interested!

spillerrec added a commit to spillerrec/speedscope that referenced this issue Aug 25, 2020
@spillerrec
Copy link
Contributor

I have created a PR here: #307
I haven't worked on Node projects before, so let me know if I managed to mess it up despite the small amount of changes.

@jlfwong
Copy link
Owner

jlfwong commented Sep 14, 2020

This should be fixed now on master thanks to @spillerrec, and will go out with the next release. No promises on when that's going to be, but hopefully sometime in the next week or two.

@jlfwong
Copy link
Owner

jlfwong commented Sep 30, 2020

This has now been released, so it should be fixed in speedscope@1.10.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants