Commit Graph

58302 Commits

Author SHA1 Message Date
Dmitry Gridin aa364ea14e KotlinIntroduceImportAliasHandler: fix PIEAE 2019-10-16 15:36:20 +07:00
Dmitry Gridin d9faaddcca delayedRequestsWaitingSet: performDelayedRefactoringRequests should commit all documents before refactoring
#KT-34365 Fixed
2019-10-16 15:36:00 +07:00
Dmitry Gridin 72eee17bff delayedRequestsWaitingSet: cleanup code 2019-10-16 15:36:00 +07:00
Ivan Gavrilovic 4e807692e5 KT-34167: Warn when incremental AP does not follow the contract
Isolating incremental AP must report exactly one originating source file.
This commit logs a warning when this constraint is violated.

Test: AnnotationProcessorDependencyCollectorTest.testIsolatingWithoutOrigin
2019-10-16 16:33:00 +09:00
Ivan Gavrilovic 8f94a71de7 KT-33617: Handle non-hierarchical URIs for incremental annotation processing
JDK9 may decide to load .java files from jar when resolving a type, even
when .class file exists in the same jar. Further on, these files will be
parsed and analyzed, which triggers the listener used by incremental
annotation processing. This commit avoids analyzing those files, and
makes sure URI passed from the compiler are such that a File instance
can be created.

