Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea64.exe.vmoptions created in C:\Users\%USERNAME%\.IntelliJIdea2019.1\config\, not portable #3

Closed
yetangye opened this issue Jul 1, 2019 · 7 comments
Labels

Comments

@yetangye
Copy link

yetangye commented Jul 1, 2019

Behaviour

Steps to reproduce this issue

  1. Click IDEA Help-> Edit Custom VM Options... menu

Expected behaviour

Tell me what should happen

Hope idea64.exe.vmoptions will be created in somewhere of portable IDEA folder.

Actual behaviour

Tell me what happens instead

idea64.exe.vmoptions created in C:\Users%USERNAME%.IntelliJIdea2019.1\config\

Configuration

App release / arch (ex. 1.0.0-2 win64) :

2019.1.3-7 Win64 (intellij-idea-ultimate-portable-2019.1.3-7-setup.exe)

Operating system (ex. Windows 10 Pro 64 bits) :

Windows 10 Enterprise, 64 bit

Winver screenshot :

Open a command prompt and type winver then take / save the screenshot of the window and drag the image file in this issue. For example: http://bit.ly/2vA5sxR

Screenshots

If applicable, add screenshots to help explain your problem.

Logs

Join the log file log\[appname]-portable.log to this issue.

@crazy-max
Copy link
Member

Hi @yetangye,

I noticed this bug not long ago (since 2019.1 I think) and I had started working on it.
Now that someone has noticed this bug, I'll get back to it 😇

@yetangye
Copy link
Author

yetangye commented Jul 1, 2019

Wow, What a nice man 😄

Hi @yetangye,

I noticed this bug not long ago (since 2019.1 I think) and I had started working on it.
Now that someone has noticed this bug, I'll get back to it 😇

@crazy-max
Copy link
Member

@yetangye Ok after digging it seems those paths are hardcoded to the user home unfortunately 🙁. This applies to Help > Edit Custom Properties... and Help > Edit Custom VM Options....

I believe JetBrains has implemented this behavior to allow each user of the same machine to customize these settings.
It is true that for a portable version it is useless and that is why I will allow to overload the VM options via a common configuration file in data (data/idea.vmoptions).

Maybe @trespasserw can highlight us about this 🙂

@yetangye
Copy link
Author

yetangye commented Jul 2, 2019

@crazy-max Thanks 😄
data/idea.vmoptions will be a ideal location as you think.

I will try to advice to JetBrains.

@yetangye Ok after digging it seems those paths are hardcoded to the user home unfortunately 🙁. This applies to Help > Edit Custom Properties... and Help > Edit Custom VM Options....

I believe JetBrains has implemented this behavior to allow each user of the same machine to customize these settings.
It is true that for a portable version it is useless and that is why I will allow to overload the VM options via a common configuration file in data (data/idea.vmoptions).

Maybe @trespasserw can highlight us about this 🙂

crazy-max added a commit to portapps/intellij-idea-community-portable that referenced this issue Jul 4, 2019
@crazy-max
Copy link
Member

@trespasserw
Copy link

trespasserw commented Jul 4, 2019

@crazy-max the *.vmoptions files are loaded by OS-specific launchers (*.exe, *.sh etc.) from a small number of predefined locations. Modifying files inside the installation isn't particularly good idea; I'd better use the Toolbox scheme.

@yetangye
Copy link
Author

yetangye commented Jul 5, 2019

@crazy-max @trespasserw

I just tested with version 2019.1.3-8,

  • Copy the options I'm using from C:\Users\whoami\.IntelliJIdea2019.1\config\idea64.exe.vmoptions to C:\some\where\intellij-idea-ultimate-portable\data\idea.vmoptions

  • Delete folder C:\Users\whoami.IntelliJIdea2019.1\

  • Launch IDEA

It works. Thanks you very much!

@yetangye Done. See https://portapps.io/app/intellij-idea-ultimate-portable/#infos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants