Do "phpstorm64.vmoptions" in ~/config/ (1) override/append, or (2) completely replace the defaults in <IDE_HOME>/bin/?
I've got
PhpStorm 2017.3.3 EAP
Build #PS-173.4301.7, built on December 27, 2017
JRE: 1.8.0_152-release-1024-b11 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.14.12-2.g3cf399e-default
installed.
at
https://www.jetbrains.com/help/phpstorm/tuning-phpstorm.html#config-directory
it states
Configuring JVM options
...
The default options used to run PhpStorm are specified in the following file:
...
<IDE_HOME>/bin/phpstorm.vmoptions
...
and at
https://www.jetbrains.com/help/phpstorm/tuning-phpstorm.html#configure-jvm-options
further
Configuration directory
...
It is also the default location for user-defined VM options and platform properties files.
...
If I select
Help:Edit Custom VM Options...
*only* the params file
~/.PhpStorm2017.3/config/phpstorm64.vmoptions
is opened for editing.
*NO* default parameter values are shown from
<IDE_HOME>/bin/phpstorm64.vmoptions
OTOH, if
~/.PhpStorm2017.3/config/phpstorm64.vmoptions
does *NOT* exist, select of
Help:Edit Custom VM Options...
*DIRECTLY* opens
<IDE_HOME>/bin/phpstorm64.vmoptions
for editing -- *NOT* a copy.
What is the design/intention here?
Does
~/.PhpStorm2017.3/config/phpstorm64.vmoptions
- (1) override/append default parameters in
or
- (2) replace the entire default file
<IDE_HOME>/bin/phpstorm64.vmoptions
??
请先登录再写评论。
config/phpstorm64.vmoptions, when it's there, is used instead of bin/phpstorm64.vmoptions.
Help | Edit Custom VM Options... never opens the bin/phpstorm64.vmoptions. If config/phpstorm64.vmoptions doesn't yet exist, you are prompted to create this file when choosing Edit Custom VM Options... action:
Note that you can always check the -Djb.vmOptionsFile value in your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files) to see what vmoptions file is being used
@Elena Pogorelova
> Help | Edit Custom VM Options... never opens the bin/phpstorm64.vmoptions. If config/phpstorm64.vmoptions doesn't yet exist, you are prompted to create this file when choosing Edit Custom VM Options... action:
If I have no "config/*vmoptions"
When I
Help | Edit Custom VM Options...
it does NOT prompt. It directly opens
bin/phpstorm64.vmoptions
SCREENSHOT -> https://i.imgur.com/iRHGWpJ.png
and idea.log shows
... -Djb.vmOptionsFile=/usr/local/phpstorm/bin/phpstorm64.vmoptions ...
weird... Do you have $PHPSTORM_VM_OPTIONS env variable set? What launcher do you use to start PHPStorm - phpstorm.sh, desktop entry, cmd launcher?
All launchers look for the *.vmoptions file at following locations, in order of preference:
- At the path specified in $PHPSTORM_VM_OPTIONS environment variable
- Alongside installation directory
- In a config directory (~/.PhpStorm2017.3/config)
- In an installation directory (/usr/local/phpstorm/bin).
Invoking a "Help | Edit Custom VM Options" action normally opens an existing *.vmoptions file in all cases except #4. In the latter case, PHPStorm should suggest creating a copy (as modifying file in bin/ is not always possible and can break package signature and further incremental updates)
> Do you have $PHPSTORM_VM_OPTIONS env variable set?
No
> What launcher do you use to start PHPStorm - phpstorm.sh, desktop entry, cmd launcher?
bin/phpstorm.sh
can't recreate. Please can you provide your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)? Don't paste it here, place it on some file server and publish a link
@Elena Pogorelova
https://paste.fedoraproject.org/paste/nLnz1E8XmLq9McxRlYdt7g/raw
Hmm... in log,
That's right. After I put it back so I can actually get work done.
If you want specific conditions logged, then you'll have to say so.
Shut down PHPStorm, delete config/phpstorm64.vmoptions, restart, open Help | Edit Custom VM Options... - what is the result? If the file from bin/ is opened, provide the log
@Elena Pogorelova
done
> what is the result?
in GUI, file:
is opened.
and in 'idea.log'
> If the file from bin/ is opened, provide the log
https://paste.fedoraproject.org/paste/kRo7NSuRPI8jp4MwgjFZ1A/raw
Odd. Try it again now ...
I see, thanks. it opens file from bin/ because <IDE_HOME> is a symlink