Skip to content

Commit 1d29695

Browse files
authored
Merge pull request #874 from SeeSharpSoft/main
Chore: Fix plugin verifier issues, increase minimum requirement to v242
2 parents 4bba5f6 + 9556c28 commit 1d29695

File tree

14 files changed

+35
-83
lines changed

14 files changed

+35
-83
lines changed

.github/workflows/CIBuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656
# and modify them (or add more) to build your code if your project
5757
# uses a compiled language
5858

59-
- name: Set up JDK 17
59+
- name: Set up JDK 21
6060
uses: actions/setup-java@v2
6161
with:
62-
java-version: '17'
62+
java-version: '21'
6363
distribution: 'adopt'
6464
- name: Grant execute permission for gradlew
6565
run: chmod +x gradlew

.github/workflows/CoverallsReport.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v2
17-
- name: Set up JDK 17
17+
- name: Set up JDK 21
1818
uses: actions/setup-java@v2
1919
with:
20-
java-version: '17'
20+
java-version: '21'
2121
distribution: 'adopt'
2222
- name: Grant execute permission for gradlew
2323
run: chmod +x gradlew
2424
- name: Build with Gradle
2525
env:
26-
IDEA_VERSION: 2024.1
26+
IDEA_VERSION: 2024.2.1
2727
run: xvfb-run ./gradlew test
2828
- name: Coveralls
2929
uses: coverallsapp/github-action@v2.3.0

.github/workflows/CronEAP.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v2
17-
- name: Set up JDK 17
17+
- name: Set up JDK 21
1818
uses: actions/setup-java@v2
1919
with:
20-
java-version: '17'
20+
java-version: '21'
2121
distribution: 'adopt'
2222
- name: Grant execute permission for gradlew
2323
run: chmod +x gradlew
2424
- name: Build with Gradle
2525
env:
2626
IDEA_PLATFORM: IC
27-
IDEA_VERSION: 2024.1
27+
IDEA_VERSION: 2024.2.1
2828
IDEA_SOURCES: false
2929
run: xvfb-run ./gradlew verifyPlugin

.github/workflows/PublishStable.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- ideaVersion: 2024.1
19+
- ideaVersion: 2024.2.1
2020

2121
steps:
2222
- uses: actions/checkout@v2
23-
- name: Set up JDK 17
23+
- name: Set up JDK 21
2424
uses: actions/setup-java@v2
2525
with:
26-
java-version: '17'
26+
java-version: '21'
2727
distribution: 'adopt'
2828
- name: Grant execute permission for gradlew
2929
run: chmod +x gradlew

.github/workflows/PullRequest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- ideaVersion: 2024.1.1
19+
- ideaVersion: 2024.2.1
2020
ideaPlatform: IC
2121
- ideaVersion: 2024.2.1
2222
ideaPlatform: PY
2323

2424
steps:
2525
- uses: actions/checkout@v2
26-
- name: Set up JDK 17
26+
- name: Set up JDK 21
2727
uses: actions/setup-java@v2
2828
with:
29-
java-version: '17'
29+
java-version: '21'
3030
distribution: 'adopt'
3131
- name: Grant execute permission for gradlew
3232
run: chmod +x gradlew

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This enables default editor features like syntax validation, highlighting and in
3636

3737
Release 4.* is focusing on text-editor features.
3838
Text-editor is the default editor (again).
39-
It requires IntelliJ platform version 2024.1 or newer.
39+
**IntelliJ platform version 2024.2 or newer required.**
4040

