Skip to content

Commit 710482b

Browse files
committed
Make plugin buildable with 2018.3
1 parent 0bf36d6 commit 710482b

File tree

8 files changed

+30
-22
lines changed

8 files changed

+30
-22
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ who helped with testing and provided feedback during early stages of development
1111
* [Dmytro Kostiuchenko](https://github.com/edio)
1212
* [Kelnor277](https://github.com/Kelnor277)
1313
* [Andy Elliott](https://github.com/andye2004)
14+
* [pilzm](https://github.com/pilzm)

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning].
44

5+
## 3.2.1 - 2020-03-30
6+
7+
### Fixed
8+
9+
- Incompatibility with IDEA 2020 ([#38]) - special thanks to [@pilzm](https://github.com/pilzm) for contribution
10+
511
## 3.2.0 - 2019-05-24
612

713
### Added
@@ -113,6 +119,7 @@ This project adheres to [Semantic Versioning].
113119
[#72]: https://github.com/Ashald/EnvFile/issues/72
114120
[#81]: https://github.com/Ashald/EnvFile/issues/81
115121
[#81]: https://github.com/Ashald/EnvFile/issues/83
122+
[#100]: https://github.com/ashald/EnvFile/issues/100
116123

117124
[Keep a CHANGELOG]: http://keepachangelog.com
118125
[Semantic Versioning]: http://semver.org/

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ allprojects {
2121
project.version = scmVersion.version
2222

2323
ext.jetbrains = [
24-
version : "2018.2",
25-
pycharm : "PythonCore:2018.2.182.3684.2",
26-
rubymine: "org.jetbrains.plugins.ruby:2018.2.20180716",
27-
goland : "org.jetbrains.plugins.go:182.3684.59.834"
24+
version : "2018.3",
25+
pycharm : "PythonCore:2018.3.183.4284.148",
26+
rubymine: "org.jetbrains.plugins.ruby:2018.3.20181121",
27+
goland : "org.jetbrains.plugins.go:183.4284.36.1532"
2828
]
2929
}
3030

modules/products/goland/src/main/java/net/ashald/envfile/products/goland/GolandRunConfigurationExtension.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected String getEditorTitle() {
2323
}
2424

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

5454
@Nullable
5555
@Override
56-
protected <P extends GoRunConfigurationBase> SettingsEditor<P> createEditor(@NotNull P configuration) {
56+
public <P extends GoRunConfigurationBase<?>> SettingsEditor<P> createEditor(@NotNull P configuration) {
5757
return new EnvFileConfigurationEditor<P>(configuration);
5858
}
5959

6060
@Override
61-
protected boolean isApplicableFor(@NotNull GoRunConfigurationBase goRunConfigurationBase) {
61+
public boolean isApplicableFor(@NotNull GoRunConfigurationBase goRunConfigurationBase) {
6262
return true;
6363
}
6464

6565
@Override
66-
protected boolean isEnabledFor(@NotNull GoRunConfigurationBase goRunConfigurationBase, @Nullable RunnerSettings runnerSettings) {
66+
public boolean isEnabledFor(@NotNull GoRunConfigurationBase goRunConfigurationBase, @Nullable RunnerSettings runnerSettings) {
6767
return true;
6868
}
6969
}

modules/products/idea/src/main/java/net/ashald/envfile/products/idea/IdeaRunConfigurationExtension.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected String getEditorTitle() {
2929

3030
@Nullable
3131
@Override
32-
protected <P extends RunConfigurationBase> SettingsEditor<P> createEditor(@NotNull P configuration) {
32+
protected <P extends RunConfigurationBase<?>> SettingsEditor<P> createEditor(@NotNull P configuration) {
3333
return new EnvFileConfigurationEditor<P>(configuration);
3434
}
3535

@@ -89,12 +89,12 @@ public <T extends RunConfigurationBase> void updateJavaParameters(T configuratio
8989
//
9090

9191
@Override
92-
protected boolean isApplicableFor(@NotNull RunConfigurationBase configuration) {
92+
public boolean isApplicableFor(@NotNull RunConfigurationBase configuration) {
9393
return true;
9494
}
9595

9696
@Override
97-
protected boolean isEnabledFor(@NotNull RunConfigurationBase applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
97+
public boolean isEnabledFor(@NotNull RunConfigurationBase applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
9898
return true;
9999
}
100100

modules/products/pycharm/src/main/java/net/ashald/envfile/products/pycharm/PyCharmRunConfigurationExtension.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected String getEditorTitle() {
2626

2727
@Nullable
2828
@Override
29-
protected <P extends AbstractPythonRunConfiguration> SettingsEditor<P> createEditor(@NotNull P configuration) {
29+
protected <P extends AbstractPythonRunConfiguration<?>> SettingsEditor<P> createEditor(@NotNull P configuration) {
3030
return new EnvFileConfigurationEditor<P>(configuration);
3131
}
3232

@@ -62,12 +62,12 @@ protected void patchCommandLine(@NotNull AbstractPythonRunConfiguration configur
6262
//
6363

6464
@Override
65-
protected boolean isApplicableFor(@NotNull AbstractPythonRunConfiguration configuration) {
65+
public boolean isApplicableFor(@NotNull AbstractPythonRunConfiguration configuration) {
6666
return true;
6767
}
6868

6969
@Override
70-
protected boolean isEnabledFor(@NotNull AbstractPythonRunConfiguration applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
70+
public boolean isEnabledFor(@NotNull AbstractPythonRunConfiguration applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
7171
return true;
7272
}
7373
}

modules/products/rubymine/src/main/java/net/ashald/envfile/products/rubymine/RubyMineRunConfigurationExtension.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected String getEditorTitle() {
2626

2727
@Nullable
2828
@Override
29-
protected <P extends AbstractRubyRunConfiguration> SettingsEditor<P> createEditor(@NotNull P configuration) {
29+
protected <P extends AbstractRubyRunConfiguration<?>> SettingsEditor<P> createEditor(@NotNull P configuration) {
3030
return new EnvFileConfigurationEditor<P>(configuration);
3131
}
3232

@@ -52,7 +52,7 @@ protected void validateConfiguration(@NotNull AbstractRubyRunConfiguration confi
5252
}
5353

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

6464
@Override
65-
protected boolean isApplicableFor(@NotNull AbstractRubyRunConfiguration configuration) {
65+
public boolean isApplicableFor(@NotNull AbstractRubyRunConfiguration configuration) {
6666
return true;
6767
}
6868

6969
@Override
70-
protected boolean isEnabledFor(@NotNull AbstractRubyRunConfiguration applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
70+
public boolean isEnabledFor(@NotNull AbstractRubyRunConfiguration applicableConfiguration, @Nullable RunnerSettings runnerSettings) {
7171
return true;
7272
}
7373
}

src/main/resources/META-INF/plugin.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@
3838
]]></description>
3939

4040
<change-notes><![CDATA[
41-
<a href="https://github.com/Ashald/EnvFile/tree/v3.2.0"><b>v3.2.0</b></a> (2019-05-24)
41+
<a href="https://github.com/Ashald/EnvFile/tree/v3.3.0"><b>v3.3.0</b></a> (2019-05-24)
4242
<br/>
4343
<br/>
4444
45-
<b>Added</b>:
45+
<b>Fixed</b>:
4646
<ul>
47-
<li>Experimental integration for external system run configurations (such as Gradle)</li>
47+
<li>Incompatibility with IDEA 2020</li>
4848
</ul>
4949
<br/>
5050
<br/>
5151
5252
]]>
5353
</change-notes>
5454

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

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

0 commit comments

Comments
 (0)