Skip to content

Commit 2e6e0f4

Browse files
authored
Merge pull request #860 from SeeSharpSoft/release_340
Prepare release 3.4.0
2 parents 781763d + 2fa87d7 commit 2e6e0f4

File tree

15 files changed

+73
-51
lines changed

15 files changed

+73
-51
lines changed

.github/workflows/PublishStable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- ideaVersion: 2023.1.1
2222
- ideaVersion: 2023.2.1
2323
- ideaVersion: 2023.3.1
24+
- ideaVersion: 2024.1.1
2425
- ideaVersion: LATEST-EAP-SNAPSHOT
2526

2627
steps:

.github/workflows/PullRequest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- ideaVersion: 2022.2.1
20-
ideaType: PS
2119
- ideaVersion: 2022.2.3
2220
ideaType: PY
2321
- ideaVersion: 2023.3.1
22+
ideaType: PS
23+
- ideaVersion: 2024.2.1
2424
ideaType: IC
2525

2626
steps:

CHANGELOG

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
3.4.0
2+
Aug 10, 2024
3+
4+
CHORE: Update gradle build
5+
FIX: ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon
6+
FIX: Cannot create class CsvEditorSettingsProvider
7+
18
3.3.0
29
Feb 24, 2024
310

build.gradle

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@ plugins {
88
id 'org.jetbrains.grammarkit' version '2022.3.2.2'
99
}
1010

11-
jacoco {
12-
toolVersion = "0.8.8"
13-
}
14-
15-
jacocoTestReport {
16-
reports {
17-
xml.enabled true
18-
}
19-
}
20-
2111
group 'net.seesharpsoft.intellij.plugins'
2212

2313
apply plugin: 'java'
@@ -67,19 +57,19 @@ idea {
6757
}
6858

6959
var final EAP_VERSION = 'LATEST-EAP-SNAPSHOT'
70-
var final EAP_BUILD = '241'
60+
var final EAP_BUILD = '242'
7161

72-
var final DEFAULT_VERSION = '2022.2.1' //'LATEST-EAP-SNAPSHOT' //
62+
var final LATEST_SUPPORTED_VERSION = '2024.1.5' //EAP_VERSION
7363

7464
// IDE version - https://www.jetbrains.com/intellij-repository/releases
75-
var idea_version = System.getenv().getOrDefault('IDEA_VERSION', DEFAULT_VERSION)
65+
var idea_version = System.getenv().getOrDefault('IDEA_VERSION', LATEST_SUPPORTED_VERSION)
7666
var build_version = idea_version == EAP_VERSION ? EAP_BUILD : idea_version.substring(2, 4) + idea_version.charAt(5) // extract e.g. '221' from '2022.1.1'
7767

78-
version '3.3.0-' + build_version
68+
version '3.4.0-' + build_version
7969

