Alexander Podkhalyuzin
23fa21d37e
getUsages -> getMetrics in FUSCollectors
...
#KT-35918 Comment
2020-02-06 16:25:06 +01:00
Roman Golyshev
31315e2c45
Add plugin_version and file_type features for ML completion
...
- This is required to be able to use ML completion infrastructure to monitor code completion quality (even without ML enhancement)
2020-02-05 12:19:49 +03:00
Dmitriy Dolovov
3b33df6564
Reduce external dependencies in :kotlin-native:kotlin-native-library-reader
2020-01-29 15:29:49 +07:00
Mikhail Zarechenskiy
0530f9ed1c
Refactoring: generify and remove duplicated code
2020-01-27 11:03:57 +03:00
Mikhail Zarechenskiy
02387e77dd
Refactoring: rename SamConversionTransformer -> SamConversionOracle
2020-01-27 11:03:56 +03:00
Mikhail Zarechenskiy
00469712d1
[NI] Don't use only platform specific checks for FIC in inference
2020-01-27 11:03:55 +03:00
Anton Yalyshev
90fe1bb1ab
Enable FUS for Code Completion in 1.3.70
2020-01-24 16:05:20 +03:00
Natalia Selezneva
a55a0d94de
Scripts: clear manual configuration loading state after project import
...
^KT-35268
2020-01-24 11:52:57 +03:00
Ilya Kirillov
35076eb559
Wizard: add FUS statistic collection
2020-01-24 11:13:01 +03:00
Andrey Uskov
beb3165839
Added FUS extensions and new metrics for reporting statistics from gradle
2020-01-23 20:47:21 +03:00
Anton Yalyshev
7c0d8ad6c7
Add languageVersion tracking to FUS
2020-01-23 14:21:05 +03:00
Natalia Selezneva
858698cf9a
Provide a notification for gradle script that aren't related to any gradle project (KT-35268)
...
Add action to load/reload configuration for them manually
^KT-35268 Fixed
2020-01-23 11:12:54 +03:00
Natalia Selezneva
a373ab96d4
Implement persistent storage for script class path roots (KT-35886)
...
Save absolute paths instead of getCanonicalPath usages
^KT-34444
^KT-35886 Fixed
2020-01-23 11:06:01 +03:00
Natalia Selezneva
a24e62eaf7
Scripting: do not call getConfiguration inside ScriptClassRootsCache
...
We already have all configurations inside `all` property.
If script doesn't have loaded configuration getting script sdk - ask for configuration explicitly to avoid situations when configuration is already loaded but not yet saved in memory cache
Looks related to KT-35590
^KT-35590
2020-01-21 10:07:25 +03:00
Yan Zhulanow
9782f6808d
Minor: Fix deprecation notice in KotlinIndicesHelperExtension
2020-01-20 17:42:00 +09:00
Nikolay Krasko
f01b4706d1
Switch to 193 platform
2020-01-19 12:01:53 +03:00
Roman Golyshev
4b50fb18fb
KT-35258 Add better completion for MixedNamedArgumentsInTheirOwnPosition feature
...
- When named parameter is on its own position, the completion of the next argument will not be limited by named arguments only
- The completion will not suggest already used arguments names
- ^KT-35258 Fixed
2020-01-17 12:06:08 +03:00
Roman Golyshev
bd713db70e
KT-35258 Refactor mapArgumentsToParameters
...
- We assume that, if method has no stable parameters names, `parametersByName` should be empty
2020-01-17 12:01:44 +03:00
Roman Golyshev
42deb7db48
KT-34582 Exclude kotlin.coroutines.experimental package from completion and auto-import
...
- Exclusion happens only when `ReleaseCoroutines` feature is supported
- Add `LANGUAGE_VERSION` to few tests to make sure that previous exclusions still work when `experimental` package is not excluded entirely
- ^KT-34582 Fixed
2019-12-29 15:35:49 +03:00
Natalia Selezneva
6bf0e4b1a9
Simplify check for that gradle script configurations is up to date
...
Get time stamp for script inputs before gradle import
2019-12-27 15:57:11 +03:00
Vyacheslav Gerasimov
68f1d91e1b
as40: Upgrade to AS 4.0 C7
2019-12-25 20:19:36 +03:00
Toshiaki Kameyama
fabeca5955
Redundant curly braces in string template: do not report labeled 'this'
...
#KT-35475 Fixed
2019-12-24 14:46:46 +07:00
Michael Kuzmin
254dc8f71c
Build: Drop IntelliJ 2018.3 and Android Studio 3.4 support
...
Delete *.183 and *.as34 bunch-files
2019-12-19 18:31:07 +03:00
Simon Ogorodnik
05308a3652
[FIR] Introduce module for all jvm extensions
2019-12-19 17:30:12 +03:00
Natalia Selezneva
233d400e93
Scripting: remove unexpected cache clear
2019-12-19 11:52:26 +03:00
Alexander Udalov
cdbabf224f
Introduce RequiresOptIn and OptIn annotations
...
RequiresOptIn should be used now instead of Experimental, OptIn instead
of UseExperimental. See https://github.com/Kotlin/KEEP/pull/201 .
This change adds the new declarations only to the stdlib, and supports
them in the compiler. Because of the way compiler loads annotations, we
need to bootstrap it first before deprecating the old annotations and
updating tests.
#KT-34647 Fixed
2019-12-17 18:17:48 +01:00
Dmitry Gridin
8dbbd64beb
idea: cleanup code
2019-12-17 13:56:48 +07: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
d68c3584f2
Scripting: add test for loading configuration for gradle scripts
2019-12-16 14:55:42 +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
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
Ilya Chernikov
b8034567ef
Change script definition lookup key from File to ScriptSource
...
to make it more generic and allow easier implementation fo the
non-file based scripts.
2019-12-02 16:46:54 +01:00
Anton Yalyshev
1bbd17c4d6
Turn off FUS data sending in 1.3.61+ as we as we sent enough in 1.3.60
2019-11-27 18:42:42 +03:00
Anton Yalyshev
ffa0896592
Minor correction of attributes naming
2019-11-27 16:59:27 +03:00
Anton Yalyshev
c57c9b2e63
Prepare data for successful FUS Whitelist parsing
2019-11-27 16:59:27 +03:00
Natalia Selezneva
c9cb4dff52
Scripting: introduce ide-specific comparision of script compilation configurations (KT-34626)
...
Do not take into account fields that doesn't affect IDE
Also it will threat configurations from old and new scripting API as similar
FIt will make sense for script dependencies loaded using Gradle TAPI (new Scripting API) and Old Scripting API
^KT-34626
2019-11-27 11:08:45 +03:00
Natalia Selezneva
72e99b5863
Scripting: avoid just in case configuration requests to Gradle (KT-34442)
...
Listen to changes in files that may affect gradle configuration
Remove configuration request if none of such file was changed since last request
^KT-34442 Fixed
2019-11-27 11:08:44 +03:00
Dmitriy Dolovov
58dd9a6004
Fix AWT freeze in KotlinNativeABICompatibilityChecker (part 2)
...
Issue #KT-35052
2019-11-25 09:07:09 +07:00
Sergey Rostov
75a23b4bc4
Minor: changes after review
2019-11-22 11:43:35 +03:00
Sergey Rostov
fc100d13dd
Scripting: move gradle specific logic to idea-gradle
2019-11-22 11:43:34 +03:00
Sergey Rostov
0fb58ed94c
Scripting loading tests and extension points
2019-11-22 11:43:34 +03:00
Natalia Selezneva
ca71b2fe90
Add script configuration dependencies to script classpath
...
It was missing during configuration refinement thought new scripting API and during loading script configuration on Gradle project import
Do not pass additional classpath to configuration classpath: this may only affects Gradle with New scripting API (because it isn't used from other places)
In additional classpath kotlin-compiler and kotlin-stdlib was passed and there is no needs for this during loading Script Definitions through new scripting API
^KT-34626 Fixed
2019-11-22 11:43:34 +03:00
Sergey Rostov
c905bbca36
Scripting: invalidate caches on roots changes
2019-11-14 14:01:30 +03:00
Sergey Rostov
b757224df1
Scripting: invalidate caches on roots changes
2019-11-14 09:50:03 +03:00
Sergey Rostov
df0c250fd8
Scripting: fix lost caches clearing call
2019-11-14 09:50:03 +03:00
Sergey Rostov
542f21b701
Scripting, minor: cache firstScriptSdk
2019-11-14 09:50:03 +03:00
Sergey Rostov
b4185c9d47
ScriptClassRootsCache: load configuration if it is not cached
2019-11-13 12:39:02 +03:00
Sergey Rostov
a84e948051
Scripting: pass KtFile to ScriptConfigurationLoader
2019-11-13 12:39:02 +03:00
Natalia Selezneva
42cb53a380
Always apply new script configuration in tests
2019-11-11 15:15:17 +03:00