Commit Graph

57889 Commits

Author SHA1 Message Date
Ilya Gorbunov c9dd8344d1 Do not use file length estimate in File.readText
This handles the situation when reported file length is less than actual.

#KT-33864
2019-09-28 19:20:54 +03:00
Ilya Gorbunov fe31509044 Support File.readBytes when reported file length is less than actual
After reading 'length' bytes from a file, check if there's extra content
available and read it into a resizable buffer, then append it after
the first 'length' bytes.

#KT-33864
2019-09-28 19:20:54 +03:00
Ilya Chernikov 3220101c7b [minor] fix Gradle test broken on the build refactoring 2019-09-28 17:50:45 +02:00
Ilya Chernikov 4d19299e95 [minor] Fix scripting classpath test on windows 2019-09-27 19:44:49 +02:00
Anton Yalyshev 6fa7da57a4 It's better to get plugin version once but not in cycle 2019-09-27 20:06:53 +03:00
Anton Yalyshev db189fa218 Remove Maven and JPS targets collectors that are unused now 2019-09-27 20:06:53 +03:00
Anton Yalyshev d4266e1be6 Bunches for ProjectConfigurationCollector 2019-09-27 20:06:53 +03:00
Anton Yalyshev 21b7d873e7 Move build system and targets statistics collection from StartupActivity to FUS State Collector 2019-09-27 20:06:53 +03:00
Anton Bannykh ead8379c50 JS: add -Xmetadata-only flag for JS common code modules (KT-33142 fixed) 2019-09-27 19:12:03 +03:00
Andrey Uskov 6a808ce842 Fix import tests compilation in bunch 183 2019-09-27 17:28:07 +03:00
Dmitriy Novozhilov 439e8faf94 [NI] Remove outdated intention test according to fixed consistency of OI and NI 2019-09-27 17:20:47 +03:00
Anton Bannykh b4917ec816 JS: remove unconditional as SimpleType cast
This is a workround for a bug introduced in the typeOf
support
2019-09-27 16:55:10 +03:00
Toshiaki Kameyama 82f75c707e "Convert to range check" inspection: apply ReplaceRangeToWithUntilInspection after convertion
#KT-33880 Fixed
2019-09-27 20:33:48 +07:00
Toshiaki Kameyama 54df0aad16 Reformat ConvertTwoComparisonsToRangeCheckIntention 2019-09-27 20:33:48 +07:00
Georgy Bronnikov 6c2eb3dd16 Change expected test output 2019-09-27 16:32:15 +03:00
Anton Yalyshev 6c06c4e3fc Group Id and Version fields generation doesn't need 193 bunches. It works well with previos versions. 2019-09-27 14:58:19 +03:00
Anton Yalyshev 18cfa42930 Bump Gradle to 5.5.1 cause it contains several major fixes for 5.5 2019-09-27 14:58:19 +03:00
Anton Yalyshev a53f66ca4e Gradle 5.5 Daemon requires -Xmx256m 2019-09-27 14:58:19 +03:00
Anton Yalyshev ee7b583a82 Bump Gradle and Android build tools version in New Kotlin Project Templates #KT-27587 Fixed 2019-09-27 14:58:18 +03:00
Anton Yalyshev 626087a46e Use type-safe model accessors for Gradle plugin #KT-31766 Fixed 2019-09-27 14:58:18 +03:00
Anton Yalyshev 721aa81ca5 Relying on platform stepping goes better only from 2019.3 2019-09-27 14:58:18 +03:00
Anton Yalyshev a66078f2cd Let New Gradle project or module wizard rely on platform stepping to avoid inconsistency #KT-33927 Fixed #KT-30685 Fixed #KT-28404 Fixed 2019-09-27 14:58:18 +03:00
Mark Punzalan c16b59191b Do not cache "last" value (i.e., size/length) in lowered for-loop
iteration over CharSequences.

CharSequences may be mutable (e.g., StringBuilder) and therefore its
contents and length can change within the loop.
2019-09-27 13:44:40 +02:00
Ilya Matveev 3da3e1cae9 IDE: Add native extensions to KotlinCompilation 2019-09-27 18:06:58 +07:00
Ilya Matveev 95cbb4e8b4 IDE: Add a flag to disable native libraries propagation 2019-09-27 18:06:58 +07:00
Ilya Matveev becdd7a5e6 Add a test for native dependency propagation 2019-09-27 18:06:57 +07:00
Ilya Matveev 701e92ace2 IDE: Propagate platform libraries to common modules for some native targets
Some native platforms (e.g. ios_arm64 and ios_x64) have almost
identical platform libraries. For such platforms we can workaround
a lack of the commonizer and resolve common sources against
libraries of one of these platforms. This patch enables this
workaround by propagating dependencies to common modules.

