Simon Ogorodnik
2490318f93
KT-16076 Completion inserts FQN kotlin.text.String
...
KT-14831 Don't add import statement and FQN on converting lambda to reference if typealias is used
KT-16088 Completion wrongly inserts FQN for `kotlin` package
#KT-16076 fixed
#KT-14831 fixed
#KT-16088 fixed
2017-02-13 16:48:14 +03:00
Nikolay Krasko
2f0e7b54d5
Return old hack with returning null as file scope for standard scripts
...
(cherry picked from commit ef55bd1)
2017-02-07 15:16:04 +01:00
Dmitry Jemerov
faac1c3156
When calculating import candidates, skip redundant deduplication performed by PsiShortNamesCacheImpl
...
#KT-16071 Fixed
2017-02-01 12:23:16 +01:00
Simon Ogorodnik
c2ba4e3ab9
KT-14252 Completion could suggest constructors available via typealiases
...
#KT-14252 fixed
2017-01-31 15:14:18 +03:00
Nikolay Krasko
2add36ef32
Exclude errors descriptors from the set of conflicting declarations
...
Resolve hanging in evaluate expression
2017-01-30 21:28:59 +03:00
Simon Ogorodnik
d117b0210f
Revert "KT-14252 Completion could suggest constructors available via typealiases"
...
Reverted due problems with tests
This reverts commit 55eeb74c08 .
2017-01-30 16:46:38 +03:00
Simon Ogorodnik
55eeb74c08
KT-14252 Completion could suggest constructors available via typealiases
...
#KT-14252 fixed
2017-01-30 16:24:12 +03:00
Denis Zharkov
88b82d5fa2
Exclude coroutine inrinsics and internal packages
...
#KT-16018
2017-01-30 15:45:02 +03:00
Dmitry Jemerov
2342aeef49
Don't try to resolve a class with no containing file (such as LightBRClass) to descriptor (EA-91890 - (AS only, no containing file, from Java light classes) LET: GetModuleInfoKt$getModuleInfo$.invoke)
2017-01-27 12:47:41 +01:00
Simon Ogorodnik
3948c1e007
KT-15153 Support typeAlias extensions in completion and add import
...
#KT-15153 fixed
2017-01-25 20:47:48 +03:00
Simon Ogorodnik
32f1ce7551
Added "kotlin.reflect.jvm.internal" to excluded from completion and auto imports list
2017-01-25 17:45:59 +03:00
Simon Ogorodnik
4ca10c61fd
KT-11308 Hide kotlin.jvm.internal package contents from completion and auto-import
...
#KT-11308 fixed
2017-01-25 17:39:36 +03:00
Alexey Sedunov
8c882f0d27
Override Members: Allow overriding virtual synthetic members (e.g. equals(), hashCode(), toString(), etc.) in data classes
...
#KT-15563 Fixed
2017-01-13 15:17:35 +03:00
Simon Ogorodnik
0cf02dcb7b
KT-15092 Suppress inspection "use property access syntax" for some getters and fix completion for them
...
#KT-15092 fixed
2017-01-12 14:53:38 +03:00
Simon Ogorodnik
347c6e100b
Fix for KT-14736 J2K Incorrect conversion of back ticks in javadoc {@code} tag
...
#KT-14736 fixed
2017-01-10 16:20:58 +03:00
Nikolay Krasko
9f94caeb39
Resolve standard library calls in Kotlin scripts (KT-15383)
...
#KT-15383 Fixed
2017-01-09 19:58:00 +03:00
Nikolay Krasko
9f11564708
Deprecate version field and preserve order of script providers in extension point
...
It's impossible to guess the order of the final list when there're
providers from different vendors as they might have different versioning systems.
com.intellij.openapi.extensions.LoadingOrder constants can be used by plugins authors to
resolve priority issues.
2017-01-09 19:57:58 +03:00
Nikolay Krasko
0c2247ca41
Remove \r before lexer pass
...
\r aren't recognized by lexer and cause "Error: could not match input" warnings.
2017-01-09 19:57:56 +03:00
Yan Zhulanow
400759826f
Add DataBindingComponentShortNamesCache and DataBindingShortNamesCache to ignored caches for Java callables sources. Extract filteredShortNamesCaches property
2016-12-28 22:18:06 +03:00
Yan Zhulanow
6bff4a4ed4
Exclude BrShortNamesCache from processJvmCallablesByName() because of the severe lags in Java static member import quickfix. (KT-14308)
...
Also exclude Kotlin light classes cache because light classes are filtered out anyway.
2016-12-28 22:18:06 +03:00
Nikolay Krasko
654cecde69
Invalidate Script class finder caches as soon script classpath caches are invalidated (KT-14538)
...
#KT-14538 Fixed
2016-12-16 13:19:58 +03:00
Nikolay Krasko
f7b60e64c9
Run invalidating script caches when reindexing is ready (KT-14538)
...
Explanation why it leads to red code after new project opening
1. No script files are found after project initialization.
2. KotlinScriptDependenciesIndexableSetContributor triggers caching classpath via getAllScriptsClasspath(). Empty classpath is cached.
3. KotlinScriptDependenciesClassFinder.calcClassRoots() always get empty classpath.
#KT-14538 In Progress
2016-12-16 13:19:56 +03:00
Dmitry Jemerov
b5ad1e1be5
Check for file validity before calling findFileByRelativePath() (EA-92325 - IVFAE: VirtualDirectoryImpl.doFindChild)
2016-12-12 17:50:10 +01:00
Alexey Sedunov
475ae0d638
Rename: Suggest respective parameter name for the local variable passed to function
...
#KT-14792 Fixed
2016-12-02 14:14:10 +03:00
Nikolay Krasko
6a9c368532
Auto-import does not suggest enum constant (KT-14100)
...
#KT-14100 Fixed
(cherry picked from commit 61730ee)
2016-12-01 14:33:37 +03:00
Ilya Chernikov
5a25bd5e2d
Fix script configuration manager startup, fixes #EA-86126
2016-11-30 13:09:22 +01:00
Ilya Chernikov
c88b11aa27
Generalize error processing in retrieving gradle settings, fixes #EA-87096, #EA-87129, #EA-87275 and alike
2016-11-30 13:09:17 +01:00
Dmitry Jemerov
7f80a1faff
Workaround for Android databinding issue: apply extra scope filtering to classes returned from getClassesByName() (part of EA-75803 assert: ResolverForProjectImpl.descriptorForModule)
2016-11-23 18:29:26 +01:00
Dmitry Petrov
4c47d77a9f
Report error on non-top-level type aliases (unsupported in 1.1).
...
Get rid of nested type aliases in project.
2016-11-21 10:25:51 +03:00
Valentin Kipyatkov
9b55ad82a0
KT-14370 Completion inserts fully qualified name for any Java interface with single abstract method (SAM-interface)
...
#KT-14370 Fixed
2016-11-08 19:14:41 +03:00
Valentin Kipyatkov
b8981ec546
Minor
2016-11-08 19:14:41 +03:00
Valentin Kipyatkov
869b177823
Introduced KtExpression.analyzeAsReplacement() utility
2016-11-08 19:14:40 +03:00
Valentin Kipyatkov
e850446f17
Introduced BindingContext.DATA_FLOW_INFO_BEFORE
2016-11-08 19:14:40 +03:00
Valentin Kipyatkov
779ed32a4b
Renames + merged all back into module idea
2016-11-08 12:46:45 +03:00
Valentin Kipyatkov
02f4b883f9
One more code refactoring
2016-11-08 12:45:28 +03:00
Valentin Kipyatkov
29175e96e9
Code refactoring
2016-11-08 12:45:28 +03:00
Valentin Kipyatkov
6d3dd5d9b7
More uses of partial body resolve
2016-11-02 19:25:28 +03:00
Valentin Kipyatkov
8c99b0e64c
Performance fix for Import Member
2016-10-28 09:42:47 +03:00
Nikolay Krasko
d9ef8aa96f
Do nothing for disposed projects
2016-10-27 23:36:54 +02:00
Ilya Chernikov
2e03a6f1fd
Add script dependencies modification tracker, some optimizations
2016-10-27 23:36:54 +02:00
Alexander Udalov
0f4b10d37d
Add JavaToKotlinClassMap#isJavaPlatformClass
...
Use it instead of mapPlatformClass where we only need to check emptiness
because mapPlatformClass requires built-ins and it's not always easy to come up
with the correct instance of built-ins.
In KotlinEvaluationBuilder, use the nullable function
findClassAcrossModuleDependencies instead of mapPlatformClass which uses the
throwing resolveClassByFqName. This is necessary because DefaultBuiltIns, which
are used there, are not always able to find classes mapped by a _Java_ to
Kotlin class map. (The correct solution would be not to use DefaultBuiltIns at
all, instead obtaining the correct instance of built-ins, which are almost
certainly going to be JvmBuiltIns, from the project configuration.)
2016-10-25 15:42:32 +03:00
Dmitry Jemerov
32290ec1d3
add missing prepareForWrite() calls
2016-10-19 13:24:42 +02:00
Alexey Sedunov
cf69f1a946
Rename: Do not suggest type-based names for functions with primitive return types
...
#KT-14234 Fixed
2016-10-18 16:48:09 +03:00
Simon Ogorodnik
d731f97c7d
Fix KT-13021, KT-13020, Test for already fixed KT-6941
...
Fixes on javadoc to kdoc comments convert
2016-10-13 18:52:31 +03:00
Valentin Kipyatkov
7b12dd498f
KT-13780 No completion and assertion error in log
...
#KT-13780 Fixed
2016-10-13 15:10:53 +03:00
Ilya Chernikov
846797ff61
Switch to templates in the separate script runtime
2016-10-12 15:38:52 +02:00
Ilya Chernikov
fe69185cd4
Refactor script definition and related parts:
...
- simplify script definition interface, convert it to class
- create simple definitions right from base
- refactor (rename and simplify) script definition with annotated template
- simplify usages of script definition in many places
2016-10-12 15:37:50 +02:00
Ilya Chernikov
63c5133167
Remove support for xml-based script configs, other minor refactorings
2016-10-12 15:37:47 +02:00
Ilya Chernikov
0f31695a0b
Convert error on retrieving gradle plugin settings to warning - fixes #KT-13975, #EA-87275, #EA-87677 and alike
2016-10-12 15:37:47 +02:00
Simon Ogorodnik
1a7c507cc5
Fix for KT-13818
...
Javadoc @code conversion
2016-10-12 11:08:49 +03:00