Dmitry Gridin
8dbbd64beb
idea: cleanup code
2019-12-17 13:56:48 +07:00
Natalia Selezneva
e77d8657f4
Fix configuration for AS 3.5
2019-12-16 23:17:33 +03:00
Natalia Selezneva
38b0de4ab6
Scripting: do not start multiple request when related file was changed
2019-12-16 14:55:50 +03:00
Natalia Selezneva
fba17d5b9a
Minor, tests: clear memory cache in tests that check scripting file attributes
2019-12-16 14:55:49 +03:00
Natalia Selezneva
780c61dc16
Fix line separators in tests
2019-12-16 14:55:47 +03:00
Natalia Selezneva
31887d2fd1
Scripting: check if affected scripts are changed using file modification stamp instead of mark them out of date in cache
...
^KT-35205 Fixed
2019-12-16 14:55:47 +03:00
Natalia Selezneva
ec04f0059c
Scripting: do not threat comments and spaces as modifications inside essential block
2019-12-16 14:55:46 +03:00
Natalia Selezneva
2f35d6d868
Scripting: save inputs stamp and diagnostics to file attributes
...
Check if they are up to date and initiate configuration update only in case they are out of date
^KT-35205
2019-12-16 14:55:45 +03:00
Natalia Selezneva
13b4e8716c
Changes inside initscript and pluginManagement blocks should invalidate script configuration
...
^KT-35129 Fixed
2019-12-16 14:55:43 +03:00
Natalia Selezneva
d68c3584f2
Scripting: add test for loading configuration for gradle scripts
2019-12-16 14:55:42 +03:00
Natalia Selezneva
424a2c72b2
Implement KotlinWordsScanner
...
This will allow to correctly calculate the file modification crc based on it. this is needed for build.gradle.kts files which show notification about necessity of importing project. Otherwise this notification is shown on every file modification (after virtualFile save)
2019-12-16 14:55:41 +03:00
Natalia Selezneva
886e9613b8
Move script related extensions to separate xml-s
2019-12-16 14:55:40 +03:00
Natalia Selezneva
2e933507c6
Fix duplicated “Kotlin Script” definition for Gradle/Kotlin projects (KT-35096)
...
^KT-35096 Fixed
2019-12-16 14:55:40 +03:00
Sergey Rostov
ac81f046fd
gradle.kts importing test: don't run on 191 (including as34)
2019-12-16 12:59:02 +03:00
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