Issue #KT-33999 fixed
2019-09-27 18:06:56 +07:00
Ilya Matveev 6b10336497 Common iOS: Store konanTarget in KotlinNativeCompilation 2019-09-27 18:06:56 +07:00
Dmitry Gridin c185cecb40 Completion: fix shortening of fully qualified name for case of conflicts between property and function
#KT-31902 Fixed
#KT-33937 Fixed
2019-09-27 17:52:11 +07:00
Dmitry Gridin 589094377e QualifiedExpressionResolver: change root prefix from _Qfadj4tPV to _root_ide_package_ 2019-09-27 17:52:11 +07:00
Alexander Podkhalyuzin 9a2da67919 ShortenReferences: cleanup code & add tests for property-function conflicts 2019-09-27 17:52:11 +07:00
Natalia Selezneva 917a7f572d Check that project is open before starting highlighting
This may be false when user opens Kotlin Scripting Settings, so default project is passed to ScriptDefinitionsManager
^KT-30206 Fixed
2019-09-27 12:59:43 +03:00
Natalia Selezneva 5ab119ecfb Do no try to find script definitions for default project
This may happen when user opens Kotlin Scripting Settings
^KT-32401 Fixed
2019-09-27 12:58:36 +03:00
Ilya Chernikov 1e80c03d41 Fix Extensions/Components API usage in core environment for 193+
for it the com.intellij.core.JavaCoreApplicationEnvironment has to be
copied to the compiler (named now KotlinCoreApplicationEnvironment)
and modified accordingly
2019-09-27 11:51:25 +02:00
nicolay.mitropolsky 995dda3785 Uast: support for String-identifiers 2019-09-27 12:22:07 +03:00
Andrey Uskov a4a03aeb5c Fix compilation of KotlinMPPGradleModelBuilder 2019-09-27 12:14:43 +03:00
Andrey Uskov ca75aeb534 Update kotlin gradle plugin version in HMPP tests 2019-09-27 12:00:08 +03:00
Andrey Uskov ed750f4d10 Do not import orphan source sets 2019-09-27 12:00:05 +03:00
Andrey Uskov 03b58d9941 Point to module names instead of source set names in dependsOn of Facet 2019-09-27 12:00:02 +03:00
Andrey Uskov 715fad849d Importing test tasks and targets is implemented 2019-09-27 11:59:58 +03:00
Vladimir Dolzhenko e2f9eaa483 Use async profiler for perfTests if it presents in env variable; Add kt project copy-n-paste perfTests 2019-09-27 10:33:49 +02:00
Natalia Selezneva de369e6527 Revert "Fix testdata for IdeLightClassTestGenerated.Script after scripting API refactoring"
This reverts commit a3f4effe
2019-09-27 10:52:16 +03:00
Mikhail Glukhikh 4718ae4186 FIR: don't perform argument check for callable references
This fixes failing FIR2IR test
2019-09-27 09:23:34 +03:00
Mikhail Glukhikh da7d5d5702 FIR: provide receiver for accessor of extension property 2019-09-27 09:22:52 +03:00
Mikhail Glukhikh 0d4ca06372 Fix FirCallableReferenceAccessImpl.transformChildren 2019-09-27 09:21:53 +03:00
Mikhail Glukhikh 11fb121458 FirProvider: search for fake overridden symbol containing file correctly 2019-09-27 09:21:02 +03:00
Mikhail Glukhikh 0438ab96e1 FIR: add a test with current top resolve problems 2019-09-27 09:20:31 +03:00
Toshiaki Kameyama 40dd229021 Join with assignment: place the result at the assignment
#KT-21172 Fixed
2019-09-27 09:16:52 +03:00
Toshiaki Kameyama 8078c5da40 Reformat JoinDeclarationAndAssignmentIntention 2019-09-27 09:16:51 +03:00
Mikhail Glukhikh d45e83b27d Introduce subject to when: don't perform analysis in if transformation
Otherwise we get an exception about non-analysable file
Related to KT-18772
2019-09-27 09:16:50 +03:00