Commit Graph

1184 Commits

Author SHA1 Message Date
Alexey Tsvetkov 1a7737494b Provide custom ConstantAffectionResolver in JPS
#KT-16091 fixed

Original commit: 772a935de6
2018-02-21 19:12:12 +03:00
Alexander Udalov 2247e501b4 Fix JS stdlib file names in KotlinJpsBuildTest
Add "kotlin-experimental.js", "kotlin-experimental.meta.js" and refactor
surroundings

Original commit: 96e33dabcf
2018-02-16 17:09:34 +01:00
Alexey Tsvetkov f1a78a7037 Fix IC test data
Test data was broken starting from 994fc1cc5e44322ed671e60530474781c35a7e7b

Original commit: 67a5cab343
2018-02-14 16:09:07 +03:00
Alexander Udalov 1bea0a0e47 Add getExtensionOrNull utility for protobuf messages
Original commit: 7123202670
2018-02-08 17:08:33 +01:00
Nikolay Krasko 45f3911ebc Update idea to 173.3.4 (173.4548.28)
Original commit: f05e926670
2018-02-03 00:15:45 +03:00
Alexey Sedunov 1577239e4d Gradle: Import production output path for JavaScript modules
Original commit: 1f7fab837f
2018-02-01 15:35:34 +03:00
Vyacheslav Gerasimov 0f68c3017a Remove intellij-core from testRuntime if full idea is already there
Looks like it makes tests flacky

Original commit: 68b5dc756c
2018-01-30 17:06:18 +03:00
Vyacheslav Gerasimov 991ca73c0b Add asm-all to jps-plugin dependencies
Original commit: 29caa00f23
2018-01-30 17:06:18 +03:00
Ilya Chernikov a870208a3b Convert the rest of the project to intellij repo prepared in buildSrc
Original commit: 7e21573cf4
2018-01-30 17:06:13 +03:00
Ilya Chernikov 1a7d10ebd4 Make all dependencies to idea sdk intransitive
Original commit: a4f28cd94f
2018-01-30 17:06:11 +03:00
Ilya Chernikov 3b060ca659 Fix jps tests
Original commit: e76cd802d8
2018-01-30 17:06:11 +03:00
Ilya Chernikov efdf6f2e8d Convert idea plugin modules to intellij plugin
Original commit: 0d264793ce
2018-01-30 17:06:07 +03:00
Ilya Chernikov 932a637647 Convert jps module to intellij plugin
Original commit: 3912025e14
2018-01-30 17:06:07 +03:00
Alexey Tsvetkov 28a2d4727a Test JPS with Daemon and IC
Original commit: 220fab0d3f
2018-01-16 21:09:57 +03:00
Alexey Tsvetkov f1efa4c872 Minor: move 'KotlinJpsBuildTestIncremental' to separate file
Original commit: ca09be1411
2018-01-16 21:09:57 +03:00
Nikolay Krasko 57a985df3a Modify incremental test in 173 branch - files are not created anymore
Original commit: aee7329b89
2018-01-12 13:54:45 +03:00
Dmitry Jemerov f99df874b0 Update copyright in generated tests
Original commit: e80dae1802
2018-01-10 11:55:28 +01:00
Alexey Tsvetkov e5147e3000 Track changes in inline function when friend paths are disabled in JS
Original commit: d7edbb8dfc
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov f3e8e3e591 Replace testCancelLongKotlinCompilation with less flaky test
Original commit: a4d122478b
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov 2845ea857a Explicitly request rebuild when untracked java file is removed
Previously a rebuild was happenning because FileNotFoundException
was thrown when getting psiFile of removed file.

Original commit: ee94a64718
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov 8683fce476 Turn off class redeclaration test for JS IC temporarily
So the tests could be run on TC.
Turn on after KT-19846 is fixed.

Original commit: 50bf74b909
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov 09c1299c84 Recompile only files from last iteration after compile error
Original commit: 0fee7883ed
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov 8e790fe091 Add JS specific IC build log in test
JS IC compares proto using a source file path as a key,
so moving file causes recompilation of its usages
unlike JVM IC that uses a class file path as a key.

Original commit: ff2e3ecfc4
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov c58c65caea Fix IC test build log diverged from JPS
JPS marks dirty direct usages of removed classes since 172.* before a build.
Generic IC also marks dirty all subclasses and their usages.
That is necessary because a method from a removed class could be used
through a subclass.
JPS and generic IC logs diverged in 172 branch, but non-JPS tests
were not run on CI.

Original commit: 7712044146
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov 084def4ffc Recompile all subclasses of removed classes
Original commit: a31f503fa5
2017-12-22 16:12:19 +03:00
Alexey Tsvetkov 090063b4d8 Compile actual and expected declarations together
#KT-20840 fixed

Original commit: fec2d08d22
2017-12-22 16:12:19 +03:00
Alexander Podkhalyuzin 1bd0546589 Extracted Kotlin.JVM IDE into separate module
This change is required to have possibility to build plugin against
minor IDEs, which don't have Java. So we want to extract idea-jvm

Original commit: 8203d1c3fe
2017-12-21 18:34:02 +03:00
Alexey Tsvetkov 483b3e8d28 Allow override removing temporary module files after build
For debug purposes

