Skip to content

Commit

Permalink
Make plugin buildable with 2018.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ashald committed Mar 31, 2020
1 parent 0bf36d6 commit 710482b
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 22 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ who helped with testing and provided feedback during early stages of development
* [Dmytro Kostiuchenko](https://github.com/edio)
* [Kelnor277](https://github.com/Kelnor277)
* [Andy Elliott](https://github.com/andye2004)
* [pilzm](https://github.com/pilzm)
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning].

## 3.2.1 - 2020-03-30

### Fixed

- Incompatibility with IDEA 2020 ([#38]) - special thanks to [@pilzm](https://github.com/pilzm) for contribution

## 3.2.0 - 2019-05-24

### Added
Expand Down Expand Up @@ -113,6 +119,7 @@ This project adheres to [Semantic Versioning].
[#72]: https://github.com/Ashald/EnvFile/issues/72
[#81]: https://github.com/Ashald/EnvFile/issues/81
[#81]: https://github.com/Ashald/EnvFile/issues/83
[#100]: https://github.com/ashald/EnvFile/issues/100

[Keep a CHANGELOG]: http://keepachangelog.com
[Semantic Versioning]: http://semver.org/
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ allprojects {
project.version = scmVersion.version

ext.jetbrains = [
version : "2018.2",
pycharm : "PythonCore:2018.2.182.3684.2",
rubymine: "org.jetbrains.plugins.ruby:2018.2.20180716",
goland : "org.jetbrains.plugins.go:182.3684.59.834"
version : "2018.3",
pycharm : "PythonCore:2018.3.183.4284.148",
rubymine: "org.jetbrains.plugins.ruby:2018.3.20181121",
goland : "org.jetbrains.plugins.go:183.4284.36.1532"
]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected String getEditorTitle() {
}

@Override
protected void patchCommandLine(@NotNull GoRunConfigurationBase goRunConfigurationBase, @Nullable RunnerSettings runnerSettings, @NotNull GeneralCommandLine generalCommandLine, @NotNull String s) throws ExecutionException {
protected void patchCommandLine(@NotNull GoRunConfigurationBase<?> goRunConfigurationBase, @Nullable RunnerSettings runnerSettings, @NotNull GeneralCommandLine generalCommandLine, @NotNull String s) throws ExecutionException {
Map<String, String> currentEnv = generalCommandLine.getEnvironment();
Map<String, String> newEnv = EnvFileConfigurationEditor.collectEnv(goRunConfigurationBase, new HashMap<>(currentEnv));
currentEnv.clear();
Expand Down Expand Up @@ -53,17 +53,17 @@ protected void writeExternal(@NotNull GoRunConfigurationBase runConfiguration, @

@Nullable
@Override
protected <P extends GoRunConfigurationBase> SettingsEditor<P> createEditor(@NotNull P configuration) {
public <P extends GoRunConfigurationBase<?>> SettingsEditor<P> createEditor(@NotNull P configuration) {
return new EnvFileConfigurationEditor<P>(configuration);
}

@Override
protected boolean isApplicableFor(@NotNull GoRunConfigurationBase goRunConfigurationBase) {
public boolean isApplicableFor(@NotNull GoRunConfigurationBase goRunConfigurationBase) {
return true;
}

@Override
protected boolean isEnabledFor(@NotNull GoRunConfigurationBase goRunConfigurationBase, @Nullable RunnerSettings runnerSettings) {
public boolean isEnabledFor(@NotNull GoRunConfigurationBase goRunConfigurationBase, @Nullable RunnerSettings runnerSettings) {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected String getEditorTitle() {

@Nullable
@Override
protected <P extends RunConfigurationBase> SettingsEditor<P> createEditor(@NotNull P configuration) {
protected <P extends RunConfigurationBase<?>> SettingsEditor<P> createEditor(@NotNull P configuration) {
return new EnvFileConfigurationEditor<P>(configuration);
}

Expand Down Expand Up @@ -89,12 +89,12 @@ public <T extends RunConfigurationBase> void updateJavaParameters(T configuratio
//

@Override
protected boolean isApplicableFor(@NotNull RunConfigurationBase configuration) {
public boolean isApplicableFor(@NotNull RunConfigurationBase configuration) {
return true;
}

@Override
protected boolean isEnabledFor(@NotNull RunConfigurationBase applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
public boolean isEnabledFor(@NotNull RunConfigurationBase applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected String getEditorTitle() {

@Nullable
@Override
protected <P extends AbstractPythonRunConfiguration> SettingsEditor<P> createEditor(@NotNull P configuration) {
protected <P extends AbstractPythonRunConfiguration<?>> SettingsEditor<P> createEditor(@NotNull P configuration) {
return new EnvFileConfigurationEditor<P>(configuration);
}

Expand Down Expand Up @@ -62,12 +62,12 @@ protected void patchCommandLine(@NotNull AbstractPythonRunConfiguration configur
//

@Override
protected boolean isApplicableFor(@NotNull AbstractPythonRunConfiguration configuration) {
public boolean isApplicableFor(@NotNull AbstractPythonRunConfiguration configuration) {
return true;
}

@Override
protected boolean isEnabledFor(@NotNull AbstractPythonRunConfiguration applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
public boolean isEnabledFor(@NotNull AbstractPythonRunConfiguration applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected String getEditorTitle() {

@Nullable
@Override
protected <P extends AbstractRubyRunConfiguration> SettingsEditor<P> createEditor(@NotNull P configuration) {
protected <P extends AbstractRubyRunConfiguration<?>> SettingsEditor<P> createEditor(@NotNull P configuration) {
return new EnvFileConfigurationEditor<P>(configuration);
}

Expand All @@ -52,7 +52,7 @@ protected void validateConfiguration(@NotNull AbstractRubyRunConfiguration confi
}

@Override
protected void patchCommandLine(@NotNull AbstractRubyRunConfiguration configuration, @Nullable RunnerSettings runnerSettings, @NotNull GeneralCommandLine cmdLine, @NotNull String runnerId) throws ExecutionException {
protected void patchCommandLine(@NotNull AbstractRubyRunConfiguration<?> configuration, @Nullable RunnerSettings runnerSettings, @NotNull GeneralCommandLine cmdLine, @NotNull String runnerId) throws ExecutionException {
Map<String, String> currentEnv = cmdLine.getEnvironment();
Map<String, String> newEnv = EnvFileConfigurationEditor.collectEnv(configuration, new HashMap<>(currentEnv));
currentEnv.clear();
Expand All @@ -62,12 +62,12 @@ protected void patchCommandLine(@NotNull AbstractRubyRunConfiguration configurat
//

@Override
protected boolean isApplicableFor(@NotNull AbstractRubyRunConfiguration configuration) {
public boolean isApplicableFor(@NotNull AbstractRubyRunConfiguration configuration) {
return true;
}

@Override
protected boolean isEnabledFor(@NotNull AbstractRubyRunConfiguration applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
public boolean isEnabledFor(@NotNull AbstractRubyRunConfiguration applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
return true;
}
}
8 changes: 4 additions & 4 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@
]]></description>

<change-notes><![CDATA[
<a href="https://github.com/Ashald/EnvFile/tree/v3.2.0"><b>v3.2.0</b></a> (2019-05-24)
<a href="https://github.com/Ashald/EnvFile/tree/v3.3.0"><b>v3.3.0</b></a> (2019-05-24)
<br/>
<br/>
<b>Added</b>:
<b>Fixed</b>:
<ul>
<li>Experimental integration for external system run configurations (such as Gradle)</li>
<li>Incompatibility with IDEA 2020</li>
</ul>
<br/>
<br/>
]]>
</change-notes>

<idea-version since-build="181"/>
<idea-version since-build="183"/>

<depends>com.intellij.modules.lang</depends>
<depends optional="true" config-file="">com.intellij.java</depends>
Expand Down

0 comments on commit 710482b

Please sign in to comment.