Running an app in WebStorm on MacOS with Parallels installed - macos

When I try to run a project from WebStorm 9, I get the following error:
The application /User/{Username}/Applications (Parallels)/{{guid}}/...
I then click "Fix" and try to specify a custom path to 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.
How can I override this behavior in WebStorm?

It's a Parallels issue - see http://youtrack.jetbrains.com/issue/WI-36#comment=27-70940
Please try the following:
global parallels menu: Virtual Machine -> Configure -> Options tab -> Applications -> uncheck Share Windows applications with Mac

I also had the same issue and changing Parallels sharing settings was not a good option for me. Fortunately, it can be fixed in WebStorm configuration. 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:
~/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.

This was the fix for me:
WebStorm > Preferences > Tools > Web Browsers:
Change "Path" of Chrome to /Applications/Google Chrome.app (as opposed to /Users/<Username>/Applications)
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. I suspect Webstorm is using a system path to search, since a similar issue has come up before.
Short of finding (and changing) that path, can you try changing the way parallels shares applications with your Mac? In parallels, click on the VM's 'settings' button, then the 'Options' tab, then the 'Applications' page. 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).

Related

Aptana crashes on Mac OS Sierra

Aptana studio used to work fine on OS X El Capitan but after updating to Sierra it doesn't work anymore... Can anybody help me fix this? I keep getting a crash log every time screenshot uploaded I open the app. Something I've noticed is that the aptana icon in the applications is a folder and not just a normal app icon. Earlier as I remember it was just a normal app icon on El Capitan. I use aptana on a daily basis as a university student so its vital for me for this to work.
Edit: I have tried a lot of methods including reinstalling java but still it doesn't work. Only way to make it work is to open up the application package and open the terminal executable aptana3. It runs perfectly then but if I launch from the usual app drawer icon it crashes.
This security measure can correct it from System Preferences -> Security and Privacy -> General tab.
By default, Sierra, the option “Allow applications downloaded from does not appear Anywhere “. But with a simple instruction from the command line so we can correct.
Go to the folder Applications -> Utilities -> Terminal
In Terminal, enter or copy…
sudo spctl --master-disable
Type your password (it will not appear, however it is present) and press Enter
Click the lock and enter your Administrator password to make changes.
After changing this option, and can install any software, so if compatible with OS 10.12.
Open finder and navigate to "Applications -> Aptana"
Right click on the Aptana executable and click show contents
Navigate to "Content -> MacOS"
Double click click on AptanaStudio3
You will get a popup saying you need legacy Java SE 6
Click "More Info..." button and download and install it (very slow download, just wait it out)
Once installed double click the AptanaStudio icon in step 4 and Aptana Studio 3 will open
You will need to use that as the shortcut as the Aptana icon from installation will still not work.
Good luck.
I have same problem and solved with some workaround.
First download and install java for mac: https://support.apple.com/downloads/DL1572/en_US/javaforosx.dmg
If this not work or you reinstalled aptana after upgrading to sierra I advice to find a old copy of aptana directory and put it to application directory.
I had the same problems on MacOS Sierra; crashing on load, or the JVM error if I launch from within the package contents.
I didn't find any solution to this directly, but instead I installed the latest version of Eclipse first, then installed Aptana from Eclipse. That seems to be working.
In order to use Aptan on El Capitan, first you must install the legacy java 6 version for mac:
https://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
The only thing is that you won't be able to access it like a normal application on your mac.
To open Aptana you must run:
Applications -> Aptana(right click to "Show package contents") -> Contents -> MacOS -> AptanaStudio3

Chrome not working after installation of JDK