4141
Previous versions (incl README) can still be accessed and installed manually (see section [Installation](https://github.com/SeeSharpSoft/intellij-csv-validator#installation)).
4242

build.gradle.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import org.gradle.internal.impldep.org.testng.reporters.XMLUtils
21
import org.jetbrains.changelog.Changelog
32
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
43
import org.jetbrains.intellij.platform.gradle.extensions.intellijPlatform
@@ -35,8 +34,7 @@ repositories {
3534
}
3635

3736
java {
38-
sourceCompatibility = JavaVersion.VERSION_17
39-
targetCompatibility = JavaVersion.VERSION_17
37+
sourceCompatibility = JavaVersion.VERSION_21
4038
}
4139

4240
sourceSets {
@@ -74,8 +72,9 @@ dependencies {
7472
zipSigner()
7573

7674
jetbrainsRuntime()
75+
javaCompiler("21")
76+
7777
testFramework(TestFrameworkType.Platform)
78-
testFramework(TestFrameworkType.JUnit5)
7978
}
8079

8180
testImplementation("org.mockito:mockito-core:5.14.1")
@@ -129,11 +128,11 @@ tasks {
129128
}
130129

131130
processResources {
132-
duplicatesStrategy = DuplicatesStrategy.WARN
131+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
133132
}
134133

135134
processTestResources {
136-
duplicatesStrategy = DuplicatesStrategy.WARN
135+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
137136
}
138137

139138
test {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ pluginName=CSV Editor
66
pluginId=net.seesharpsoft.intellij.plugins.csv
77
pluginVersion=4.0.0
88

9-
pluginSinceBuild=241
9+
pluginSinceBuild=242
1010

1111
platform = IC
1212
# LATEST-EAP-SNAPSHOT
13-
platformVersion = 2024.1.1
13+
platformVersion = 2024.2.1
1414

1515
platformBundledPlugins=Git4Idea,org.jetbrains.plugins.github
1616

src/main/java/net/seesharpsoft/intellij/plugins/csv/CsvGithubIssueSubmitter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected boolean submit(IdeaLoggingEvent event, String additionalInfo, Project
9292
String token = GHCompatibilityUtil.getOrRequestToken(account, project);
9393
if (token == null) return false;
9494

95-
GithubApiRequestExecutor githubExecutor = GithubApiRequestExecutor.Factory.getInstance().create(token);
95+
GithubApiRequestExecutor githubExecutor = GithubApiRequestExecutor.Factory.getInstance().create(account.getServer(), token);
9696

9797
Task submitTask = new Task.Backgroundable(project, getReportActionText()) {
9898
@Override

src/main/java/net/seesharpsoft/intellij/plugins/csv/editor/table/CsvTableEditor.java

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package net.seesharpsoft.intellij.plugins.csv.editor.table;
22

3-
import com.intellij.codeHighlighting.BackgroundEditorHighlighter;
43
import com.intellij.ide.structureView.StructureViewBuilder;
54
import com.intellij.openapi.application.ApplicationManager;
65
import com.intellij.openapi.editor.Document;
@@ -9,7 +8,6 @@
98
import com.intellij.openapi.fileEditor.*;
109
import com.intellij.openapi.project.Project;
1110
import com.intellij.openapi.util.Key;
12-
import com.intellij.openapi.util.TraceableDisposable;
1311
import com.intellij.openapi.util.UserDataHolder;
1412
import com.intellij.openapi.util.UserDataHolderBase;
1513
import com.intellij.openapi.vfs.VirtualFile;
@@ -60,7 +58,7 @@ public CsvTableEditor(@NotNull Project projectArg, @NotNull VirtualFile fileArg)
6058
}
6159

6260
@NotNull
63-
public abstract CsvTableActions getActions();
61+
public abstract CsvTableActions<?> getActions();
6462

6563
protected abstract boolean isInCellEditMode();
6664

@@ -109,26 +107,25 @@ public <T extends CsvTableEditorState> T getTableEditorState() {
109107
}
110108

111109
@Override
110+
@NotNull
112111
public FileEditorState getState(@NotNull FileEditorStateLevel level) {
113112
return getTableEditorState();
114113
}
115114

116115
@Override
117116
public void setState(@NotNull FileEditorState fileEditorState) {
118-
CsvTableEditorState tableEditorState = fileEditorState instanceof CsvTableEditorState ? (CsvTableEditorState) fileEditorState : new CsvTableEditorState();
119-
this.storedState = tableEditorState;
117+
this.storedState = fileEditorState instanceof CsvTableEditorState ? (CsvTableEditorState) fileEditorState : new CsvTableEditorState();
120118
applyEditorState(getTableEditorState());
121119
}
122120

123121
@Override
124122
public boolean isModified() {
125-
// return this.dataManagement != null && initialState != null && !this.dataManagement.equalsCurrentState(initialState);
126123
return false;
127124
}
128125

129126
@Override
130127
public boolean isValid() {
131-
if (this.isDisposed() || file == null || !file.isValid()) {
128+
if (this.isDisposed() || !file.isValid()) {
132129
return false;
133130
}
134131
CsvFile csvFile = this.getCsvFile();
@@ -161,12 +158,6 @@ public void removePropertyChangeListener(@NotNull PropertyChangeListener propert
161158
this.changeSupport.removePropertyChangeListener(propertyChangeListener);
162159
}
163160

164-
@Nullable
165-
@Override
166-
public BackgroundEditorHighlighter getBackgroundHighlighter() {
167-
return null;
168-
}
169-
170161
@Override
171162
public void dispose() {
172163
if (this.isDisposed()) return;
@@ -193,7 +184,7 @@ public <T> void putUserData(@NotNull Key<T> key, @Nullable T t) {
193184

194185
@Nullable
195186
public StructureViewBuilder getStructureViewBuilder() {
196-
return isValid() ? StructureViewBuilder.PROVIDER.getStructureViewBuilder(file.getFileType(), file, this.project) : null;
187+
return isValid() ? StructureViewBuilder.getProvider().getStructureViewBuilder(file.getFileType(), file, this.project) : null;
197188
}
198189

199190
@Nullable
@@ -218,7 +209,7 @@ public PsiFile getPsiFile() {
218209

219210
@Nullable
220211
public final CsvFile getCsvFile() {
221-
if (project == null || project.isDisposed()) {
212+
if (project.isDisposed()) {
222213
return null;
223214
}
224215
if (this.psiFile == null || !this.psiFile.isValid()) {

0 commit comments

Comments
 (0)