Skip to content

Commit 0109bcd

Browse files
authored
Merge pull request #87 from wpopielarski/master
Update to version 1.2.40
2 parents 726d8be + c44856b commit 0109bcd

File tree

40 files changed

+91
-396
lines changed

40 files changed

+91
-396
lines changed

.teamcity/Kotlin_KotlinEclipse/Project.kt

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

.teamcity/Kotlin_KotlinEclipse/buildTypes/Kotlin_KotlinEclipse_EclipsePluginDev.kt

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

.teamcity/Kotlin_KotlinEclipse/settings.kts

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

.teamcity/Kotlin_KotlinEclipse/vcsRoots/Kotlin_KotlinEclipse_HttpsGithubComJetBrainsKotlinEclipseRefsHeadsMaster.kt

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

.teamcity/Kotlin_KotlinEclipse/vcsRoots/Kotlin_KotlinEclipse_HttpsGithubComWpopielarskiKotlinEclipse.kt

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

.teamcity/Kotlin_KotlinEclipse/vcsRoots/Kotlin_KotlinEclipse_HttpsGithubComWpopielarskiKotlinEclipseRefsHeadsBumpTo1230.kt

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

.teamcity/pom.xml

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

kotlin-bundled-compiler/META-INF/MANIFEST.MF

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: Bundled Kotlin Compiler
44
Bundle-SymbolicName: org.jetbrains.kotlin.bundled-compiler;singleton:=true
5-
Bundle-Version: 0.8.3.qualifier
5+
Bundle-Version: 0.8.4.qualifier
66
Bundle-Vendor: JetBrains
77
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
88
Bundle-ClassPath: .,
@@ -338,7 +338,6 @@ Export-Package:
338338
org.jetbrains.kotlin.serialization.builtins,
339339
org.jetbrains.kotlin.serialization.deserialization,
340340
org.jetbrains.kotlin.serialization.deserialization.descriptors,
341-
org.jetbrains.kotlin.serialization.jvm,
342341
org.jetbrains.kotlin.storage,
343342
org.jetbrains.kotlin.synthetic,
344343
org.jetbrains.kotlin.types,

kotlin-bundled-compiler/get_bundled.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<project default="get_bundled">
2-
<property name="compiler.tag" value="1.2.31" />
2+
<property name="compiler.tag" value="1.2.40" />
33
<property name="bootstrap_branch" value=""/>
44
<property name="idea-version" value="162.1812.17"/>
55

6-
<property name="compiler.query" value="1334344:id" />
6+
<property name="compiler.query" value="1395958:id" />
77

88
<property name="teamcity-base" value="https://teamcity.jetbrains.com"/>
99

1010
<property name="kotlin-idea-compatible-version" value="IJ2017.3-1" />
11-
<property name="kotlin-version" value="1.2.30" />
12-
<property name="teamcity-kotlin-url" value = "${teamcity-base}/guestAuth/repository/download/Kotlin_1230_CompilerAllPlugins/${compiler.query}" />
11+
<property name="kotlin-version" value="1.2.40" />
12+
<property name="teamcity-kotlin-url" value = "${teamcity-base}/guestAuth/repository/download/Kotlin_1240_CompilerAllPlugins/${compiler.query}" />
1313

1414
<property name="idea-sdk-url" value="https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea" />
1515

@@ -238,7 +238,7 @@
238238
</unzip>
239239

240240
<!-- Also retrivive sources -->
241-
<get src="${teamcity-kotlin-url}/maven/org/jetbrains/kotlin/kotlin-compiler/1.2.30/kotlin-compiler-1.2.30-sources.jar"
241+
<get src="${teamcity-kotlin-url}/maven/org/jetbrains/kotlin/kotlin-compiler/${kotlin-version}/kotlin-compiler-${kotlin-version}-sources.jar"
242242
dest="${download.dir}/${compiler-sources-file}" usetimestamp="true" />
243243
<!-- Get idea sources -->
244244
<get src="${idea-sdk-url}/ideaIC/${idea-version}/ideaIC-${idea-version}-sources.jar" dest="${download.dir}/idea-sdk-sources.jar" usetimestamp="true" />

kotlin-bundled-compiler/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<relativePath>../pom.xml</relativePath>
99
<groupId>kotlin.eclipse</groupId>
1010
<artifactId>kotlin.eclipse.plugin</artifactId>
11-
<version>0.8.3-SNAPSHOT</version>
11+
<version>0.8.4-SNAPSHOT</version>
1212
</parent>
1313

1414
<artifactId>org.jetbrains.kotlin.bundled-compiler</artifactId>

