Commit Graph

1376 Commits

Author SHA1 Message Date
Vyacheslav Gerasimov 9203b24b9d Build: implement useBootstrapStdlib flag
Excludes stdlib projects from build and uses bootstrap stdlib artifacts

 #KT-29205

Original commit: f58acbeef5
2019-01-21 21:09:40 +03:00
Vyacheslav Gerasimov 8b76cb4f07 Remove as31 bunch files
Original commit: 13d87e8eae
2019-01-14 21:29:02 +03:00
Vyacheslav Gerasimov e21fc1a98a Remove 173 bunch files
Original commit: 818910267e
2019-01-14 21:29:02 +03:00
Andrey Uskov ebd4867aff Fix scope detection for MPP projects
#KT-27718 Fixed
#KT-28626 Fixed

Original commit: a9df9b22e9
2019-01-11 18:47:20 +03:00
Sergey Rostov e9aeb9459b JPS: exclude source roots from other targets
Previously `findJavaRootDescriptor` was return source root for random
module. This cause build errors for mpp (same file may appear in
multiple source roots of common and platform modules)

#KT-28988 Fixed

Original commit: 75e59fdc46
2019-01-11 12:53:11 +03:00
Sergey Rostov 269f5e57f1 JPS: Print components of CacheVersion, add tests
Original commit: 5cda676c9f
2019-01-10 08:50:39 +03:00
Sergey Rostov 5af4857473 JPS: remove cache version from test data
Original commit: b3985d2735
2019-01-10 08:50:38 +03:00
Mikhael Bogdanov d212230870 Update copyright in generated non-compiler tests
Original commit: e963c52c80
2019-01-02 13:34:03 +01:00
Dmitriy Dolovov 7c7e9eb72d Fix: Rebuild common or native module with Delegate to gradle does nothing
Issues #KT-27295:fixed, #KT-27296:fixed

Original commit: af4c2b8030
2018-12-27 18:24:43 +07:00
Sergey Rostov 729bf6dc3d JPS: Use module name from compiler arguments (JVM)
Original commit: 74271cfecd
2018-12-26 08:43:00 +03:00
Andrey Uskov dd72b2b1f1 Fix KNPE in FacetSettings (EA-132084)
Original commit: d4e5620b9c
2018-12-25 19:22:25 +03:00
Mikhael Bogdanov 2efec13176 Use last asm api for visitor construction
Original commit: c19c979b7d
2018-12-20 12:55:09 +01:00
Alexey Tsvetkov 885f673d20 Enable JS IC by default
#KT-28842 Fixed

Original commit: 2196d81322
2018-12-17 15:46:11 +03:00
Andrey Uskov 9dbbe9c58d Fix KT-28626, KT-27263, KT-27718 in Idea 191
Original commit: ffb277d978
2018-12-12 19:04:56 +03:00
Simon Ogorodnik 864eb7aedd Extract module info & target platform to separate frontend.common
Original commit: e3aed04d96
2018-12-11 22:07:41 +03:00
Mikhail Glukhikh e680e7cc24 Fix check in isSameRootType. May fix KT-28626. Related to KT-27718
Original commit: 79537a5fdb
2018-12-07 18:57:09 +03:00
Andrey Uskov 295e18f9dd Fix stacktrace check for KT-27718. This work-around should be removed after fix of IDEA-203651
#KT-27718 Fixed

Original commit: 235b6ca6cd
2018-12-06 20:23:05 +03:00
Andrey Uskov 43282fae3d Remove some bunches for build scripts.
Original commit: c85f56a0a8
2018-12-06 19:44:09 +03:00
Andrey Uskov da4251335a Fix "Kotlin not configured" issue in common MPP tests.
#KT-27718 Fixed

Original commit: 273dbc823e
2018-12-06 14:50:26 +03:00
Sergey Rostov b6571cbcf6 Move resources from /src to separate /resources directory.
Previously this files was stored in /src directory and was included in
resources mainly by SourceSet.projectDefault from sourceSets.kt:

val processResources = tasks.getByName(processResourcesTaskName) as ProcessResources
processResources.from("resources") { include("**") }
processResources.from("src") { include("META-INF/**", "**/*.properties") }

Also there are some custom rules like this:

resources.srcDir("../idea-analysis/src").apply { include("**/*.properties") }
resources.srcDirs("idea-repl/src").apply { include("META-INF/**") }

All this rules are synthesized in script
https://github.com/snrostov/kotlin-migrate-resources/blob/master/src/main/kotlin/main.kt

