Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

[not to merge] Support IntelliJ 2020.1 #796

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
25c5597
Use the same fallback keys as the new Shell plugin for better
jansorg Jun 6, 2019
805830a
Support 2019.2 in this branch. We're not supporting earlier versions …
jansorg Jun 6, 2019
4204bd9
Fix Kotlin compilation with 192.x. We must not default to Kotlin 1.0
jansorg Jun 21, 2019
78d707d
2019.2: Show notification about new Shell plugin (#749)
jansorg Jul 4, 2019
5f3d01f
Prepare 1.7.11 (#751)
jansorg Jul 4, 2019
75341a9
Remove optional dependency on JetBrains Shell. (#752)
jansorg Jul 4, 2019
e9ac2c8
ignore test failing with 192.x, for now
jansorg Jul 4, 2019
39696c9
Merge branch 'master' into idea-192.x
jansorg Jul 15, 2019
785133a
Use latest EAP in build-all-branches.bash
jansorg Jul 15, 2019
4322aba
re-enable test which is now working with beta2 again (fixed in IntelliJ)
jansorg Jul 15, 2019
7ceb1c5
Merge branch 'master' into idea-192.x
jansorg Jul 15, 2019
5897071
Merge branch 'master' into idea-192.x
jansorg Jul 16, 2019
64a1f64
Merge branch 'master' into idea-192.x
jansorg Jul 19, 2019
5f8028c
Merge branch 'master' into idea-192.x
jansorg Jul 19, 2019
3d4147c
fix build
jansorg Jul 19, 2019
fcbaa5e
Support 2019.3 EAP
jansorg Sep 13, 2019
43b81ea
Merge branch 'master' into idea-192.x
jansorg Sep 13, 2019
600582f
Simple fixes of deprecations
jansorg Sep 13, 2019
5612a9f
Fix build with 192.x
jansorg Sep 13, 2019
ea53388
Merge branch 'master' into idea-192.x
jansorg Sep 13, 2019
a0e682d
merge with master
jansorg Nov 6, 2019
ce78aa7
fix gradle setup
jansorg Nov 6, 2019
cac3925
Implement thin compatibility layer for test base classes removed in 2…
jansorg Nov 20, 2019
e06c092
Merge branch 'master' into idea-192.x
jansorg Nov 20, 2019
ebfc844
Release 1.7.14.192
jansorg Nov 20, 2019
b5f0071
Merge branch '193-fixes' into idea-192.x
jansorg Nov 21, 2019
729f759
Properly add detected file types for 193.x
jansorg Nov 22, 2019
ec9a1e0
Add comparision chart for the BashSupport notification
jansorg Jan 21, 2020
0f9af76
Properly override getId() to remove warning with 2020.1 eap
jansorg Feb 26, 2020
08777bb
Prepare for 2020.1 update
jansorg Apr 16, 2020
83f1983
Merge branch 'master' into idea-192.x
jansorg Apr 16, 2020
6073665
Merge branch 'master' into idea-192.x
jansorg Apr 16, 2020
c8a5464
Merge branch 'idea-192.x' into idea-201.x
jansorg Apr 16, 2020
2eebe75
Preparing 1.7.17
jansorg Apr 16, 2020
6c69555
Trying to fix exceptions on resolving
jansorg May 4, 2020
88a17ed
Preparing 1.7.18
jansorg May 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions .idea/bashsupport.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/dictionaries/jansorg.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions .idea/modules/bashsupport.main.iml

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions .idea/modules/bashsupport.test.iml

Large diffs are not rendered by default.

20 changes: 19 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
#### 2020-04-16:
#### 2020-04-16
- 2020.1: A possible fix for exception `Non-idempotent computation`
- [#792](https://github.com/BashSupport/BashSupport/issues/792): Added NO_SPACING formatting for variable concatenation using += operator (contributed by schilli91)
- Version 1.7.17

#### 2020-02-26
- Compatibility with 2020.1 eap
- Added a link to a comparision of Shell and BashSupport to the notification about conflicting plugins
- Version 1.7.16

#### 2019-11-22:
- Really apply compatibility fixes for 2019.3
- Version 1.7.15

#### 2019-11-20:
- Fixes for 2019.3
- Version 1.7.14
Expand All @@ -27,12 +38,19 @@
- [#764](https://github.com/BashSupport/BashSupport/issues/764): Variables declared in included files were not always properly resolved.
- Fix exception about IndexPatternBuilder incorrect Bash comment ranges

#### 2019-07-04:
- A notification is displayed for 192.x and later if both BashSupport and JetBrains Shell are enabled at the same time. It allows to disable one of the plugins.
- Version 1.7.11

#### 2019-06-21:
- [#682](https://github.com/BashSupport/BashSupport/issues/682): Parse heredocs in pipeline commands
- [#662](https://github.com/BashSupport/BashSupport/issues/662): Enter handler to insert a line continuation in Bash files
- [#658](https://github.com/BashSupport/BashSupport/issues/658): Fix broken highlighting of heredocs.
- [#656](https://github.com/BashSupport/BashSupport/issues/656): Fix multiline highlighting of todo/fixme comments

#### 2019-06-15:
- Version 1.7.10

#### 2019-05-28:
- Version 1.7.8
- Version 1.7.9
Expand Down
26 changes: 4 additions & 22 deletions build-all-branches.bash
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
#!/usr/bin/env bash
set -e
test -f "$HOME/.jdk8" && . $HOME/.jdk8

function ideaBranch {
if [[ "$1" == 191.* || "$1" == 2019.1.* ]]; then
echo "191"
elif [[ "$1" == 183.* || "$1" == 2018.3.* ]]; then
echo "183"
elif [[ "$1" == 182.* || "$1" == 2018.2.* ]]; then
echo "182"
elif [[ "$1" == 181.* || "$1" == 2018.1.* ]]; then
echo "181"
elif [[ "$1" == 173.* || "$1" == 2017.3.* ]]; then
echo "173"
elif [[ "$1" == 172.* || "$1" == 2017.2.* ]]; then
echo "172"
elif [[ "$1" == 171.* || "$1" == 2017.1.* ]]; then
echo "171"
fi
}

for v in "2019.1.3" "2018.3.6" "2018.2.3" "2018.1.6" "2017.3.5" "2017.2.6" "2017.1.6" "2016.3.8" "2016.2.5" "2016.1.4"; do
branch="$(ideaBranch $v)"
echo "## Building with version $v, IDEA branch $branch..."
_JAVA_OPTIONS="" JAVA_OPTS="" gradle -Dbash.skipUrls="true" -PideaVersion="$v" -PideaBranch="$branch" clean build
for v in "2020.1"; do
echo "## Building with version $v..."
_JAVA_OPTIONS="" JAVA_OPTS="" gradle -Dbash.skipUrls="true" -PideaVersion="$v" -PideaBranch="201" clean build

status=$?
if [[ $status -ne 0 ]]; then
Expand Down
28 changes: 15 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
buildscript {
dependencies {
// this is the version included in the earlies SDK we're supporting
// this is IJ 145.x, which includes Kotlin 1.0.3
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.7"
// this is the version included in the SDK we're supporting
// this is IJ 192.x, which includes Kotlin 1.3.31
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.31"
}
}

plugins {
id "org.jetbrains.intellij" version "0.4.8"
id "org.jetbrains.intellij" version "0.4.18"
}

repositories {
Expand All @@ -16,7 +16,7 @@ repositories {
mavenCentral()
}

version = "${new File('pluginVersion.txt').getText('UTF-8')}"
version = "${new File("${project.rootDir}/pluginVersion.txt").getText('UTF-8')}"

allprojects {
apply plugin: 'java'
Expand All @@ -34,16 +34,16 @@ allprojects {

compileKotlin {
kotlinOptions {
apiVersion = 1.0
languageVersion = 1.0
apiVersion = 1.3
languageVersion = 1.3
noStdlib = true
noReflect = true
}
}

sourceSets {
main {
java.srcDirs 'src'
java.srcDirs = ['src']
resources.srcDir 'resources'
}
test {
Expand All @@ -60,12 +60,12 @@ allprojects {
version ideaVersion
type "IC"
pluginName 'BashSupport'
plugins 'IntelliLang', 'terminal'
plugins = ['IntelliLang', 'terminal']
downloadSources Boolean.valueOf(sources)

patchPluginXml {
sinceBuild '145.0'
untilBuild '191.*'
sinceBuild '201.0'
untilBuild '201.*'
}
}

Expand All @@ -77,14 +77,13 @@ allprojects {

apply plugin: 'jacoco'
jacoco {
toolVersion = "0.7.9"
toolVersion = "0.8.5"
reportsDir = file("$buildDir/reports/coverage")
}
test {
finalizedBy jacocoTestReport
jacoco {
enabled true
append false
includes ["com.ansorgit.*"]
}
}
Expand All @@ -101,6 +100,9 @@ allprojects {
// test logging configuration, shows test progress and messages to standard error
// see https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/testing/logging/TestLogEvent.html
test {
// 192.x has the Java functionality in a plugin now.
// Our tests are using code of this package, but the plugin itself must not depend on the Java plugin.
intellij.plugins += 'java'
testLogging {
events = [
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
Expand Down
15 changes: 13 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
ideaBranch=145
ideaVersion=2016.1.4
# Available idea versions:
# https://www.jetbrains.com/intellij-repository/releases
# https://www.jetbrains.com/intellij-repository/snapshots

ideaBranch=201
ideaVersion=2020.1

#ideaBranch=193
#ideaVersion=2019.3.3

#ideaBranch=201
#ideaVersion=201.5616.10-EAP-SNAPSHOT

javaVersion=1.8
sources=true
pluginChannels=eap
Expand Down
Binary file removed lib/kotlin-runtime-1.0.7-sources.jar
Binary file not shown.
Binary file removed lib/kotlin-runtime-1.0.7.jar
Binary file not shown.
Binary file removed lib/kotlin-stdlib-1.0.7.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion pluginVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.14.145
1.7.18.201
Loading