8070
apply plugin: 'org.jetbrains.intellij'
8171
intellij {
82-
version = idea_version
72+
version = idea_version > LATEST_SUPPORTED_VERSION || idea_version == EAP_VERSION ? LATEST_SUPPORTED_VERSION : idea_version
8373
type = System.getenv().getOrDefault('IDEA_TYPE', 'IC')
8474
pluginName = 'CSVEditor'
8575
updateSinceUntilBuild = true
@@ -97,11 +87,8 @@ patchPluginXml {
9787

9888
changeNotes = """<pre style="font-family: sans-serif">
9989
CHORE: Update gradle build
100-
FIX: PluginException: xxx ms to call on EDT CsvChangeSeparatorActionGroup#update@EditorPopup #401
101-
FIX: AlreadyDisposedException: Already disposed #639
102-
FIX: Exceptions occurred on invoking the intention 'Unquote' on a copy of the file #670 #816
103-
FIX: StringIndexOutOfBoundsException: begin 0, end -1, length 5993 #801
104-
FIX: Unhandled exception in [CoroutineName(PsiAwareFileEditorManagerImpl)] #666
90+
FIX: ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon
91+
FIX: Cannot create class CsvEditorSettingsProvider
10592
</pre>"""
10693
}
10794
publishPlugin {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ protected GithubApiRequest createNewIssue(String title, String content) throws I
154154

155155
protected String searchExistingIssues(GithubApiRequestExecutor githubExecutor, String title, ProgressIndicator progressIndicator) throws IOException {
156156
String needle = title.replaceAll("\\s*(\\[.*?]|\\(.*?\\)|\\{.*?})\\s*", "");
157-
if (needle.length() > 255) {
158-
int endIndex = needle.substring(0, 255).lastIndexOf(" ");
157+
if (needle.length() > 250) {
158+
int endIndex = needle.substring(0, 250).lastIndexOf(" ");
159159
if (endIndex == -1) {
160-
endIndex = 255;
160+
endIndex = 250;
161161
}
162162
needle = needle.substring(0, endIndex);
163163
}

src/main/java/net/seesharpsoft/intellij/plugins/csv/actions/ActionUpdateThreadBGT.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/java/net/seesharpsoft/intellij/plugins/csv/actions/CsvChangeEscapeCharacterAction.java

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

3-
import com.intellij.openapi.actionSystem.AnActionEvent;
4-
import com.intellij.openapi.actionSystem.CommonDataKeys;
5-
import com.intellij.openapi.actionSystem.PlatformDataKeys;
6-
import com.intellij.openapi.actionSystem.ToggleAction;
3+
import com.intellij.openapi.actionSystem.*;
74
import com.intellij.openapi.fileEditor.FileEditor;
85
import com.intellij.psi.PsiFile;
96
import com.intellij.util.FileContentUtilCore;
@@ -12,7 +9,7 @@
129
import net.seesharpsoft.intellij.plugins.csv.components.CsvFileAttributes;
1310
import org.jetbrains.annotations.NotNull;
1411

15-
public class CsvChangeEscapeCharacterAction extends ToggleAction implements ActionUpdateThreadBGT {
12+
public class CsvChangeEscapeCharacterAction extends ToggleAction implements ActionUpdateThreadAware {
1613
private final CsvEscapeCharacter myEscapeCharacter;
1714

1815
CsvChangeEscapeCharacterAction(CsvEscapeCharacter escapeCharacter) {
@@ -43,4 +40,9 @@ public void setSelected(@NotNull AnActionEvent anActionEvent, boolean selected)
4340
fileEditor.selectNotify();
4441
}
4542
}
43+
44+
@Override
45+
public @NotNull ActionUpdateThread getActionUpdateThread() {
46+
return ActionUpdateThread.BGT;
47+
}
4648
}

src/main/java/net/seesharpsoft/intellij/plugins/csv/actions/CsvChangeSeparatorAction.java

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

3-
import com.intellij.openapi.actionSystem.AnActionEvent;
4-
import com.intellij.openapi.actionSystem.CommonDataKeys;
5-
import com.intellij.openapi.actionSystem.PlatformDataKeys;
6-
import com.intellij.openapi.actionSystem.ToggleAction;
3+
import com.intellij.openapi.actionSystem.*;
74
import com.intellij.openapi.fileEditor.FileEditor;
85
import com.intellij.openapi.fileTypes.FileType;
96
import com.intellij.psi.PsiFile;
@@ -14,7 +11,7 @@
1411
import net.seesharpsoft.intellij.plugins.csv.components.CsvFileAttributes;
1512
import org.jetbrains.annotations.NotNull;
1613

17-
public class CsvChangeSeparatorAction extends ToggleAction implements ActionUpdateThreadBGT {
14+
public class CsvChangeSeparatorAction extends ToggleAction implements ActionUpdateThreadAware {
1815
private final CsvValueSeparator mySeparator;
1916

2017
CsvChangeSeparatorAction(CsvValueSeparator separator) {
@@ -50,4 +47,9 @@ public void setSelected(@NotNull AnActionEvent anActionEvent, boolean selected)
5047
fileEditor.selectNotify();
5148
}
5249
}
50+
51+
@Override
52+
public @NotNull ActionUpdateThread getActionUpdateThread() {
53+
return ActionUpdateThread.BGT;
54+
}
5355
}

src/main/java/net/seesharpsoft/intellij/plugins/csv/actions/CsvCustomSeparatorAction.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import javax.swing.*;
1313

14-
public class CsvCustomSeparatorAction extends ToggleAction implements ActionUpdateThreadBGT {
14+
public class CsvCustomSeparatorAction extends ToggleAction implements ActionUpdateThreadAware {
1515
CsvCustomSeparatorAction() {
1616
super("Custom");
1717
}
@@ -54,4 +54,9 @@ public void setSelected(@NotNull AnActionEvent anActionEvent, boolean selected)
5454
fileEditor.selectNotify();
5555
}
5656
}
57+
58+
@Override
59+
public @NotNull ActionUpdateThread getActionUpdateThread() {
60+
return ActionUpdateThread.BGT;
61+
}
5762
}

0 commit comments

Comments
 (0)