Vyacheslav Gerasimov
10c14260b1
Build: Fix dependency on markdown in :prepare:idea-plugin
...
org.jetbrains:markdown brings kotlin-stdlib dependency transitively, which resolves to default configuration of :kotlin-stdlib project. But we need to pack jar from distJar configuration. Also sourceSets.builtins.output is copied to plugin because :kotlin-stdlib has compile dependency on it. Probably we should also refactor :kotlin-stdlib to avoid such confusions in future.
2018-03-30 20:10:20 +03:00
Vyacheslav Gerasimov
22496353b6
Fix KotlinReferenceImporter, add safe call to quickFixActionRanges
...
HighlightInfo.quickFixActionRanges is nullable in 181
2018-03-30 17:05:55 +03:00
Ilya Gorbunov
d2a235b752
Minor code improvements, add more test cases #KT-11208
...
Compare new readLine with the reference implementation in BufferedReader.
2018-03-30 16:04:22 +03:00
meztihn
12e427b4b5
KT-11208 Remove readLine's new charset parameter
...
It can't be introduced in a patch release.
2018-03-30 16:03:19 +03:00
meztihn
cca7a59bba
KT-11208 Improve readLine's tests readability
2018-03-30 16:03:19 +03:00
meztihn
68cb66ff0e
KT-11208 Remove readLine's lineSeparator parameter
2018-03-30 16:03:19 +03:00
meztihn
f6c1886394
KT-11208 Remove stream buffering
2018-03-30 16:03:19 +03:00
Ilya Gorbunov
f45e3ac7d9
kotlin-stldib-js: do not import experimental sourceset in IDEA
...
Temporary workaround to prevent multiple IDEA modules sharing the same content root error.
2018-03-30 16:03:19 +03:00
Sergey Mashkov
42de429565
IDL2K: add property to control deployment
2018-03-30 15:13:42 +03:00
Mikhail Zarechenskiy
0632bbbed0
Nullability of intersection type should be determined by supertypes
...
Intersection types cannot be nullable as is because of special rules for subtyping
2018-03-30 14:51:07 +03:00
Mikhail Zarechenskiy
aebcb61402
Resolve elements in chain of qualifier expression without expected type
...
Consider call chain `foo.bar.baz()` which has expected type `Int`
Elements `foo` and `bar` doesn't have expected type `Int`,
this is especially important in NI, because we use expected type for
candidate applicability
2018-03-30 14:51:07 +03:00
Natalia Selezneva
3d73786e98
Highlight scripts according to ScriptLocation annotation in ScriptDefinition
2018-03-30 14:43:17 +03:00
Natalia Selezneva
15914dac86
Add ScriptExpectedLocations annotation to script-runtime.
...
It describes where script file can be found.
2018-03-30 14:43:17 +03:00
Natalia Selezneva
27f1eb1e13
Do not reload dependencies for scripts that wasn't recently touched
2018-03-30 14:43:17 +03:00
Natalia Selezneva
f52441d64e
Do not show "Gradle Project needs to be imported" notification for gradle script if only spaces are added
2018-03-30 14:43:17 +03:00
Alexey Sedunov
b0a99c7945
Move Out Of Object Intention: Fix assertion error
...
#KT-22983 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov
14b1bdf627
Rename: Fix renaming of backquoted property accessors
...
#KT-23298 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov
2104a0fa2b
Extract Function: Drop extra space in modifier list
...
#KT-23274 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov
0a0043a851
Convert Function to Property: Forbid for properties with both initializer and getter
...
#KT-23293 Fixed
2018-03-30 12:37:29 +03:00
Alexey Sedunov
43b4a496e3
Rename: Increase precedence of RenameSyntheticDeclarationByReferenceHandler
...
Otherwise it's not applicable references to Java declarations
#KT-20241 Fixed
2018-03-30 12:37:29 +03:00
Anton Bannykh
a514c0f515
JS IR: initial lowerings reuse
2018-03-29 20:32:10 +03:00
Nikolay Krasko
6adf7eaf04
Check stubs consistency in decompiler tests
2018-03-29 19:49:02 +03:00
Nikolay Krasko
dbab5bcc58
Delete bundled Kotlin plugin from different kind of AS jar/zip
2018-03-29 19:49:01 +03:00
Nikolay Krasko
70d236cb8d
Always configure "idea.home.path" system variable
...
When TestLoggerFactory is initialized in tests it checks that variable
and it it's not present uses classpath to search for logger configuration.
If this search is unsuccessful a lot of exceptions are written to log:
java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:96)
at com.intellij.testFramework.TestLoggerFactory.reconfigure(TestLoggerFactory.java:67)
2018-03-29 19:49:00 +03:00
Alexander Udalov
5d9348eea1
Sanitize compiler version for version requirement checks
...
Strip everything after (and including) the first '-' character.
The previous approach of skipping the checks if "SNAPSHOT" is in the
version, is subsumed by the new one because "1.2-SNAPSHOT" now becomes
"1.2" with regards to the version requirement checks, which allows the
compiler to use the 1.2-only API
2018-03-29 17:12:18 +02:00
Alexander Podkhalyuzin
b78869ecfc
Fixed aliased imports cache #KT-23430 Fixed
2018-03-29 16:05:00 +02:00
Nikolay Krasko
6a71f5bd2c
Restore JUnit3RunnerWithInners version for JPS and delegate pill to it
2018-03-29 14:14:34 +03:00
Nikolay Krasko
9a831bf7dd
Collect statistics for inlay parameter options
2018-03-29 14:14:34 +03:00
Nikolay Krasko
8d4fa8f3e8
Stop running tests from inner classes in JUnit3RunnerWithInners (KT-23234)
...
Running tests as part of parent class produced test names on
TeamCity that were different from test names obtained when inner classes
were executed first. And it looks like test order execution in Gradle
depends on file walker and file system.
#KT-23234 Fixed
2018-03-29 14:14:34 +03:00
Nikolay Krasko
bf8c7075bc
Don't spam to error log from kapt3 successful tests
2018-03-29 14:14:33 +03:00
Dmitry Jemerov
9516c638ea
Use more efficient file type check (avoid identifying file type by file)
2018-03-29 13:11:37 +02:00
Dmitry Jemerov
85ebe97597
Avoid unnecessary collection copy (KT-23384)
2018-03-29 13:11:36 +02:00
Dmitry Jemerov
6f1881b9ff
Import reference at offset uses existing import fix (KT-23235)
...
If we have a valid autoimport fix at given offset, don't recalculate
variants; use existing ones
2018-03-29 13:11:36 +02:00
Dmitry Jemerov
5b04d99eeb
Return null script if stub tells us file is not a script
2018-03-29 13:11:36 +02:00
Roman Artemev
68e47a9d60
Implement basic IR -> JS class translation
2018-03-29 13:26:04 +03:00
Mikhail Zarechenskiy
e70162771d
[NI] Fix exception from IDE completion
...
Fake arguments that are created for completion might have missing PSI parts (see `DummyArgument`)
2018-03-29 13:13:39 +03:00
Mikhail Glukhikh
05db4b3ccf
Optimization: LeakingThisInspection
2018-03-29 11:39:10 +02:00
Mikhail Glukhikh
5e9ca6f466
Optimization: AddVarianceModifierInspection
2018-03-29 11:39:09 +02:00
Mikhail Glukhikh
34de241154
Add inspection to detect public API with implicit type
2018-03-29 11:39:01 +02:00
Dmitry Jemerov
6a619d0aa5
Ensure that multiplatform Gradle task runner runs first
...
In order to have effect, the runner needs to be registered before the
main Gradle runner, which also has order="first" in plugin.xml.
2018-03-29 09:50:34 +02:00
Dmitry Jemerov
8f19e95bd0
Set SDK from JVM module when running JUnit tests for common module
2018-03-29 09:50:34 +02:00
Dmitry Jemerov
6bee25cad2
Reformat
2018-03-29 09:50:34 +02:00
Dmitry Jemerov
20cd193030
Delete remains of external annotations support from compiler
2018-03-29 09:45:07 +02:00
Zalim Bashorov
9349b9bc67
[JS BE] Fix the crash on compound operations with a qualified call on left side
...
#KT-22001 Fixed
2018-03-28 22:49:09 +03:00
Alexander Udalov
c3b6abfb1f
Minor, add javadoc to KotlinBuiltIns.isBuiltIn
2018-03-28 19:48:50 +02:00
Zalim Bashorov
4d742c5266
Add more tests to JS IR whitelist and regenerate tests
2018-03-28 20:33:23 +03:00
Zalim Bashorov
0aa0ffc6fd
[JS IR BE] Add generating JS AST for more IR elements:
...
* string concat
* get local value
* set local variable
* block
* composite block
2018-03-28 20:33:22 +03:00
Zalim Bashorov
7ae28a806b
[JS IR BE] Add generating JS AST for "while" and "do-while"
2018-03-28 20:33:22 +03:00
Zalim Bashorov
52e2fb7a4e
[JS IR BE] Add generating JS AST for "when"
2018-03-28 20:33:22 +03:00
Zalim Bashorov
d46bba1521
[JS IR BE] Support must of kinds of constants except Long and Char
2018-03-28 20:33:22 +03:00