Sergey Rostov
9f5a02dc7a
gradle.kts importing: fix as36
2019-12-16 11:24:35 +03:00
Mikhail Glukhikh
fea224749b
FIR: introduce symbolProvider.getNestedClassifierScope to choose lazy/non-lazy
...
For some reason this breaks two old FE based tests with member type aliases.
It's not very interesting because member aliases aren't supported.
2019-12-16 10:50:52 +03:00
Mikhail Glukhikh
663d545d79
FIR: get rid of symbolProvider.getClassDeclaredMemberScope at all
2019-12-16 10:50:52 +03:00
Sergey Rostov
039090d2bf
gradle.kts importing tests: run gradle 6.0.1 only for that test
2019-12-16 10:31:12 +03:00
Sergey Rostov
1930ab7c38
gradle.kts importing: reduce bunch files
2019-12-16 10:31:11 +03:00
Sergey Rostov
c0690ff5f6
gradle.kts importing: move code to dedicated package
2019-12-16 10:31:11 +03:00
Sergey Rostov
6e3e65c490
gradle.kts importing: add support for included builds and fix sub projects
2019-12-16 10:31:11 +03:00
Sergey Rostov
fef193be63
gradle.kts: add tests for importing scripts configuration
2019-12-16 10:31:11 +03:00
Sergey Rostov
dcd67d79f4
gradle.kts: script models should be imported in ProjectData key, not in GradleSourceSetData
...
Or it will be fail if there is no source sets (see org.jetbrains.kotlin.idea.codeInsight.gradle.GradleKtsImportTest.testEmpty for reproduction)
2019-12-16 10:31:11 +03:00
Sergey Rostov
fd16078a34
gradle.kts: add clearCaches method for testing
2019-12-16 10:31:11 +03:00
Sergey Rostov
559b067f91
gradle.kts: move areSimilar to utils.kt to use in tests
2019-12-16 10:31:11 +03:00
Igor Yakovlev
2639ed2c48
Fix invalid equality for UL methods
...
Potentially fixed #KT-34796
2019-12-15 23:42:31 +03:00
Dmitry Savvinov
f45c11c6f2
Use constantSdkDependencyIfAny in getKeyForSdk as well
2019-12-13 19:11:02 +03:00
Dmitriy Dolovov
5b8be16f13
Kotlin/Native IDE plugin clean-up
...
- Re-organize classes
2019-12-13 15:52:25 +03:00
Dmitriy Dolovov
36ed29d4d5
Convert KotlinNativeMetaBinary from Java to Kotlin
2019-12-13 15:52:17 +03:00
Dmitriy Dolovov
511a4089ca
Kotlin/Native IDE plugin clean-up
...
- Drop KotlinNativeMetadataVersion in favor of KlibMetadataVersion
- Drop KotlinNativeProtoBasedClassDataFinder in favor of KlibMetadataClassDataFinder
2019-12-13 15:52:10 +03:00
Dmitriy Dolovov
deb4025987
Fix: Use more precise KLIB compatibility check (by metadata version)
...
Issue #KT-34811
2019-12-13 15:51:54 +03:00
Yan Zhulanow
a19f8ffe6a
Revert "Debugger: Add IR-powered ranking tests"
...
This reverts commit ce21a559
Because of the erroneous behavior in 'BuilderFactoryForDuplicateSignatureDiagnostics.groupMembersDescriptorsBySignature', two functions with arguments of different inline class types are considered to have the same JVM signature.
Before the error wasn't reported, as classes didn't have proper source elements.
This issue has to be fixed before enabling ranking tests.
2019-12-13 12:23:24 +09:00
Victor Petukhov
07269661b4
NI: Allow to resolve to functions with SAM conversion and passing array without spread as vararg (with warning)
...
^KT-35224 Fixed
2019-12-12 23:46:16 +03:00
Dmitriy Novozhilov
e7f8c8e155
[TEST] Regenerate tests after previous commit
2019-12-12 16:11:45 +03:00
Yan Zhulanow
748cbd7eec
Import Kotlin JUnit run configuration settings from Gradle
2019-12-11 20:04:03 +09:00
Yan Zhulanow
0a9a08eab6
Rename Kotlin-specific Gradle configuration to "Kotlin Gradle" to avoid disambiguation
2019-12-11 20:04:03 +09:00
Yan Zhulanow
1bdff8f884
Rename Kotlin-specific JUnit configuration to "Kotlin JUnit" to avoid disambiguation
2019-12-11 20:04:03 +09:00
Toshiaki Kameyama
8477c1935c
Run configuration: do not contain FQN in name
...
#KT-16886 Fixed
2019-12-11 20:04:03 +09:00
Yan Zhulanow
ce21a55943
Debugger: Add IR-powered ranking tests
2019-12-11 20:04:03 +09:00
Dmitry Gridin
31596f0d0b
Formatter: fix some cases of call chain with wrap first call chain
...
#KT-35388 Fixed
2019-12-11 18:00:39 +07:00
Dmitry Gridin
e7ff0315d4
Formatter: fix line break before value parameter with annotation
...
#KT-23811 Fixed
2019-12-11 17:57:11 +07:00
Vladimir Ilmov
f05a452ef2
[coroutine][debugger] Unit test support added for Gradle run configurations.
2019-12-11 11:46:28 +01:00
Vladimir Ilmov
82cdcb421b
jdi.StringReferenceImpl references replaced with StringReference
2019-12-11 11:44:02 +01:00
Egor Ushakov
e2010cb90d
Do not cast to jdi impl classes
2019-12-11 13:16:27 +03:00
Mikhail Glukhikh
9e263b6af2
FIR IDE: use registry to obtain kotlin.use.fir.resolution
2019-12-11 13:01:38 +03:00
Igor Yakovlev
6792d22c31
Fix minor bugs for UL methods and parameters representation
...
Remove INSTANCE field for local object declarations
Remove private suspend functions create from UL
Add correct extension function parameter name
Add support for setparam annotation modifier
2019-12-10 18:26:08 +03:00
Toshiaki Kameyama
12f17a6724
"Add constructor parameters" quick fix should add default parameters from super class ( #2869 )
...
#KT-33109 Fixed
2019-12-10 13:09:31 +01:00
Mikhail Glukhikh
7d62e3ce56
FIR: fix hasTopLevelClassOf optimization in deserialized provider
...
Before this commit, we answered 'no top level class' if Java class finder
could not calculate known class names. However, it's incorrect,
because this situation means 'don't actually know'.
To precise semantics, function name was also inverted
2019-12-10 12:58:39 +03:00
Mikhail Glukhikh
fa89aa0b49
Do not use member scope provider from FIR resolution API
...
In this commit we build self importing scope from scratch.
Using member scope provider is probably incorrect because of possible changes.
At any invalidation we should rebuild it.
2019-12-10 12:58:39 +03:00
Mikhail Glukhikh
718a679b72
FIR IDE API: add preliminary control of file in-block modifications
...
In this commit, we build FirFile from the beginning if in-block modifications are detected.
However, better way would be to rebuild only part of FirFile in this case
2019-12-10 12:58:39 +03:00
Mikhail Glukhikh
83ccd7dd1c
FIR: implement separate diagnostic collector/reporter for IDE
2019-12-10 12:58:38 +03:00
Mikhail Glukhikh
fbf1dbf2da
FIR: introduce error message renderer
2019-12-10 12:58:38 +03:00
Mikhail Glukhikh
cd089658bd
IdeFirProvider: insert protection against ProcessCanceledException
2019-12-10 12:57:56 +03:00
Mikhail Glukhikh
fc117466a8
AbstractFirPsiCheckerTest: do partial error diagnostic comparison for some cases
2019-12-10 12:57:15 +03:00
Mikhail Glukhikh
4b251eb986
FIR IDE: lock FIR files before calling runResolve on them
...
This also fixes various synchronization problems
2019-12-10 12:57:13 +03:00
Mikhail Glukhikh
63121df6ba
Synchronized IdeFirProvider.getOrBuild file, don't share RawFirBuilder
...
Before this commit RawFirBuilder was reused,
that provoked a lot of synchronization problems
2019-12-10 12:57:13 +03:00
Mikhail Glukhikh
ccb343e26b
FIR: preliminary implementation of diagnostics highlighter (~30% supported)
2019-12-10 12:57:13 +03:00
Mikhail Glukhikh
34202faaa5
Code cleanup: KotlinPsiChecker
2019-12-10 12:57:12 +03:00
Mikhail Glukhikh
1d6d88b50c
FIR reference resolve test: observe mute tests which are actually passing
2019-12-10 12:57:12 +03:00
Mikhail Glukhikh
f8c86d2f9f
FIR reference resolve test: mute 37/107 cases which aren't yet supported
2019-12-10 12:57:11 +03:00
Mikhail Glukhikh
900227fdfa
KtReferenceResolver: implement resolveToPsiElements() via FE IR (~60% supported)
2019-12-10 12:57:11 +03:00
Mikhail Glukhikh
809b7d8381
FirResolution: store enabled value in field with initial reading from component
...
Before this commit, we read/wrote 'enabled' directly from PropertiesComponent.
Now we do only initial reading and then store modified value in field.
This should make 'enabled' reading faster.
2019-12-10 12:57:11 +03:00
Mikhail Glukhikh
0d2d76696c
Add FirResolution.enabled wrapper
2019-12-10 12:57:10 +03:00
Natalia Selezneva
b66fdad80c
Set since build to IDEA 192.7142.36 for 192 bunch
...
Fix compilation in idea-gradle module
Android Studio 3.6 doesn't still contain some of those changes
2019-12-10 09:16:27 +03:00