Commit Graph

45951 Commits

Author SHA1 Message Date
Nicolay Mitropolsky 31b21a7bc8 182: compilation fix due to quickFixActionMarkers made nullble 2018-05-14 15:05:03 +03:00
Ilya Chernikov b3219cb762 Implement lazy script definition and light discovery in cli plugin, ...
update appropriate parts of the scripting infrastructure
2018-05-14 11:13:44 +02:00
Dmitry Petrov 0feb50021c IrClass.isInner 2018-05-14 10:37:27 +03:00
Natalia Selezneva 1e92dbf806 Fix tests: attach script reports in cli 2018-05-14 09:21:09 +03:00
Ilya Chernikov f89d5e94c5 Fix build in 182 branch 2018-05-13 10:59:47 +02:00
Ilya Chernikov c74924fb8c Fix lz4 dependency...
after snappy was replaced by lz4 in the platform (see the previous commit
with related test for the more info)
2018-05-12 19:02:04 +02:00
Alexey Tsvetkov 38ffd6f85e Add test for missing lz4 dependency
Adds Gradle test for the exception:
`java.lang.ClassNotFoundException: net.jpountz.lz4.LZ4Factory`

The exception breaks IC in Gradle. Gradle compiles non-incrementally as
a fallback strategy, so the build succeeds, but IC is not working.

IC uses persistent hash tables from Intellij as caches.
These tables's buffers are compressed when full.
Previously snappy was used for compression, but 181 platform switched to
LZ4, which was cut out by proguard.

The problem could only be reproduced with Gradle,
since in JPS plugin all caches are managed by JPS process,
which contains the necessary library.

To reproduce the compiler needs to be processed by proguard
(which always happens on TeamCity).
Many classes are needed to trigger the compression.
2018-05-12 19:02:04 +02:00
Vyacheslav Karpukhin e329af0932 Excluded declarations for classes in CIDR plugin.xml 2018-05-11 19:43:21 +02:00
Zalim Bashorov 0ca6dbcb82 [JS IR BE] remove no longer needed descriptor based utils 2018-05-11 20:27:54 +03:00
Roman Artemev c9b8aadfff Update test data 2018-05-11 18:50:41 +03:00
Natalia Selezneva 4ee0f401c6 Fix master_172
Remove GradleScriptDefaultDependenciesProvider as unused
2018-05-11 18:46:54 +03:00
Mikhail Glukhikh 1012bdb577 Convert to primary constructor: minor enhancement (KT-19629) 2018-05-11 18:17:42 +03:00
Mikhail Glukhikh 67d2abbe5e Reformat: Convert to primary constructor 2018-05-11 17:36:41 +03:00
Toshiaki Kameyama a41064295b "Convert to primary constructor": do not move init section down
So #KT-19629 Fixed
2018-05-11 17:36:40 +03:00
Mikhail Glukhikh 9a1253c5c7 Specify type explicitly: suggest also types from overridden
So #KT-22092 Fixed
2018-05-11 17:36:38 +03:00
Mikhail Glukhikh bf15d22ef1 Reformat: SpecifyTypeExplicitlyIntention 2018-05-11 17:36:37 +03:00
Mikhail Glukhikh 13be7803bb Introduce "redundant async" inspection #KT-24235 Fixed 2018-05-11 17:36:35 +03:00
Mikhail Glukhikh 365c13c38e Extract AbstractCallChainChecker from SimplifiableCallChainInspection 2018-05-11 17:36:29 +03:00
Mikhail Glukhikh 9fa352e5c0 Reformat: simplifiable call chain inspection 2018-05-11 17:36:26 +03:00
Pavel V. Talanov a584de8a7e Prefer platform specific declarations when searching for library sources
Untested: test infrastructure needed

 #KT-23223 Fixed
2018-05-11 16:25:16 +02:00
Pavel V. Talanov f6b094781f Mpp resolve: ignore module dependencies on libraries of other platforms
These are not read by the compiler

Untested: test infrastructure needed

 #KT-20406 Fixed
2018-05-11 16:25:14 +02:00
Roman Artemev 24e477c378 Update test data 2018-05-11 17:14:30 +03:00
Roman Artemev 131fb642aa Fix initializer lowering crash during deep copy 2018-05-11 17:14:30 +03:00
Toshiaki Kameyama 449943da01 "Merge with next when": made applicable when delimited by ';' or comment
So #KT-12042 Fixed
2018-05-11 16:37:36 +03:00
Toshiaki Kameyama cdbd7a7c5a Reformat MergeWhenIntention 2018-05-11 16:36:57 +03:00
Toshiaki Kameyama 4ee9db7a6c Use property access: suppress for reserved words #KT-23775 Fixed 2018-05-11 16:32:44 +03:00
Toshiaki Kameyama 240b9fd97a Reformat: UsePropertyAccessSyntaxIntention 2018-05-11 16:32:06 +03:00
Derek c12bd9b506 fix gradle license path (#1658) 2018-05-11 16:08:40 +03:00
Alexey Sedunov 805010e75c Misc: Permit refactorings/intentions/quick fixes inside script files
#KT-20123 Fixed
2018-05-11 16:05:20 +03:00
Alexey Sedunov a5a13b74f5 Create from Usage: Support smart casts on explicit receivers
#KT-24069 Fixed
2018-05-11 16:05:20 +03:00
Alexey Sedunov a92a4a2a6d Add Parameter Fix: Support smart casts
#KT-24207 Fixed
2018-05-11 16:05:19 +03:00
Alexey Sedunov a4a10c7ba4 Create from Usage: Fix generation of extensions with nullable receiver
#KT-23796 Fixed
2018-05-11 16:05:19 +03:00
Alexey Sedunov 4e3c1e9f56 Rename: Do not search text occurrences of local declarations
#KT-23838 Fixed
2018-05-11 16:05:19 +03:00
Derek f8111c9f23 fix bullet point indentation in license readme (#1659) 2018-05-11 16:04:45 +03:00
Sergey Igushkin 2a46648e3e In Android MPP target, add common module dependency to api configuration
Since Android considers the `compile` configuration as deprecated and
reports a warning when a dependency is added to it, use the `api`
configuration when dealing with an Android platform module.

Issue #KT-23719 Fixed
2018-05-11 16:03:33 +03:00
Natalia Selezneva 37d7c36b11 Fix missing internal template declaration in plugin.xml 2018-05-11 15:51:52 +03:00
Natalia Selezneva 9535c82149 Backport ScriptSeverity.FATAL to old script API
(cherry picked from commit dceb063)
2018-05-11 15:51:47 +03:00
Natalia Selezneva 41653e9a50 Introduce separate cache for scripts
^KT-22588 Fixed
2018-05-11 15:51:42 +03:00
Natalia Selezneva 71703636bc Optimization: do not load dependencies for scripts not under expected location 2018-05-11 15:51:37 +03:00
Natalia Selezneva 61c31ce030 Refactoring: move logic that script shouldn't be highlighted if there are any FATAL error to KotlinHighlightingUtil 2018-05-11 15:51:33 +03:00
Natalia Selezneva 3cc3ca97ac Show notification in the editor when new script dependencies available
^KT-23616 Fixed
2018-05-11 15:51:28 +03:00
Natalia Selezneva d422eb6833 Add a delay to reload script dependencies
^KT-23616
2018-05-11 15:51:24 +03:00
Natalia Selezneva 3eac391793 Add setting to reload script dependencies on file change
^KT-23616
2018-05-11 15:51:19 +03:00
Natalia Selezneva 082916be70 Refactoring of ScriptDependenciesUpdater
Extract classes for sync and async dependencies loading
2018-05-11 15:51:14 +03:00
Natalia Selezneva 97848f2812 Minor: reformat 2018-05-11 15:51:09 +03:00
Natalia Selezneva 3f8245988e Remove GradleScriptDefaultDependenciesProvider as unused 2018-05-11 15:51:04 +03:00
Florian Steitz 8453ed1803 [KT-10456] Move tests from StringNumberConversionJVMTest to StringNumberConversionTest 2018-05-11 15:42:11 +03:00
Florian Steitz d7bada0c29 [KT-10456] Added JS implementation for Int.toString(radix) and similar overloads 2018-05-11 15:42:11 +03:00
Sergey Igushkin 284b5b9860 (minor fix) Remove extra underscore from module names 2018-05-11 15:37:17 +03:00
Vyacheslav Karpukhin d56ba1e7a4 Excluded declarations for classes in CIDR plugin.xml 2018-05-11 13:28:22 +02:00