[英]Running an app in WebStorm on MacOS with Parallels installed
When I try to run a project from WebStorm 9, I get the following error: 当我尝试从WebStorm 9运行项目时,我收到以下错误:
The application /User/{Username}/Applications (Parallels)/{{guid}}/...
I then click "Fix" and try to specify a custom path to Chrome. 然后,我点击“修复”并尝试指定Chrome的自定义路径。 After I browse, it shows up as:
浏览后,显示为:
/Applications/Google Chrome.app
Parallels seems to be forcing WebStorm to look for applications in the Parallels folder. Parallels似乎迫使WebStorm在Parallels文件夹中查找应用程序。
How can I override this behavior in WebStorm? 如何在WebStorm中覆盖此行为?
这是Parallels问题 - 请参阅http://youtrack.jetbrains.com/issue/WI-36#comment=27-70940请尝试以下方法:全局平行菜单:虚拟机 - >配置 - >选项选项卡 - >应用程序 - >取消选中与Mac共享Windows应用程序
I also had the same issue and changing Parallels sharing settings was not a good option for me. 我也有同样的问题,改变Parallels共享设置对我来说不是一个好选择。 Fortunately, it can be fixed in WebStorm configuration.
幸运的是,它可以在WebStorm配置中修复。 Just specify Mac location of Chrome /Applications/Google Chrome.app instead of an incorrect one Google Chrome.app for the default browser setting in ide.general.xml :
只需为ide.general.xml中的默认浏览器设置指定Chrome / Applications / Google Chrome.app的 Mac位置,而不是错误的一个Google Chrome.app :
~/Library/Preferences/WebStorm11/options/ide.general.xml
...
<option name="browserPath" value="/Applications/Google Chrome.app" />
...
It's also possible to do it in UI, though set it up in ide.genera.xml works more reliable in my case. 它也可以在UI中完成,但在ide.genera.xml中设置它在我的情况下更可靠。
This was the fix for me: 这是我的修复:
WebStorm > Preferences > Tools > Web Browsers: WebStorm>首选项>工具> Web浏览器:
/Applications/Google Chrome.app
(as opposed to /Users/<Username>/Applications
) /Applications/Google Chrome.app
(而不是/Users/<Username>/Applications
) Hmm, looks like Webstorm is searching for an application, and is searching the folder /User/{Username}/Applications before searching /Applications. 嗯,看起来Webstorm正在搜索一个应用程序,并在搜索/应用程序之前搜索文件夹/ User / {Username} / Applications。 I suspect Webstorm is using a system path to search, since a similar issue has come up before .
我怀疑Webstorm正在使用系统路径进行搜索,因为之前出现了类似的问题。
Short of finding (and changing) that path, can you try changing the way parallels shares applications with your Mac? 如果没有找到(并改变)该路径,您是否可以尝试改变并行方式与Mac共享应用程序的方式? In parallels, click on the VM's 'settings' button, then the 'Options' tab, then the 'Applications' page.
与此同时,单击VM的“设置”按钮,然后单击“选项”选项卡,再单击“应用程序”页面。 Try playing around with those settings - I suspect that unchecking "Share Windows applications with Mac" will solve your issue, though it may have unintended consequences (especially if you actually want applications to be available from the mac).
尝试使用这些设置 - 我怀疑取消选中“与Mac共享Windows应用程序”将解决您的问题,尽管它可能会产生意想不到的后果(特别是如果您确实希望从Mac上获得应用程序)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.