kotlin-eclipse-aspects/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: kotlin-eclipse-aspects
44
Bundle-SymbolicName: org.jetbrains.kotlin.aspects
5-
Bundle-Version: 0.8.3.qualifier
5+
Bundle-Version: 0.8.4.qualifier
66
Bundle-Activator: org.jetbrains.kotlin.aspects.Activator
77
Require-Bundle: org.eclipse.ui,
88
org.eclipse.core.runtime,

kotlin-eclipse-aspects/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<relativePath>../pom.xml</relativePath>
99
<groupId>kotlin.eclipse</groupId>
1010
<artifactId>kotlin.eclipse.plugin</artifactId>
11-
<version>0.8.3-SNAPSHOT</version>
11+
<version>0.8.4-SNAPSHOT</version>
1212
</parent>
1313

1414
<artifactId>org.jetbrains.kotlin.aspects</artifactId>

kotlin-eclipse-core/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: kotlin-eclipse-core
44
Bundle-SymbolicName: org.jetbrains.kotlin.core;singleton:=true
5-
Bundle-Version: 0.8.3.qualifier
5+
Bundle-Version: 0.8.4.qualifier
66
Bundle-Activator: org.jetbrains.kotlin.core.Activator
77
Bundle-Vendor: JetBrains
88
Require-Bundle: org.jetbrains.kotlin.bundled-compiler,

kotlin-eclipse-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<relativePath>../pom.xml</relativePath>
99
<groupId>kotlin.eclipse</groupId>
1010
<artifactId>kotlin.eclipse.plugin</artifactId>
11-
<version>0.8.3-SNAPSHOT</version>
11+
<version>0.8.4-SNAPSHOT</version>
1212
</parent>
1313

1414
<artifactId>org.jetbrains.kotlin.core</artifactId>

kotlin-eclipse-core/src/org/jetbrains/kotlin/core/asJava/KotlinLightClassGeneration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object KotlinLightClassGeneration {
6969
override fun shouldGenerateScript(script: KtScript): Boolean = false
7070

7171
override fun shouldGenerateClassMembers(processingClassOrObject: KtClassOrObject): Boolean {
72-
return shouldGenerateClass(processingClassOrObject) ||
72+
return super.shouldGenerateClassMembers(processingClassOrObject) ||
7373
processingClassOrObject.hasModifier(KtTokens.COMPANION_KEYWORD)
7474
}
7575
}).build()

kotlin-eclipse-core/src/org/jetbrains/kotlin/core/model/KotlinCommonEnvironment.kt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ import org.jetbrains.kotlin.script.ScriptHelperImpl
9595
import com.intellij.lang.jvm.facade.JvmElementProvider
9696
import org.jetbrains.kotlin.resolve.ModuleAnnotationsResolver
9797
import org.jetbrains.kotlin.cli.jvm.compiler.CliModuleAnnotationsResolver
98+
import org.jetbrains.kotlin.cli.jvm.compiler.CliTraceHolder
99+
import org.jetbrains.kotlin.cli.jvm.compiler.CliKotlinAsJavaSupport
98100

99101
private fun setIdeaIoUseFallback() {
100102
if (SystemInfo.isWindows) {
@@ -160,15 +162,19 @@ abstract class KotlinCommonEnvironment(disposable: Disposable) {
160162
registerService(ExternalAnnotationsManager::class.java, MockExternalAnnotationsManager())
161163
registerService(InferredAnnotationsManager::class.java, MockInferredAnnotationsManager())
162164

163-
val cliLightClassGenerationSupport = CliLightClassGenerationSupport(project)
164-
registerService(LightClassGenerationSupport::class.java, cliLightClassGenerationSupport)
165-
registerService(CliLightClassGenerationSupport::class.java, cliLightClassGenerationSupport)
166-
registerService(CodeAnalyzerInitializer::class.java, cliLightClassGenerationSupport)
165+
val traceHolder = CliTraceHolder().also {
166+
registerService(CodeAnalyzerInitializer::class.java, it)
167+
}
168+
169+
CliLightClassGenerationSupport(traceHolder).also {
170+
registerService(LightClassGenerationSupport::class.java, it)
171+
registerService(CliLightClassGenerationSupport::class.java, it)
172+
}
167173

168174
registerService(JavaModuleResolver::class.java, EclipseKotlinJavaModuleResolver())
169175

170176
val area = Extensions.getArea(this)
171-
area.getExtensionPoint(PsiElementFinder.EP_NAME).registerExtension(JavaElementFinder(this, cliLightClassGenerationSupport))
177+
area.getExtensionPoint(PsiElementFinder.EP_NAME).registerExtension(JavaElementFinder(this, CliKotlinAsJavaSupport(project, traceHolder)))
172178
area.getExtensionPoint(PsiElementFinder.EP_NAME).registerExtension(
173179
PsiElementFinderImpl(this, ServiceManager.getService(this, JavaFileManager::class.java)))
174180
}

0 commit comments

Comments
 (0)