简体   繁体   English

在安装了Parallels的MacOS上运行WebStorm中的应用程序

[英]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浏览器:

  1. Change "Path" of Chrome to /Applications/Google Chrome.app (as opposed to /Users/<Username>/Applications ) 将Chrome的“路径”更改为/Applications/Google Chrome.app (而不是/Users/<Username>/Applications
  2. Change "Default Browser" to "First listed" (and make sure the one you just changed is at the top of the list) 将“默认浏览器”更改为“首次列出”(并确保您刚刚更改的那个位于列表的顶部)

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.

相关问题 在 Parallels Desktop 的 Ubuntu 上运行的 IntelliJ 中使用 MacOS 快捷方式 - Using MacOS shortcuts in IntelliJ running on Ubuntu in Parallels Desktop 从主机调试Parallels vm中的macOS应用 - Debug macOS app inside Parallels vm from host 如何通过 macOS 上的 Parallels Desktop 在“Mac 上的 Ubuntu”上安装的 ROS 上显示 velodyne 点? - how to display velodyne points on ROS installed on “Ubuntu on Mac” via Parallels Desktop on macOS? atom:已安装氢气,但代码未运行(在macOS上) - atom: hydrogen installed, but the code is not running (on macOS) 使用终端检查 MacOS 上是否安装了应用程序 - Check if an app is installed on MacOS using the Terminal Linux作为MacOS X上的访客:VirtualBox还是Parallels? - Linux as a guest on MacOS X: VirtualBox or Parallels? 连接到并行VM中运行的SQLServer - Connect to SQLServer running in a parallels VM 用于将“二进制映像”加载到正在运行的macOS应用中的命令 - Command to “binary images” loaded into a running macOS app 运行和开发相同的Swift macOS应用 - Running and developing the same Swift macOS app macOS 上的 Swift:在后台应用程序终止时运行代码 - Swift on macOS: Running code on termination of background app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM