Dmitry Jemerov
7f1dd88600
KtLightParameter: convert to .kt and cleanup
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
98d26ae59f
KtLightElementParameter: rename to .kt
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
cde84a7923
Handle I/O exceptions when updating library jars
...
EA-101940 - FNFE: FileUtil.openOutputStream
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
254f766aaf
Take longer read action in forEachKotlinOverride()
...
EA-114124 - assert: CompositeElement.getChildrenAsPsiElements
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
768fce4722
Check for project disposed when reporting outdated libraries
...
EA-106858 - assert: ComponentManagerImpl.getPicoContainer
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
cc2faa67f9
Don't pass null element to RefactoringFactory.createRename()
...
EA-114286 - IAE: RenameProcessor.$$$reportNull$$$
2017-12-29 10:19:50 +01:00
Dmitry Jemerov
9a156541c1
Don't try to read attribute for files with no ID
...
(EA-114351 - CCE: PersistentFSImpl.getFileId)
2017-12-29 10:19:50 +01:00
Toshiaki Kameyama
5e765c525e
Do not suggest quickfix 'Specify type explicitly' with existing type
...
So #KT-15180 Fixed
2017-12-28 21:06:48 +03:00
Mikhail Glukhikh
5475f99cec
Elvis -> if-then: handle case with safe cast separately #KT-17816 Fixed
2017-12-28 20:31:55 +03:00
Mikhail Glukhikh
ec60c92fe9
Lambda -> reference: build bound reference for complex qualified
...
So #KT-19073 Fixed
2017-12-28 20:31:53 +03:00
Mikhail Glukhikh
73bca21f94
Allow using add modifier quick-fixes in batch mode #KT-21950 Fixed
2017-12-28 20:31:47 +03:00
Mikhail Glukhikh
2e71691ab2
Fix potential leak in "unused lambda expression body" fix
2017-12-28 20:31:45 +03:00
Mikhail Glukhikh
8e23ca597d
Add extra tests for KT-20429, simplify code a bit
2017-12-28 20:31:44 +03:00
Toshiaki Kameyama
a65304556c
CFG: provide "used as expression" in enum constant constructor
...
This allows to avoid
"unused return value of a function with lambda expression body"
for such a situation
So #KT-20429 Fixed
2017-12-28 20:31:42 +03:00
Mikhail Glukhikh
e10fa218f5
Extend range of "use expression body" to left brace..end of return
...
Range is extended iff we are in DO_NOT_SHOW case,
otherwise just return is highlighted to avoid ugly highlighting
So #KT-19771 Fixed
2017-12-28 20:31:41 +03:00
Mikhail Glukhikh
95e7d29743
Minor: improve style in "operator to function"
2017-12-28 20:31:40 +03:00
Toshiaki Kameyama
52df70a576
Do not suggest replacing comparison to null with function call
...
So #KT-20620 Fixed
2017-12-28 20:31:38 +03:00
Mikhail Glukhikh
d7807b5ae3
Do not report "redundant Unit return type" on expression bodies
...
So #KT-21983 Fixed
2017-12-28 20:31:37 +03:00
Mikhail Glukhikh
232ec63121
Inline dialog: handle case with unknown occurrence number correctly
...
So #KT-21963 Fixed
2017-12-28 20:31:36 +03:00
Mikhail Glukhikh
947e853d9e
Inline dialog: show "inline all and keep" for occurred once declarations
...
So #KT-21964 Fixed
2017-12-28 20:31:35 +03:00
Mikhail Glukhikh
d5bb7e457e
Inline dialog: unify messages with each other #KT-21965 Fixed
2017-12-28 20:31:33 +03:00
Mikhail Glukhikh
3f00592443
Do not suggest "convert ref to lambda" for reflect types #KT-19283 Fixed
2017-12-28 20:31:27 +03:00
Mikhail Glukhikh
fc93e7a727
Do not report "redundant suspend" on override / open #KT-21938 Fixed
2017-12-28 20:31:24 +03:00
Sergey Igushkin
276a6acc3e
Use .withDependencies { ... } to set up default versions with Gradle 4.4
...
+ Improve the test for omitted Kotlin module versions.
Issues: #KT-21806 Fixed, #KT-21203 Fixed
2017-12-28 19:47:02 +03:00
Vyacheslav Gerasimov
8b7a8f7bef
Update changelog for 1.2.20
2017-12-28 16:15:54 +03:00
Dmitry Jemerov
fc51673c83
Update copyright profile
2017-12-28 10:47:43 +01:00
Ilya Chernikov
efc470df2b
Reading KOTLIN_HOME only once
...
may fix #KT-21145, or at least make it less flaky
2017-12-28 09:43:44 +01:00
Ilya Chernikov
945da50b61
Add kotlin-compiler-client-embeddable to the plugin's lib since...
...
it's used in the `KotlinJsr223JvmScriptEngine4Idea`
Fixes #KT-18613
2017-12-28 09:43:43 +01:00
Vyacheslav Gerasimov
6116b5c497
Update coroutines version to 0.20
2017-12-28 00:35:15 +03:00
Ilya Gorbunov
042f81f23b
Fix Volatile usages in common and JS code
2017-12-27 21:55:24 +03:00
Ilya Gorbunov
a33a3867b8
JS: Move declaration to match their packages in JVM and Common stdlib
...
Mostly internal, but also two public annotations
2017-12-27 21:55:24 +03:00
Ilya Gorbunov
d2eb8b4a3f
Do not compile SynchronizedLazyImpl for platforms other than JVM
2017-12-27 21:55:24 +03:00
Ilya Gorbunov
b6595d661d
Improve expect declarations in kotlin.text
...
- Replace overloads with default parameters in expect declarations by suppressing errors
- Remove meaningless inline modifier
2017-12-27 21:55:24 +03:00
Ilya Gorbunov
824b506abe
Remove inheritance between LinkedHashSet/Map and HashSet/Map
2017-12-27 21:55:24 +03:00
Ilya Gorbunov
c5c6eed170
Make common ArrayList declaration not open and implementing RandomAccess
2017-12-27 21:55:24 +03:00
Ilya Gorbunov
fb13347864
Extract kotlin.collections expect classes into separate files
...
Add missing expect declarations for AbstractMutableMap/Set.
2017-12-27 21:55:24 +03:00
Ilya Gorbunov
93ef16deaf
Move expect declarations to the appropriate packages
...
So that they match actual declarations in Kotlin/JVM stdlib.
2017-12-27 21:55:24 +03:00
Pavel V. Talanov
dd32c4e66a
Revert minor semantic differences introduced in c030a047aa
...
Fix 'pull members up' and 'kotlin injected into kotlin' tests
2017-12-27 20:24:26 +03:00
Anton Bannykh
2df85ae4a9
kotlin-test-js: pass test function result to test framework (e.g. Promise)
2017-12-27 19:57:49 +03:00
Anton Bannykh
3e0d83b7d1
Make :js:npm a separate project to avoid calling update_dependencies
2017-12-27 17:35:34 +03:00
Alexander Udalov
129fad6ade
Minor, merge two KotlinCoreEnvironment-creating functions
2017-12-27 14:50:04 +01:00
Alexander Udalov
613297ad60
Rename ModuleScriptData -> ModuleChunk and refactor related code
...
Use the term "build file" instead of the old "module"/"module script"
2017-12-27 14:50:03 +01:00
Alexander Udalov
f3f8db989a
Fix test data for annotations on DefaultImpls members
...
After ea5505f80c , the annotations are now generated correctly
2017-12-27 14:12:14 +01:00
Chris Povirk
ac87ad422d
Recognize Checker Framework declaration annotations.
...
We are migrating Guava to use these annotations rather than jsr305's
@Nullable. We can't use the Checker Framework's _@Nullable_ yet because
we promise compatibility with Java 7, which doesn't support type
annotations. This is related to but distinct from
https://youtrack.jetbrains.com/issue/KT-21408 , which is about a
different jsr305 annotation we use, @ParametersAreNonnullByDefault.
I've also updated some docs to mention Kotlin's existing support for the
Checker Framework _@NonNull_.
2017-12-27 13:23:06 +01:00
Anton Bannykh
79359b7bc2
JS: test kotlin-test as box tests, support nested, fix mpp
...
Support tests inside nested classes and companion objects (KT-21850
fixed).
Don't launch multiplatform tests twice (KT-21567 fixed).
2017-12-27 15:22:26 +03:00
Nikolay Krasko
3bf8436895
Fix licence check after "jetbrains/kotlin/idea/copyright" package move
2017-12-27 13:44:55 +03:00
Nikolay Krasko
b7ff00ec34
Remove author tag from JavaSdkUtil to fix CodeConformanceTest
2017-12-27 13:27:59 +03:00
Nikolay Krasko
419abadcda
Search for Kotlin sources in project too in fallback scope
...
When debugging in Gradle or Maven we may miss debug scope completely,
but still want to be responsible for building source positions for all
Kotlin source files (other PositionManagers may produce unexpected
results).
2017-12-27 01:09:53 +03:00
Ilya Gorbunov
f468990f97
Add racing version of each Lazy test
...
Run several concurrent accesses to a lazy value
many times and validate invariants.
2017-12-26 23:14:11 +03:00
Ilya Gorbunov
4827aadcfd
Improve stability of lazy test, make some tests take less time
2017-12-26 23:14:09 +03:00