Test: KaptIncrementalWithIsolatingApt.testSourcesInCompileClasspathJars
2019-10-16 16:33:00 +09:00
Ilya Gorbunov 941980c154 Cleanup FE analysis flag allowKotlinPackage
It was used to allow custom contracts when compiling stdlib
with the Kotlin 1.2 compiler. Since 1.3 compiler is used now, this
flag is no longer necessary.
2019-10-15 19:08:57 +03:00
Anton Yalyshev 1e921647fe Bump FUS Collectors versions after last changes for proper data fetching 2019-10-15 16:15:10 +03:00
Yan Zhulanow d31f234311 Pill: Add kotlin-scripting-js module to Pill 2019-10-15 22:06:45 +09:00
Yan Zhulanow 9c88a1f807 Debugger: Fix language detection in FUS 2019-10-15 22:06:45 +09:00
Georgy Bronnikov f3cae210f8 JVM_IR: handle type parameters in constructors for @JvmOverloads stubs 2019-10-15 14:55:18 +03:00
Ilya Goncharov 7ceb2c79b8 [Gradle, JS] Exclude output directory from conformance test 2019-10-15 14:09:28 +03:00
Ilya Goncharov 8ae43c6c36 [Gradle, JS] Add kotlin-source-map-loader' ignores to exclude in tests
- node_modules
- .gradle
2019-10-15 11:38:11 +03:00
Vladimir Dolzhenko eb9875b6f5 Added missed kotlin-reflect to nj2k testRuntime 2019-10-15 09:33:57 +02:00
Kirill Shmakov b76d58de54 Handle case when property is missed 2019-10-15 09:48:15 +03:00
Kirill Shmakov 02cedfde21 Make build more stable 2019-10-14 19:31:03 +03:00
Dmitry Gridin 20eb3fb492 referenceUtil: fix matchesTarget for import alias
#KT-30012 Fixed
#KT-30432 Fixed
#KT-30736 Fixed
2019-10-14 21:45:12 +07:00
Dmitry Gridin 348d2376b1 referenceUtil: cleanup code 2019-10-14 21:45:12 +07:00
Dmitry Gridin 20784d50ff CallableBuilder: fix PIEAE
#EA-214253 Fix
2019-10-14 21:45:12 +07:00
Dmitry Gridin 0ac2303fad KotlinSuppressIntentionAction: fix PIEAE
#EA-214227 Fix
2019-10-14 21:45:12 +07:00
Dmitry Gridin e3d9f05d28 KotlinSuppressIntentionAction: cleanup code 2019-10-14 21:45:11 +07:00
Dmitry Gridin 3832924bd7 KotlinMavenPluginPhaseInspection: fix potential PIEAE 2019-10-14 21:45:11 +07:00
Dmitry Gridin 1e81f9499a KotlinMavenPluginPhaseInspection: cleanup code 2019-10-14 21:45:11 +07:00
Dmitry Gridin a652a0f6b3 AddReifiedToTypeParameterOfFunctionFix: fix PIEAE 2019-10-14 21:45:11 +07:00
Dmitry Gridin 6898d437cf AddConstModifierFix: fix PIEAE
#EA-214417 Fixed
2019-10-14 21:45:11 +07:00
Dmitry Gridin bce2202ea3 LetImplementInterfaceFix: fix PIEAE
#EA-214415 Fixed
2019-10-14 21:45:11 +07:00
Dmitry Gridin 859537a38d LetImplementInterfaceFix: cleanup code 2019-10-14 21:45:11 +07:00
Dmitry Gridin 2eb035aff2 generateUtil: fix PIEAE
#EA-142347 Fixed
2019-10-14 21:45:11 +07:00
Dmitry Gridin 1a8796c79a LightClassDataHolder: shouldn't catch ControlFlowException 2019-10-14 21:45:10 +07:00
Dmitry Gridin 7c1f2e8735 LightClassDataHolder: cleanup code 2019-10-14 21:45:10 +07:00
Dmitry Gridin 87ac31d957 UsageReplacementStrategy: shouldn't catch ControlFlowException 2019-10-14 21:45:10 +07:00
Dmitry Gridin 585222b4bb ScriptDefinitionsManager: shouldn't catch ControlFlowException
#EA-209928 Fixed
2019-10-14 21:45:10 +07:00
Dmitry Gridin ee8e9a76f9 KtScratchExecutionSession: shouldn't catch ControlFlowException
#EA-210849 Fixed
2019-10-14 21:45:10 +07:00
Nikolay Krasko 79cb10a755 Patch initializing EmptySubstitutor service and fix null references
There's a cycle in service initialization and PsiSubstitutor 'clinit'
2019-10-14 16:55:25 +03:00
Vladimir Dolzhenko c20bdd3c30 Clean up after reusing allDescriptors() from LazyJavaScope to avoid compute contributed descriptors in LazyJavaPackageScope 2019-10-14 15:49:45 +02:00
pyos d3992826e4 JVM_IR: discard parameter annotations in anonymous object constructors 2019-10-14 14:54:44 +02:00
Mark Punzalan 78465e280f Exclude additional generated testData/out-min dir in js/js.translator.
This was causing re-indexing in IntelliJ after every time the JS tests
are run.
2019-10-14 14:51:27 +03:00
Egor Ushakov ea7f6dbd33 EA-208866 - IAE: SafeUtilKt.safeSourceName - fixed in platform 2019-10-14 12:55:18 +03:00
Nicolay Mitropolsky f6e0e5b80d Uast: a workaround for getting parent for KotlinUAnonymousClass
when it is used in field initialisation
2019-10-14 11:30:20 +03:00
Ilya Goncharov cb31b42930 [Gradle, JS] Update npm versions 2019-10-14 11:20:36 +03:00
Vladimir Dolzhenko 8bba596c4e Reuse allDescriptors() from LazyJavaScope to avoid compute contributed descriptors in LazyJavaPackageScope 2019-10-14 10:13:30 +02:00
Mikhail Glukhikh 88bc6b992f Move .gitattributes for generated files from fir:resolve to fir:tree 2019-10-14 11:12:19 +03:00
Ilya Goncharov 1b929cd93e [Gradle, JS] Add args instead of full override 2019-10-14 11:09:09 +03:00
Ilya Goncharov ee49c96650 [Gradle, JS] Set cli args for yarn install 2019-10-14 11:09:09 +03:00
Vladimir Dolzhenko 7b0646d2a5 Reuse allDescriptors() from LazyJavaScope to avoid compute contributed descriptors in LazyJavaPackageScope 2019-10-14 09:57:04 +02:00
Dmitry Gridin a24e229d7a CreateExpectedFix: should generate expect declaration in selected module
#KT-33933 Fixed
2019-10-14 14:42:29 +07:00
Dmitry Gridin ac3009082f QuickFixMultiModuleTest: support hierarchy MPP 2019-10-14 14:42:29 +07:00
Nikolay Krasko 728ccdee63 Don't publish computed value to other threads till post compute is finished (KT-28940)
This fixes a race condition with counting supertypes (the only client
of createLazyValueWithPostCompute left at the moment).

 #KT-28940 Fixed
2019-10-13 18:21:38 +03:00
Nikolay Krasko 4f488ddd16 Remove lazy values with dummy post compute lambdas 2019-10-13 18:21:38 +03:00
Ivan Gavrilovic fbde7e47e9 KT-33503: Avoid analyzing module-info.class in KAPT classpath
When analyzing classpath changes for incremental KAPT, avoid
analyzing module-info.class files.

Test: ClasspathAnalyzerTest
2019-10-13 15:14:40 +09:00
Ilya Kirillov 1ec620b753 New J2K: fix SOE in inference processing for star-projection as type argument
#KT-33942 fixed
#KT-33941 fixed
2019-10-12 15:28:03 +03:00