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

Debug JS remotely opens Chrome in Parallels Desktop before Chrome.app on macOS #11480

Closed
habovh opened this Issue Dec 15, 2016 · 10 comments

Comments

Projects
None yet
@habovh

habovh commented Dec 15, 2016

Description

Enabling Debug JS Remotely on a macOS computer that has Parallels Desktop installed with Chrome on Windows as well as the macOS version of Chrome opens the Parallels Desktop Windows virtual machine to launch Google Chrome there instead of the macOS one.
Note that if the packager does not try to open the new tap (e.g. when Chrome is already opened on Mac-side with a tab existing to the default debugger-ui URL), it does not open Parallels Desktop and uses the already existing tab in Chrome on macOS.

This issue might not be directly related to RN itself, but in the way that the tab is opened specifically in Chrome.

Reproduction

  • Use a Mac
  • Have Parallels Desktop with a Windows virtual machine and Chrome installed
  • Start remote debugging
  • Packager opens Parallels Desktop with Windows along with its Chrome app.

Solution

Open Google Chrome on macOS with a tab opened on http://localhost:8081/debugger-ui before enabling Remote JS Debugging

Additional Information

  • React Native version: 0.34.1
  • Platform: Mac
  • Operating System: macOS Sierra 10.12.1
@lamjack

This comment has been minimized.

lamjack commented Dec 16, 2016

i have the same problem too.

@wookiem

This comment has been minimized.

wookiem commented Dec 23, 2016

One workaround is to go into Parallels Desktop and uncheck: Share Windows Applications with Mac OS X.

http://superuser.com/questions/213122/how-to-disassociate-a-file-type-with-an-application-in-mac-os

@habovh

This comment has been minimized.

habovh commented Dec 23, 2016

Thanks for the tip @wookiem! That's a very good information here, will save me a lot of RAM actually! But since it is not really a fix, I believe this issue should stay opened until someone figures out if the packager would eventually be able to open the browser from macOS, or if it is maybe the desired behavior not to "force" any browser in case the user actually would want to debug in Parallels? That'd be silly though. 🤔

@hramos

This comment has been minimized.

Contributor

hramos commented May 25, 2017

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.

@hramos hramos closed this May 25, 2017

@hramos hramos added the Icebox label May 26, 2017

@iMagdy

This comment has been minimized.

Contributor

iMagdy commented Jun 2, 2017

I'm gettings this too

image

image

@mateoc10

This comment has been minimized.

mateoc10 commented Jun 4, 2017

@iMagdy I just found a solution to that problem. The problem was that I uninstalled parallel desktop long ago but some files where still in my computer. I deleted the folder "Applications (parallel)". It had lots of windows applications in it. Now it works perfectly

@chriscohoat

This comment has been minimized.

chriscohoat commented Jun 9, 2017

@wookiem's solution worked for me..I needed to select the virtual machine's settings, click options, click applications, and then disable sharing of windows applications with Mac:

screenshot 2017-06-09 12 28 33

@john-crisostomo

This comment has been minimized.

john-crisostomo commented Nov 16, 2017

Funny this just happened to my project, I dunno what caused it though. Doing the solution above fixed it, however, I don't really know / understand why it happened.

@tbusot

This comment has been minimized.

tbusot commented May 4, 2018

FYI the above never worked for me but then I noticed that it was calling to a VM that had been deleted. My current was "Windows 10", but it was calling for "Windows 8" version of Google Chrome. I located the folder Users > %me% > Applications (Parallels) > Windows 8 Applications >
In there, I deleted Google Chrome and it fixed it right up.
Hope this helps some other frustrated soul.

@brandonwbrown

This comment has been minimized.

brandonwbrown commented Jul 3, 2018

I just had this problem as well and turning off "share applications" in parallels works as above, but then parallels can not use coherence mode.

@facebook facebook locked as resolved and limited conversation to collaborators Jul 19, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.