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

Fixed https://github.com/Ashald/EnvFile/issues/27 #28

Merged
merged 2 commits into from
Mar 14, 2017

Conversation

yoanthiebault
Copy link
Contributor

@yoanthiebault yoanthiebault commented Mar 10, 2017

This commit aims to fix #27. The idea is to use updateJavaParameters instead of patchCommandLine in IdeaRunConfigurationExtension

Copy link
Owner

@ashald ashald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! I looked over the code and it looks good to me generally, although I would prefer to change one thing in terms of the interface.


public static void patchJavaParameters(@NotNull RunConfigurationBase configuration, JavaParameters params, RunnerSettings runnerSettings) throws ExecutionException {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The initial design aim for this class was to keep it as generic as possible and use it in concrete implementations. From this perspective rather then keeping methods like patchCommandLine and patchJavaParameters I'd rather go with single method patchEnvironmentVariables (as you essentially did) and move 1-liners from patchCommandLine/patchJavaParameters to concrete implementations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done !
Just for information, I couldn't test it with RubyMine and PyCharm but it should work :)

Copy link
Owner

@ashald ashald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ashald ashald merged commit 4e11db1 into ashald:develop Mar 14, 2017
ashald added a commit that referenced this pull request Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Environment variables aren't loaded in IDEA
2 participants