PYCHARM_PROPERTIES not working
I'm trying to create a portable installation of PyCharm by moving idea.properties to the root of the installation folder of PyCharm.
1. I set PYCHARM_PROPERTIES (according to the comment in idea.properties[1]). I tried different paths (relative, absolute ones, forward and backward slashes) but I always get the following exception:
"java.lang.RuntimeException: Could not find IDEA home path. Please make sure bin/idea.properties is present in the installation directory.
"
Thorsten
[1] "Set up PYCHARM_PROPERTIES environment variable to specify custom location of this properties file [...]"
1. I set PYCHARM_PROPERTIES (according to the comment in idea.properties[1]). I tried different paths (relative, absolute ones, forward and backward slashes) but I always get the following exception:
"java.lang.RuntimeException: Could not find IDEA home path. Please make sure bin/idea.properties is present in the installation directory.
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:81)…
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:81)
at com.intellij.openapi.application.PathManager.loadProperties(PathManager.java:370)
at com.intellij.ide.ClassloaderUtil.initClassloader(ClassloaderUtil.java:88)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:38)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:34)
at com.intellij.idea.Main.main(Main.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Thorsten
[1] "Set up PYCHARM_PROPERTIES environment variable to specify custom location of this properties file [...]"
Please sign in to leave a comment.
Second, if you define a non-standard value for PYCHARM_PROPERTIES, you also need to set the idea.home.path system property pointing to the root of PyCharm installation.
at 2. a) PYCHARM_PROPERTIES points to idea.properties. The PyCharm executable cannot find idea.properties, so where should I set idea.home?
at 2. b) idea.home hasn't changed so why should I change or set it?
The idea.home.path needs to be defined because normally PyCharm uses the location of the idea.properties file to locate its own installation. If the location is changed, the installation home needs to be specified explicitly.
I suggest you revise lines 1 to 6 in idea.properties because they suggest that all you need to change the location of that file is to set PYCHARM_PROPERTIES and this is highly misleading.