Alexander Udalov
a383d45534
Disable -Werror if test.progressive.mode is enabled
...
The reason is that when advancing language version, for example from 1.5
to 1.6, there is a brief period between bootstraps where the
bootstrapped compiler has latest stable language version 1.6, yet the
project is still built with 1.5. That leads to a (correct) warning that
progressive mode makes no sense unless the latest language version is
used, which fails the build because of Werror.
When testing bootstrap in progressive mode, we don't actually care about
these warnings, so disable Werror in this case.
The only case where this could matter would be if we were introducing
_warnings_ in progressive mode and checking that there are no new
warnings on Kotlin would be important for us, but so far progressive
mode has only been used to turn already existing warnings to errors.
2021-07-22 15:41:51 +02:00
Nikita Bobko
d1e46e8ce7
Delete Kotlin IntelliJ IDEA plugin modules from settings.gradle
2021-07-21 11:23:53 +02:00
Nikolay Krasko
0f2e653625
Use cache-redirector for yarn download (KTI-577)
2021-07-13 22:36:51 +03:00
Alexander Udalov
35f6337de3
Remove obsolete kotlin.build.useIR flag
...
(cherry picked from commit 91e47f1fd7 )
2021-07-13 14:01:19 +02:00
Yan Zhulanow
cf65754ea4
Update 203 bunch
2021-07-08 13:29:18 +03:00
Nikita Bobko
2a26c29390
Disable kotlin-scripting-ide-common publishing
...
We don't need this artifact in IDE anymore since we are not
going to move ide-common classes to kotlin repo. See previous commit
2021-07-08 10:01:35 +00:00
Nikita Bobko
365821ae54
2/2 Extract code which is required for :kotlin-scripting-ide-services from ide-common into seprate module
...
Extract the code and keep it in Kotlin repo. See previous preparation commit as well
2021-07-07 16:51:43 +02:00
Mikhail Glukhikh
863a2c6498
Disable kotlin-gradle-statistics and wasm.ir under FIR
2021-07-07 14:28:02 +03:00
Pavel Punegov
269f83f86e
Update kotlin-build-gradle-plugin to 0.0.31
2021-07-05 19:43:28 +00:00
Ilya Chernikov
6911860cca
Clean-up coroutines usage in scripting libs and plugin
...
#KT-30778 fixed (again)
2021-07-05 19:26:42 +03:00
Ilya Chernikov
0c2591e938
Bump coroutines version used in scripting to 1.5.0
...
#KT-43917 fixed
2021-07-05 19:26:37 +03:00
Yahor Berdnikau
7789054547
Migrate repo to use JVM toolchains Gradle feature.
...
^KT-46972 Fixed
2021-07-05 14:11:12 +00:00
Yahor Berdnikau
08d831934a
Revert "Build: add temporary option to suppress jdkHome warning"
...
This reverts commit 1dfcec3a93 .
2021-07-05 14:11:11 +00:00
Simon Ogorodnik
f8ab16c823
[Build] Fix useFir project exclusion logic
2021-07-02 16:13:05 +03:00
Roman Artemev
9ef0909e39
Advance K/N version to make Gradle Klib IT tests work
2021-07-01 17:40:47 +03:00
Simon Ogorodnik
54c914e3fd
[Build] Update NodeJs to 16.2.0
2021-06-29 18:35:13 +03:00
Zalim Bashorov
a908e5576d
[JS] Extract sourcemap generating related files to a separate module
...
It's required to reuse the same infrastructure in the new backend.
2021-06-28 16:04:09 +03:00
Nikolay Krasko
d6aedc3229
Ignore more tasks if disableKotlinPluginModules explicitly set
2021-06-22 11:02:49 +03:00
Nikita Bobko
e5fbd0e2d8
Publish :idea-frontend-api, :idea-frontend-fir, :idea-fir-low-level-api modules artifacts
...
These artifacts are used in Kotlin plugin
2021-06-22 03:06:18 +03:00
Nikita Bobko
938cd955e1
Remove :idea prefix in IDE FIR modules which are going to stay in kotlin repo
...
This commit fixes not possibility to build project with `disableKotlinPluginModules`
flag on because Gradle tries to resolve `:idea` module which is disabled
2021-06-22 03:06:16 +03:00
Ilya Kirillov
90f6d458b5
FIR IDE: fix test task name
2021-06-21 00:51:31 +02:00
Ilya Kirillov
495a5136bb
extract frontendApiTests to separate gradle task
2021-06-20 22:07:49 +02:00
Ilya Kirillov
75331b3448
FIR IDE: abstract low-level-api from dependency on idea
2021-06-20 22:07:11 +02:00
Jinseong Jeon
7a5d61928b
FIR/IDE: migrate FIR evaluator to idea-frontend-fir
2021-06-19 21:58:48 -07:00
Jinseong Jeon
5e2525175e
Introduce fir.evaluate module with CompileTimeConstantEvaluator
2021-06-19 21:35:33 -07:00
Roman Golyshev
6ea4b8997b
Add kotlin-stdlib-minimal-for-test.jar artefact to the published dependencies
...
Some compiler tests rely on this jar instead of the regular `stdlib`
2021-06-17 20:19:48 +03:00
Yahor Berdnikau
5d0abf0e33
Lazily apply cache redirector to all project modules.
...
Mainly move it from 'afterEvaluate { .. }' block.
^KT-47185 In Progress
2021-06-11 11:44:34 +00:00
Sebastian Sellmair
4e7460d91f
Merge KT-MR-3320 from rra/sellmair/kt-46957-enable_linuxMips32_in_tests
2021-06-10 09:14:17 +00:00
Nikolay Krasko
b6b983aa2a
Update kotlin:kotlin-build-gradle-plugin 0.0.29 -> 0.0.30 (KTI-563)
...
Remove ultimate mentioning
2021-06-09 22:19:53 +03:00
Nikolay Krasko
85bc1d6aa2
Remove org.jfrog.buildinfo:build-info-extractor-gradle
...
There were some conflicts that shouldn't be an issue anymore.
Revert: 713f6e1ed3
2021-06-09 20:05:25 +03:00
Nikolay Krasko
32f811e0ec
Build: Cleanup old platforms from the build
2021-06-09 17:43:53 +03:00
Nikolay Krasko
a4005cef19
Build: Drop ultimate, cidr and kmm from the build (KTI-563)
2021-06-09 17:43:52 +03:00
sebastian.sellmair
4e508c6d9c
Update K/N version to 1.5.30-dev-1916
...
^KT-46957
2021-06-09 11:53:58 +02:00
Jinseong Jeon
c37123603c
UAST: utilize identifier test base
2021-06-03 17:56:16 +02:00
Nikita Bobko
ea24da117b
Publish compiler testdata which is required for Kotlin plugin
2021-06-02 21:30:03 +03:00
Alexander Udalov
1dfcec3a93
Build: add temporary option to suppress jdkHome warning
2021-05-28 15:41:17 +02:00
Mads Ager
d023966054
[JVM] Fix various undefined locals issues.
...
CoroutineTransformermethodVisitor attempts to extend the ranges
of local variables in various situations. Probably in an attempt
to give a better debugging experience. However, all of these
range extensions lead to invalid local variable tables where
something is in the local variable table where nothing is in the
corresponding slot.
The code that extends variables to the next suspension point
instead of ending them when they are no longer live has issues
with loops. When resuming and reentering the loop, the locals
table will mention a local that we did not spill and which
is therefore not restored when resuming.
The code that extends local variable table entries if there
are no suspension points between two entries doesn't work
for code such as:
```
var s: String
if (suspendHere() == "OK") {
s = "OK"
} else {
s = "FAIL"
}
```
If the local variable ranges are collapsed into one, one of
the branches will have the local defined in the local variable
table before the slot is initialized.
2021-05-26 08:33:34 +02:00
Dmitriy Novozhilov
a1ae108ce5
[FIR] Properly generate IDE diagnostics from multiple diagnostics lists
2021-05-21 14:18:58 +03:00
Nikita Bobko
61bf6bc447
Remove ':idea:idea-jps-common' from 'compiler-components-for-jps' artifact
...
It seems that it was added by mistake 'compiler-components-for-jps' artifact is used in IDE.
And in IDE we have our own jps-common module
2021-05-20 16:05:38 +02:00
Nikita Bobko
1fa4874426
Create 'installIdeArtifacts' task
...
This task is used for cooperative compilation with intellij.
See 'Install compiler-for-ide jars' run configuration in
intellij/kotlin-ide/intellij-kotlin repo
2021-05-20 16:05:37 +02:00
Nikita Bobko
54f7633738
build.gradle.kts: exclude :kotlin-ide from allprojects
...
We don't need to setup compiler args and JDK version for kotlin-ide modules.
Generated build.gradle.kts will do it themselves
2021-05-20 16:05:37 +02:00
Alexander Likhachev
3df45f9651
[Build] Bump kotlin-build-gradle-plugin version to 0.0.29
2021-05-18 16:37:36 +03:00
Alexander Likhachev
b6670f5cc8
[Build] Replace build scan config script with plugin
...
See https://github.com/gradle/gradle-enterprise-build-config-samples/tree/129e82c556d7ef58527cd0acd89f58d1ff02d1f7/common-custom-user-data-gradle-plugin
2021-05-18 16:37:35 +03:00
Alexander Likhachev
ca2051e1d4
[Build] Disable custom normalization when conf cache is enabled
...
Custom input normalizations currently isn't supported by Gracle configuration cache
#KT-44611 In Progress
2021-05-18 16:37:34 +03:00
Yan Zhulanow
e90cc30edb
Remove CLI and some of daemon-related modules from compiler-for-ide
...
These modules is not required by the plugin, and the plugin verifier
warns about unsatisfied dependencies of the modules.
CLI is needed in tests so a separate artifact is created instead.
2021-05-14 01:06:39 +09:00
Yan Zhulanow
26f71c33c0
IDE: Publish JS IR klib artifact
2021-05-14 01:06:39 +09:00
Pavel Punegov
53bf0b1c42
Update Build gradle plugin to 0.0.28
2021-05-12 10:34:36 +03:00
Jinseong Jeon
e5f3091f2c
FIR/UAST: commonize KotlinUFile
...
We can avoid explicit creation of UAnnotation and UImportStatement if we
use languagePlugin as a UAST element factory.
2021-05-11 21:43:02 +02:00
Nikita Bobko
bee8c0bb90
Publish :compiler:test-infrastructure for ide
2021-05-11 12:36:59 +02:00
Stanislav Erokhin
7ac599520e
Add first prototype of BindingContext implementation by FIR
...
Add ImportMemberIntention intention as a test.
In this commit all failed test were disabled, necessary fixes will be
added in the following commits
2021-05-10 14:04:03 +03:00