Original commit: 18fae9e16d
2017-12-18 21:19:15 +03:00
Alexey Tsvetkov dfbae1f55d Allow customizing directory for temporary module files
Original commit: 5bffef6de7
2017-12-18 21:19:15 +03:00
Alexey Tsvetkov fdaf915d2c Avoid generating too long path for temp module file
#KT-21841 fixed

Original commit: 37b00b91fc
2017-12-18 21:19:15 +03:00
Ilya Chernikov c1da2e287d Make daemon session retrieval more robust to the daemon failures
Original commit: f83dc0a067
2017-12-18 16:49:53 +01:00
Ilya Chernikov 76d6413702 Treat "daemon is dying" state as a case for fallback compilation strategy in jps
Original commit: 1101bb7fb4
2017-12-18 16:49:52 +01:00
Alexey Tsvetkov 453d38b0f7 Do not set api version to language version when language version is null
#KT-21852 fixed
    #KT-21574 fixed

Original commit: 3f082346ae
2017-12-18 16:22:07 +03:00
Alexander Udalov cf59f84273 Fix lookup tracker tests after 83b32e11a7f
Standard library is no longer automatically added to the classpath when
-Xbuild-file is used. Before 83b32e11a7f, these tests worked because no
matter whether -Xbuild-file was used or not, the automatically computed
classpath (which erroneously was used to populate content roots in the
compiler) contained the standard library (see
K2JVMCompiler.configureContentRoots)

Original commit: 9e82ab38f0
2017-12-14 11:37:56 +01:00
Alexander Udalov 043e1845fb Add dependency on compiler dist from jps-tests
Otherwise, because there's no explicit dependency and the JPS plugin
loads the compiler from dist, the compiler jar is not rebuilt between
changes in compiler code and running jps-tests

Original commit: 46fa5cfae0
2017-12-14 11:37:56 +01:00
Alexey Sedunov 9f5d0eeb5b Configuration: Support selection of "Latest stable" version vs specific one
#KT-21229 Fixed

Original commit: 38d3362bcb
2017-12-12 20:48:26 +03:00
Denis Zharkov c3ea422125 Record special name lookup when trying use interface as a SAM
It was already working in JPS, because it see our synthetic classes
as subclasses for SAM's, but with non-JPS build we have to manually
tracking places that should be recompiled after SAM members are changed

Original commit: df533053f9
2017-12-12 16:17:58 +03:00
Denis Zharkov 30eec21d1d Refine dirty files computation in case of Java source changes
#KT-17621 In Progress

Original commit: ae6421476d
2017-12-12 16:17:58 +03:00
Nikolay Krasko 7769227cf6 Restore iml files for jps tests
Original commit: f46a8e0b16
2017-11-30 13:24:08 +03:00
Alexey Sedunov 1a0d5351b6 Configuration: Fix deserialization of immutable freeArgs collection
#KT-21363 Fixed

Original commit: c54b934383
2017-11-30 12:49:24 +03:00
Alexander Udalov 53e90b6d40 Replace dependencies on kotlin-reflect with kotlin-reflect-api
See the previous commit for information on the kotlin-reflect vs
kotlin-reflect-api distinction.

Add kotlin-reflect as an explicit runtime dependency of most of the test
configurations because even though they all depend on tests-common, the
runtime dependency on kotlin-reflect is not exported from tests-common
to other modules because the projectTests dependency is not transitive.

Original commit: aca74cef0e
2017-11-28 12:35:49 +01:00
Alexey Tsvetkov e06f002f45 Rebuild when language/api version is changed (JPS)
#KT-20757 fixed

Original commit: 913a997f24
2017-11-23 14:46:23 +03:00
Leonid Startsev 4266515228 More entry points for compiler plugins
* In Kotlin/JS JPS compilation
* In kotlin-common CLI compiler
* In kotlin-common gradle build

Original commit: d6e5551237
2017-11-23 12:12:01 +03:00
Alexey Tsvetkov 272c198ff6 Avoid deserializing .kotlin_module as class proto
#KT-20184 fixed

Original commit: 18261838b6
2017-11-16 14:47:59 +03:00
Nikolay Krasko c09c919763 Report rebuild reason in rebuild function
Original commit: 643f771c24
2017-11-15 16:12:38 +03:00
Alexander Udalov cf3ad8689d Split core into descriptors, descriptors.jvm, deserialization, descriptors.runtime
Original commit: 02981038f3
2017-11-10 18:58:31 +01:00
Alexey Sedunov 70778b1062 Misc: Fix deserialization of CommonCompilerArguments.freeArgs
#KT-20938 Fixed

Original commit: cfad305826
2017-11-07 19:25:02 +03:00
Alexander Udalov cfbb0f1b00 Move compiler/tests-common/{src -> tests}, adjust dependencies
Original commit: 33549362cb
2017-10-31 07:36:45 +01:00
Alexander Udalov 45102d8ded Rename module ':compiler.tests-common' -> ':compiler:tests-common'
Original commit: c2276e2ccb
2017-10-31 07:36:45 +01:00
Alexey Sedunov c8f8e6829e Gradle: Import test output path for JavaScript modules
Original commit: 3319fdba6d
2017-10-26 20:59:40 +03:00