Commit Graph

1216 Commits

Author SHA1 Message Date
Vyacheslav Gerasimov 9164f7d2cb Remove explicit jar specification from ide modules build scripts
They often change between ide versions and difficult to maintain

Original commit: 7c02d55b23
2018-04-09 21:47:48 +03:00
Alexander Udalov 1fa4171942 Enable all Java 9 tests
Original commit: d2ed73eb78
2018-04-05 12:38:48 +02:00
Alexey Tsvetkov a47d5434f3 Use daemon if available for parsing files in JPS
Original commit: 6f59b6da8e
2018-04-03 21:11:12 +03:00
Alexey Tsvetkov 88c4f73e3c Invalidate usages of removed classes before round
#KT-23165 fixed

Original commit: 3eb968807e
2018-04-03 21:11:12 +03:00
Alexey Tsvetkov 3174c9b05e Convert KotlinSourceFileCollector: simplify after conversion
Original commit: 8cd0f13f2b
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov 4cd2068ebc Convert KotlinSourceFileCollector: actual conversion
Original commit: 3f36f472b3
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov fbe7dc02f6 Convert KotlinSourceFileCollector: rename file
Original commit: 336d63c0a3
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov a4a45b59df Remove usages of deprecated API
Original commit: bd779cb26e
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov 5159795c48 Replace reflection with direct call
Original commit: 58e4b704c6
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov 06044f0100 Convert CompilerRunnerUtil: actual conversion
Original commit: fa9c80e05c
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov 90920f9b7a Convert CompilerRunnerUtil: rename file
Original commit: f27b6c0d8d
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov d849d47e22 Reformat jps-plugin module
Original commit: 455fe7fe61
2018-04-03 21:11:11 +03:00
Alexey Sedunov 78ee6ba693 JS: Use the same output paths for JPS and Maven-based builds
#KT-22586 Fixed

Original commit: ae37cc30a1
2018-04-02 15:28:35 +03:00
Anton Bannykh a4fd51a823 Merge kotlin-experimental into kotlin standard library (KT-23055 fixed)
* kotlin-experimental.js has been already merged into kotlin.js
* change library name to kotlin in kotlin-experimental.meta.js in order to produce correct require calls
* concatenate kotlin-experimental.meta.js with kotlin.meta.js
* suppress multiple module declaration warning for such use case

Original commit: 7b860eab36
2018-03-26 23:13:28 +03:00
Alexey Tsvetkov 8a9c76588d Use Plugins DSL in Kotlin Gradle scripts
When plugins DSL is used, there is no need to
manually generate typesafe accessors for extensions and
conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).

Original commit: 8a82c1618c
2018-03-26 16:09:29 +03:00
Mikhail Zarechenskiy f7d30600a1 Refactoring: rename parameter to argument for annotation diagnostics
Original commit: 4ebd11a7ae
2018-03-22 03:59:55 +03:00
Alexey Tsvetkov 9a0b91ef31 IC: add destination dir to start of classpath instead of end
Otherwise IC fails when a project declares a class with the same name
as in one of its dependencies.
The issue is relevant only for non-JPS IC (Gradle, Maven, etc.),
but I added the test for JPS too.

  #KT-20516 fixed

Original commit: 605bcc66a1
2018-03-21 18:44:42 +03:00
Alexey Tsvetkov f94a2d688d Report correct source to output mapping for kjsm files
Now IC can correctly remove kjsm files when source files are changed

Original commit: 2584143e92
2018-03-19 18:04:33 +03:00
Zalim Bashorov 1772be8ca5 Fix copyright's start year in generated tests
Original commit: 9970dd051f
2018-03-14 15:04:58 +03:00
Alexander Udalov 55d5c602ae Move essential metadata-related classes to 'metadata' and 'metadata.jvm'
Original commit: 3f3e05a9d2
2018-03-14 12:25:16 +01:00
Alexander Udalov 5f88fbcd3f Remove dependency of NameResolverImpl on FqName
Remove AbstractJsProtoComparisonTest.getProtoData in favor of
(apparently copy-pasted) IncrementalJsCache.getProtoData

Original commit: b07c6086cd
2018-03-14 12:25:12 +01:00
Alexander Udalov 8845f7051b Make NameResolver.getClassId extension instead of member
To get rid of dependency of NameResolver on ClassId

Original commit: e31f286444
2018-03-14 12:25:11 +01:00
Alexander Udalov 470c4eea57 Move ProtoBuf classes to package org.jetbrains.kotlin.metadata
Original commit: 27ad4f7d5d
2018-03-14 12:25:10 +01:00
Alexey Tsvetkov b3a619bcc3 Revert "Provide custom ConstantAffectionResolver in JPS"
This reverts commit 1a7737494b.

The API in Intellij was changed, now the issue can be fixed only in
182.* branches.

Original commit: 0deec7983d
2018-03-13 21:26:11 +03:00
Alexey Sedunov 0a3b3056d8 MPP: Support multiple 'expectedBy' dependencies for single module
#KT-22865 Fixed

Original commit: d9aa1796cd
2018-03-07 18:34:03 +03:00
Yan Zhulanow 4d1a929809 Add Pill support to compiler and IDE modules
Original commit: 34d1611ed4
2018-03-02 03:15:17 +03:00
Ilya Gorbunov 08f6569827 Move deprecated kotlin-runtime and reduced runtime for tests into stdlib
Rename mock-runtime-for-test project to kotlin-stdlib:jvm-minimal-for-test

Original commit: 5c0cc5f799
2018-02-26 17:11:11 +03:00
Alexey Tsvetkov 1bb8ec4973 Perform a test lookup before build
#KT-22535 fixed
   #KT-22995 fixed

Original commit: d7644559eb
2018-02-22 18:21:37 +03:00
Alexey Tsvetkov 86bc49ba0c Avoid instanciating LookupStorage when clearing it
#KT-22535
  #KT-22995

Original commit: 7c9412a0b3
2018-02-22 18:21:37 +03:00
Alexey Tsvetkov 1605b0c22a Throw BuildDataCorruptedException when lookup operation cannot be performed
That is expected to force a rebuild (but it does not seem to be the case
in case of parallel build).

  #KT-22535
  #KT-22995

Original commit: 140ba0681a
2018-02-22 18:21:37 +03:00
Alexey Tsvetkov 773975e055 Synchronize access to lookup storage in JPS
Storage operations are synchronized already,
but BuildDataManager.getStorage is not synchronized,
so maybe it is possible to create multiple LookupStorage
instances.

    #KT-22535
    #KT-22995

Original commit: 8ab9366ae5
2018-02-22 18:21:37 +03:00
Alexey Tsvetkov 2454ee30bb Compare JS output files against file instead of hardcoded set
A difference is not obvious when two sets are compared:
there might be just one different element, but
sets would be printed in one line in iteration order
(which is non-fixed for hashsets).

Also the properties:
  EXPECTED_JS_FILES_IN_OUTPUT_FOR_STDLIB_ONLY,
  EXPECTED_JS_FILES_IN_OUTPUT_FOR_MODULE_STDLIB_ONLY,
  EXPECTED_JS_FILES_IN_OUTPUT_NO_COPY,
  EXPECTED_JS_FILES_IN_OUTPUT_WITH_ADDITIONAL_LIB_AND_DEFAULT_DIR,
  EXPECTED_JS_FILES_IN_OUTPUT_WITH_ADDITIONAL_LIB_AND_CUSTOM_DIR
are hard to distinguish in code and are not convenient to edit.

Original commit: 7881a305d9
2018-02-22 01:13:09 +03:00
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