This commit created using that script. See README.md for more details on
 script.

Original commit: df2e4524d7
2018-11-30 15:01:01 +03:00
Sergey Rostov 1624559845 JPS: report about unsupported targets once
Report about unsupported targets once per target type, show presentable
chunks list and don't show more then 5 chunks.

Example: "Native is not yet supported in IDEA internal build system.
Please use Gradle to build a, b, c, d, e and 10 other  (enable 'Delegate
IDE build/run actions to Gradle' in Settings)."

#KT-26980 Fixed
#KT-28316 Fixed

Original commit: 62b0b3e4e9
2018-11-28 11:08:57 +03:00
Sergey Rostov 5e68ef4676 JPS: fix SimpleKotlinJpsBuildTest.testDaemon
Make it the same as testJpsDaemonIC

Original commit: ab2b4311fd
2018-11-28 10:46:57 +03:00
Sergey Rostov 3fe93760ee JPS: fix testJpsDaemonIC
1. Checking for COMPILE_DAEMON_CUSTOM_RUN_FILES_PATH_FOR_TESTS was moved to COMPILE_DAEMON_DEFAULT_RUN_DIR_PATH.

Looks like COMPILE_DAEMON_CUSTOM_RUN_FILES_PATH_FOR_TESTS was introduced incorrectly in 28a2d4727a.
Checking of this property was added in DaemonOptions.runFilesPathOrDefault, while DaemonOptions.runFilesPath was internally used in runFilesPathOrDefault and in many other places.
For example DaemonOptions.runFilesPath used to pass this option to daemon server.
So daemon was started with runFilesPath that ignores COMPILE_DAEMON_CUSTOM_RUN_FILES_PATH_FOR_TESTS.

2. JpsKotlinCompilerRunner._jpsCompileServiceSession was leaked between tests.

Fixed by extracting @TestOnly releaseCompileServiceSession() and calling it in tests tearDown()

3. The result of compileWithDaemon was ignored in compileWithDaemonOrFallback.

So, the fallback was never called, and the FAIL_ON_FALLBACK_PROPERTY was actually was never worked.
This was fixed. Also the message was improved to make it easier to find the original fail cause.

Original commit: 0c39358b5f
2018-11-28 10:46:57 +03:00
Sergey Rostov c075d6a911 JPS: Test for "Cyclically dependent modules should have same compiler"
KT-27285

Original commit: c06b000e8d
2018-11-28 10:46:57 +03:00
Sergey Rostov ea4256088a JPS: Report "Cyclically dependent modules should have same compiler" as build error rather than exception
#KT-27285 Fixed

Original commit: 3c8b15ca54
2018-11-28 10:46:57 +03:00
Sergey Rostov 6f683d5154 JPS, tests: Support multimodule mpp tests without steps
Original commit: ce4422e2ef
2018-11-28 10:46:58 +03:00
Sergey Rostov 37185c22d0 JPS: support KotlinResourceSourceRootType
Implementation is similar to KotlinSourceRootProvider.
This workaround is required since ResourcesTarget.computeRootDescriptors
supports only JavaResourceRoots.

#KT-27622 Fixed

Original commit: dcc47fd8ef
2018-11-26 09:29:49 +03:00
Sergey Rostov cfb54fa15c JPS, tests, minor: rename test files in modules for better readability
Original commit: 1301333e37
2018-11-26 09:29:38 +03:00
Sergey Rostov 87bc221012 JPS, minor: formatting
Original commit: 63c6e3e1b4
2018-11-26 09:29:38 +03:00
Sergey Rostov 71003b4e75 JPS, tests: update removeAndRestoreCompanion[WithImplicitUsages] test data
src/A.kt is affected by removed classes

Original commit: 32bd4d5936
2018-11-26 09:29:38 +03:00
Sergey Rostov f21aa7687d JPS: clear target local cache version file when caches are not required anymore
Makes changeIncrementalOption/incrementalOff test green

Original commit: 7cdd5257c8
2018-11-26 09:29:38 +03:00
Sergey Rostov 6e977bbd86 JPS, tests, minor: reformat test data for changeIncrementalOption/incrementalOff
Original commit: 1f162cfacf
2018-11-26 09:29:38 +03:00
Sergey Rostov 2d04f3d3e3 JPS, tests: update test data for cacheVersionChanged/withError
In this test only lookups caches are invalidated and only in first step.
module4 shouldn't be rebuilt since is compiled in step 1 and it is independent of all dirty modules.

Previously this module was rebuilt because of #KT-27044 which is fixed
by fe93ea2

Original commit: 4cd4e230bf
2018-11-26 09:29:38 +03:00
Sergey Rostov 2854838709 JPS, tests, minor: reformat test data for cacheVersionChanged/withError
Original commit: a508f53f9d
2018-11-26 09:29:38 +03:00
Sergey Rostov a650f09208 JPS, tests: Add docs for incremental/cacheVersionChanged tests
Original commit: 06b908d48f
2018-11-26 09:29:38 +03:00
Simon Ogorodnik f136807844 CLion/AppCode: Use default platform for libraries, if no LibraryKind is specified
To avoid Unknown platform JVM

Original commit: 2b3b5876aa
2018-11-23 22:27:23 +07:00
Sergey Rostov a9ce3284a4 JPS, minor: remove unused parameter
Original commit: dfe662364d
2018-11-22 08:40:32 +03:00
Sergey Rostov 36b8b9fbdb Fix updating complementary files map in case of compilation errors
#KT-27868 Fixed

Previously given dirtyFiles was removed from complementaryFilesMap
exactly on call of clearComplementaryFilesMapping. This causes fail
of next build in case of compilation error of previous build on JPS
(since complementary files not known on second build). The right way
to do it is removing (replacing) them only after successful
build.

This was working on Gradle since Gradle rebuilds whole module (project)
in case of build error.

Original commit: f70d01f657
2018-11-22 08:40:32 +03:00
Sergey Rostov c09054326a JPS: Add tests for mpp complementary files tracking after build error (KT-27868)
Original commit: cc9892a27d
2018-11-22 08:40:32 +03:00
Sergey Rostov 63e3b273de Add assertion for overwriting common sources flag
Wrong flag state causes compilation errors for optional expectation
(this flag is used to pass -Xcommon-sources)

Original commit: 84d6c1df5a
2018-11-22 08:40:32 +03:00
Sergey Rostov c6379aa533 Workaround for KT-28099 Duplicated dependency to common module
Duplicated dependencies causes duplicated source roots which in turns
causes duplicated files dirty state tracking.

Original commit: 5a25d3ef58
2018-11-22 08:40:31 +03:00
Alexey Tsvetkov a1881a7251 Avoid catching exceptions from workers in GradleKotlinCompilerRunner
Exceptions were catched in `KotlinCompilerRunner.runCompiler`.
When the method from superclass is not used in
`GradleKotlinCompilerRunner`, the superclass does not make much sense
anymore, so I turned it into util object.

Original commit: a41c2d759a
2018-11-14 11:41:43 +03:00
Alexey Tsvetkov 554e2bb7ad Use Workers API for NMPP tasks
This change enables parallel execution of compile tasks in NMPP projects
within a subproject.

    #KT-28155 In Progress

Original commit: 37dfe2b608
2018-11-14 11:41:43 +03:00
Anton Bannykh a783bf14cb JS: report inline suspend functions to IC
* Also inline suspend lambda'a
* Also use correct JsName's in exported suspend inline fun's
* Also use less unused imports

Original commit: 59009430e5
2018-11-07 12:11:01 +03:00
Sergey Rostov 2fedf572f9 JPS: Don't catch BuildDataCorruptedException as internal error.
BuildDataCorruptedException should be thrown up to `IncProjectBuilder`
to be handled by TeamCity.

#KT-27037 Fixed

Original commit: cce125b982
2018-10-27 16:08:38 +03:00
Sergey Rostov 12822fd468 JPS: Fix initialization order for case when all kotlin rebuild.
#KT-27792 Fixed

Original commit: 0b8d94a6b1
2018-10-27 16:08:16 +03:00
Vyacheslav Gerasimov 65de209e6f as34: Apply changes from AS 3.3
Original commit: 4076923a26
2018-10-26 18:25:20 +03:00
Alexey Sedunov 0d75fe186c MPP: Implement directory selection UI supporting non-JVM roots
#KT-27291 Fixed
 #KT-26696 Fixed

Original commit: 839d936918
2018-10-22 19:18:32 +03:00
Nikolay Krasko ab5e07f8e4 191: asm-all has 7.0-beta version in Intellij 191
Pass project to fetch extra parameters for asm-all work

Original commit: 17421ed14d
2018-10-19 19:16:21 +03:00
Sergey Rostov 7801d0e106 IC: move CacheVersionManager from build_common to jps plugin, tests
Original commit: bde6d841c1
2018-10-16 13:33:24 +03:00