I installed jdk-8u101-windows-x64 on my Windows 10 x64 in order to proceed with installing a Netbeans 8.1 all in one package, and after JDK was installed the system immediately restarted.
When the system rebooted, Chrome stopped working. Loading any page or even settings page now displays "Aw, Snap! Something went wrong while displaying this web page. Learn more - Reload".
Clicking Learn more or reloading does nothing. I tried disabling Defender and enabling again, didn't work.
Reinstalling, or restarting the PC multiple times didn't work.
Has anyone come across this?
Thanks.
I also have a Windows 10 x64 OS and just tried installing the JDK. It was JDK 8 Update 101 and my Google Chrome version is 53.0.2785.143. It did not force me to restart but I went ahead and restarted and when I booted back up I did not see the same issues that you were referring to.
This leads me to believe that it's something specific with your machine and nothing with the JDK or Chrome itself. It's possible that you have some chrome extension that is causing problems.
To fix the issue you're having first I would download and install the Chrome Cleanup Tool. If that doesn't fix the issue, you can try launching Chrome in 'safe-mode' like so:
Right Click, create shortcut, rename, right click go to properties and add - -incognito- with out the - in the target field on shortcut tab. Then apply and ok
Once you are able to launch Chrome in incognito mode, then you should be able to delete the extensions via the settings.
If that still doesn't work, then you will likely have to delete the user data for Chrome in your AppData and registry manually. To delete your AppData go to:
C:\Users\yourname\AppData\Local\Google\Chrome\User Data and delete the Default folder then relaunch Chrome.
To remove the extensions from the registry, Open regedit and go to HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Google\Chrome\Extensions and delete the keys there.
Sounds like broken Java libraries...
Try uninstalling Netbeans, JDK, Chrome, in that order.
Then installing Chrome again, try it out, then JDK, try Chrome, then Netbeans, try Chrome.
Also check that you have 32bit JDK and that your preferred Java is set to 32bit since Chrome is 32bit.

IntelliJ: macOS CTRL+ARROW key is not working

CTRL+ARROW is not being picked up inside IntelliJ when I switched to a new mac. When I go to keymap and try to enter CTRL+ARROW as key binding nothing new shows up. It used to work on my old mac.
IntelliJ: 15.0.5
OSX : 10.11.4
Sounds like it's already used by the system. Probably Mission Control? You may want to see if it is used in System Preferences > Keyboard > Shortcuts and disable it there if necessary.

Network Link Conditioner Freezes and Wont Start

I have downloaded Hardware IO Tools for Xcode 7.1 from the Apple Developer site and installed it by opening the DMG and then double clicking Network Link Conditioner.prefPane.
I then go to my System Preferences and can see the Network Link Conditioner is there. I can go into it but as soon as I click the switch to turn it on the whole System Preferences freezes up. Also, I noticed that my keyboard seems to stop working...somewhat. I can still do cmd + spacebar and then type in there to search my system but I can't type into the URL field on safari for example.
My Mac: OS X Yosemite v10.10.5
My Xcode: v7.2.1 (7C1002)
By the way, I downloaded the 7.1 version of the Hardware IO Tools as they only have a 7.1 or 7.3 version, there doesn't seem to be a version for 7.2. Maybe that is the issue? I can't currently upgrade to 7.3 as that requires me to upgrade OS X to 10.11 but our company policy does not currently allow for that.
Anybody know how I could fix this?
Could this be caused by the fact that I am not an admin on my machine?
My suspicion was correct, it wouldn't start as it needs to be run as an admin.
If you're not an admin, you need to run a command such as
sudo /Applications/System\ Preferences.app/Contents/MacOS/System\ Preferences
or in my case I had to get an admin in the office to do:
su - <admin_username> /Applications/System\ Preferences.app/Contents/MacOS/System\ Preferences
These commands will open the System Preferences as an admin user.
I have noticed that when he Network Link Condition is open in the System Preferences, my keyboard stops working in certain areas still. For example, I couldn't type in here whilst the panel was open (even with it turned off) but as soon as I closed the panel I could type again. I will possibly open another question at a later dare about this though.

Cannot enable Mac OSX Lion Location Services with Safari

I just hit a frustrating problem while debugging that I am hoping that someone else has encountered...and solved. I am troubleshooting an app that uses the javascript Geolocation app on OS X Lion. I have been using Safari and everything was working fine.
After a reboot, Safari reported that access to Geolocation services was denied. In the Safari preferences, under privacy, the option to "Limit Website Access to Location Services" the setting is indeed set to "Deny without prompting".
The problem is that I cannot seem to enable this setting. According the Apple doc, you need to first enable location services for the application in the System Settings. This is under Security and Privacy -> Privacy. I have seen cases where this is empty and Safari simply doesn't show up. Finally, after another reboot, Safari.app actually showed up here. Unfortunately, after enabling Safari here, I still could not enable location services in the Safari settings. It is almost like the settings are out of sync with each other.
Any thoughts would be greatly appreciated!
I just ran into the same issue but found a solution on a support forum.
Solution 1:
Cycling "Set timezone automatically using current location" in the Date & Time > Time Zone preference pane fixed my issue. It's possible that a legacy preference left over from my Snow Leopard install was causing a problem there.
Solution 2:
For me, I had to quit the iPhone simulator to toggle the option on.
The second solution did the trick, but maybe only because I tried the first one, uh, first.

Resources