Skip to content

Commit

Permalink
Merge pull request #819 from SeeSharpSoft/main
Browse files Browse the repository at this point in the history
Release 3.3.0
  • Loading branch information
SeeSharpSoft authored Feb 24, 2024
2 parents 19a1a36 + 781763d commit f7fd574
Show file tree
Hide file tree
Showing 24 changed files with 252 additions and 167 deletions.
1 change: 0 additions & 1 deletion .github/workflows/CronEAP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ jobs:
- name: Build with Gradle
env:
IDEA_VERSION: LATEST-EAP-SNAPSHOT
GRAMMAR_KIT_VERSION: 2021.1.2
IDEA_SOURCES: false
run: xvfb-run ./gradlew test
7 changes: 1 addition & 6 deletions .github/workflows/PublishStable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ jobs:
matrix:
include:
- ideaVersion: 2022.2.1
gkVersion: 2021.1.2
- ideaVersion: 2022.3.1
gkVersion: 2021.1.2
- ideaVersion: 2023.1.1
gkVersion: 2021.1.2
- ideaVersion: 2023.2.1
gkVersion: 2021.1.2
- ideaVersion: 2023.3.1
- ideaVersion: LATEST-EAP-SNAPSHOT
gkVersion: 2021.1.2

steps:
- uses: actions/checkout@v2
Expand All @@ -39,7 +35,6 @@ jobs:
- name: Build with Gradle
env:
IDEA_VERSION: ${{ matrix.ideaVersion }}
GRAMMAR_KIT_VERSION: ${{ matrix.gkVersion }}
IDEA_SOURCES: false
JI_CHANNELS: Stable
JI_TOKEN: ${{ secrets.JI_TOKEN }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/PullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
include:
- ideaVersion: 2022.2.1
ideaType: PS
gkVersion: 2021.1.2
- ideaVersion: 2022.2.3
ideaType: PY
gkVersion: 2021.1.2
- ideaVersion: 2023.3.1
ideaType: IC

steps:
- uses: actions/checkout@v2
Expand All @@ -36,6 +36,5 @@ jobs:
env:
IDEA_VERSION: ${{ matrix.ideaVersion }}
IDEA_TYPE: ${{ matrix.ideaType }}
GRAMMAR_KIT_VERSION: ${{ matrix.gkVersion }}
IDEA_SOURCES: false
run: xvfb-run ./gradlew test
10 changes: 10 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
3.3.0
Feb 24, 2024

CHORE: Update gradle build
FIX: PluginException: xxx ms to call on EDT CsvChangeSeparatorActionGroup#update@EditorPopup #401
FIX: AlreadyDisposedException: Already disposed #639
FIX: Exceptions occurred on invoking the intention 'Unquote' on a copy of the file #670 #816
FIX: StringIndexOutOfBoundsException: begin 0, end -1, length 5993 #801
FIX: Unhandled exception in [CoroutineName(PsiAwareFileEditorManagerImpl)] #666

3.2.3
Nov 05, 2023

Expand Down
35 changes: 20 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugins {
// https://github.com/JetBrains/gradle-intellij-plugin
id 'org.jetbrains.intellij' version '1.13.3'
id 'org.jetbrains.intellij' version '1.17.2'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.4'
id 'com.github.ManifestClasspath' version '0.1.0-RELEASE'
// https://github.com/JetBrains/gradle-grammar-kit-plugin
id 'org.jetbrains.grammarkit' version '2021.2.2'
id 'org.jetbrains.grammarkit' version '2022.3.2.2'
}

jacoco {
Expand Down Expand Up @@ -38,7 +38,7 @@ dependencies {
sourceSets {
main {
java {
srcDirs = ['src/main/java', 'gen']
srcDirs = ['src/main/java', 'src/gen/java']
}
resources {
srcDirs = ['src/main/resources']
Expand Down Expand Up @@ -67,15 +67,15 @@ idea {
}

var final EAP_VERSION = 'LATEST-EAP-SNAPSHOT'
var final EAP_BUILD = '233'
var final EAP_BUILD = '241'

var final DEFAULT_VERSION = '2022.2.1' //'LATEST-EAP-SNAPSHOT' //

// IDE version - https://www.jetbrains.com/intellij-repository/releases
var idea_version = System.getenv().getOrDefault('IDEA_VERSION', DEFAULT_VERSION)
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'

version '3.2.3-' + build_version
version '3.3.0-' + build_version

apply plugin: 'org.jetbrains.intellij'
intellij {
Expand All @@ -96,8 +96,12 @@ patchPluginXml {
sinceBuild = build_version

changeNotes = """<pre style="font-family: sans-serif">
NEW: Prevent github issue submitter spam
FIX: Improve issue duplicate finder
CHORE: Update gradle build
FIX: PluginException: xxx ms to call on EDT CsvChangeSeparatorActionGroup#update@EditorPopup #401
FIX: AlreadyDisposedException: Already disposed #639
FIX: Exceptions occurred on invoking the intention 'Unquote' on a copy of the file #670 #816
FIX: StringIndexOutOfBoundsException: begin 0, end -1, length 5993 #801
FIX: Unhandled exception in [CoroutineName(PsiAwareFileEditorManagerImpl)] #666
</pre>"""
}
publishPlugin {
Expand All @@ -122,24 +126,25 @@ grammarKit {
// version of IntelliJ patched JFlex - https://bintray.com/jetbrains/intellij-third-party-dependencies/jflex
jflexRelease = '1.7.0-1'
// tag or short commit hash of Grammar-Kit to use - https://github.com/JetBrains/Grammar-Kit
grammarKitRelease = System.getenv().getOrDefault('GRAMMAR_KIT_VERSION', '2021.1.2')
// USE DEFAULT
// grammarKitRelease = System.getenv().getOrDefault('GRAMMAR_KIT_VERSION', '2022.3.2')
}

tasks.named("generateParser").configure {
source = 'src/main/java/net/seesharpsoft/intellij/plugins/csv/Csv.bnf'
targetRoot = 'gen'
pathToParser = '/net/seesharpsoft/intellij/plugins/csv/parser/CsvParser.java'
pathToPsiRoot = '/net/seesharpsoft/intellij/plugins/csv/psi'
sourceFile = file('src/main/java/net/seesharpsoft/intellij/plugins/csv/Csv.bnf')
targetRootOutputDir = file('src/gen/java')
pathToParser = 'net/seesharpsoft/intellij/plugins/csv/parser/CsvParser.java'
pathToPsiRoot = 'net/seesharpsoft/intellij/plugins/csv/psi'
purgeOldFiles = true
}

tasks.named("generateLexer").configure {
dependsOn generateParser

source = 'src/main/java/net/seesharpsoft/intellij/plugins/csv/CsvLexer.flex'
targetDir = './gen/net/seesharpsoft/intellij/plugins/csv/'
sourceFile = file('src/main/java/net/seesharpsoft/intellij/plugins/csv/CsvLexer.flex')
targetOutputDir = file('src/gen/java/net/seesharpsoft/intellij/plugins/csv')
targetClass = 'CsvLexer'
purgeOldFiles = true
purgeOldFiles = false
}

compileJava {
Expand Down
5 changes: 0 additions & 5 deletions gen/info/README.MD

This file was deleted.

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit f7fd574

Please sign in to comment.