Alexey Andreev
524001e97e
Add support for relative JS source map paths in JPS
...
Original commit: 1d6f01ee6c
2017-06-20 17:40:33 +03:00
Alexander Udalov
c27636cf3a
CLI: fix non-XML rendering of argument parse error, simplify code
...
If the compiler is invoked through JPS, an instance of
XmlMessageRenderer is used and the output should be a valid XML.
Previously, we reported the argument parse error (and the note to try
"-help") before calling messageRenderer.renderPreamble, which resulted
in invalid XML. The same was happening for the usage printed on "-help".
Both of these problems are fixed
#KT-14848 Fixed
Original commit: a802e7fb71
2017-06-06 19:52:04 +03:00
Alexey Tsvetkov
c70d749476
Set destination to null when module is set in JPS
...
This fixes the warning "The '-d' option with a directory destination
is ignored because '-module' is specified", when a project imported
from Gradle is built with JPS.
#KT-17665 fixed
Original commit: b06b18de07
2017-05-31 16:59:03 +03:00
Alexander Udalov
7231c777c1
Fix compilation against JRE 9 on JPS
...
Write the modular JDK (9+) path to the module.xml file passed to the
compiler from the JPS plugin. This path is then recorded in the compiler
configuration in KotlinToJVMBytecodeCompiler.configureSourceRoots. This
is needed because in JPS plugin, we pass "-no-jdk" and thus no JDK home
path was recorded in the compiler configuration in
K2JVMCompiler.setupJdkClasspathRoots. Presence of JDK home path in the
configuration is crucial for JDK 9 support (see
KotlinCoreEnvironment.Companion.createApplicationEnvironment), because
classes there can only be loaded with the special "jrt" file system, not
as .class files in .jar files
#KT-17801 Fixed
Original commit: 965b4199f4
2017-05-24 15:46:57 +03:00
Anton Bannykh
48328f7989
JS: support internal visibility from friend modules
...
Friend modules should be provided using the -Xfriend-modules flag
in the same format as -libraries. No manual configuration required for
JPS, Gradle and Maven plugins.
Friend modules could be switched off using the -Xfriend-modules-disabled
flag. Doing that will
* prevent internal declarations from being exported,
* values provided by -Xfriend-modules ignored,
* raise a compilation error on attemps to use internal declarations from other modules
Fixes #KT-15135 and #KT-16568.
Original commit: 2e9a59819a
2017-05-04 21:44:17 +03:00
Zalim Bashorov
6bedbfb67f
Add tests for KT-12199 to prevent regression
...
#KT-12199 Obsolete
Original commit: 712b2c8117
2017-04-11 15:46:13 +03:00
Alexander Udalov
2208b46941
Support nested classes in KotlinCliJavaFileManagerImpl.findClass
...
findClass(String, GlobalSearchScope) is invoked for example when we're
resolving supertypes of classes in Java libraries. Previously, it never
found nested classes and falled back to CoreJavaFileManager's
implementation, which lacks a fix for the original issue (KT-12664,
which was fixed in JvmDependenciesIndex in ff783f1f and 2c344635)
#KT-16931 Fixed
Original commit: c67eb84369
2017-03-27 17:19:24 +03:00
Anton Bannykh
07691e369a
JPS JS: simplified the code and added tests for the missing meta.js case (e.g. empty sourceroot; fixed by yole in 00ed0248d9a23701dbef52da02259d174a9999e7)
...
Original commit: 6608e97d35
2017-02-28 16:05:16 +03:00
Alexey Andreev
b4086fe033
JS: drop support of old library format
...
Original commit: 7192529733
2017-02-10 21:04:50 +03:00
Anton Bannykh
81ab76ade8
JPS: fixed duplicate meta.js in case of multiple source roots in the same module.
...
Original commit: f0e3c87b84
2017-02-03 13:03:12 +03:00
Anton Bannykh
36035c789a
JS: fixed support for test source roots (KT-6627)
...
Original commit: 289a7a9cc3
2017-02-03 13:03:12 +03:00
Alexey Tsvetkov
9f8ba45853
Rebuild all kotlin files when EAP flag is changed
...
Original commit: b9dbe69232
2017-01-26 13:38:52 +03:00
Alexander Udalov
c22ccf58c0
Remove quotes around visibility in invisible member diagnostic
...
Original commit: 83000c50ff
2016-07-22 18:13:41 +03:00
Alexander Udalov
b3a54cff83
Improve error message for inaccessible invisible_fake members
...
#KT-8989 Fixed
Original commit: b6b2303aa7
2016-07-22 18:13:40 +03:00
Zalim Bashorov
7e1baf1a69
JPS: don't consider that production target of module "B" is depends on test target of module "A" when "B" depends on "A"
...
#KT-12595 Fixed
Original commit: 0e428ca10c
2016-06-15 15:01:32 +03:00
Zalim Bashorov
26ed20a54b
Minor: add test for KT-11993 "NoSuchMethodError when testing internal symbols"
...
Original commit: c11d504a26
2016-05-05 20:45:29 +03:00
Pavel V. Talanov
8f456556f6
Update existing test data depending on diagnostic parameter rendering
...
Original commit: a4c005fefd
2016-02-26 14:45:11 +03:00
Mikhail Glukhikh
cb985c0d13
Effective visibility: concise diagnostic messages #KT-10761 Fixed
...
Also #KT-9760 Fixed
Original commit: 1bbc46729c
2016-02-16 15:58:50 +03:00
Dmitry Jemerov
4e8365084f
tests fixed
...
Original commit: b60621c428
2016-01-19 10:53:53 +01:00
Dmitry Jemerov
7998e7884c
add test to check that "Only the Kotlin standard library is allowed to use the 'kotlin' package" is reported in JPS builds
...
Original commit: 39c6e3712b
2016-01-19 10:53:49 +01:00
Zalim Bashorov
da42c05672
Don't fail when create IncrementalCacheImpl for target without output directory, and fail when try to use this info instead.
...
#KT-10505 Fixed
Original commit: c1dbfee2a9
2016-01-13 21:37:36 +03:00
Zalim Bashorov
b7971cf9ae
Don't fail when output directory not specified for "friend" build target
...
#KT-10505 Fixed
Original commit: d9af9472f0
2016-01-13 21:09:06 +03:00
Zalim Bashorov
b87baebf1f
Report error when output directory not specified for build target
...
#KT-10505 Fixed
Original commit: 3df091e7cf
2016-01-13 21:09:05 +03:00
Mikhail Glukhikh
cc0adf19a9
Exposed visibility deprecation warnings made errors + relevant test fixes
...
Original commit: 4e44466cf9
2015-11-20 15:21:01 +03:00
Nikolay Krasko
6f3c2c1493
Test that fails with package prefixes but works good without them
...
Original commit: 33fd247bde
2015-11-12 19:19:42 +03:00
Michael Nedzelsky
ba12afbbb9
fix access from tests to internal elements in production code in case of circular dependency
...
Original commit: 5b59fc74bc
2015-11-11 19:16:21 +03:00
Nikolay Krasko
b77f4ffe9f
Teach index working with source roots with package prefix
...
#KT-9167 Fixed
Original commit: 23e35ab112
2015-11-10 01:50:09 +03:00
Michael Nedzelsky
731268085f
fix KT-9299 In a project with circular dependencies between modules, IDE reports error on use of internal class from another module, but the corresponding code still compiles and runs.
...
#KT-9299 Fixed
Original commit: 6ebe0c30ec
2015-10-30 14:40:46 +03:00
Dmitry Petrov
abac00df69
KT-6165, KT-9547: fix testData for JPS plugin.
...
Test contains effectively single module (with circular dependencies),
and should not have conflicting declarations.
Rename the package in a library used in this test.
#KT-9547 Fixed
Original commit: 1a58636ea9
2015-10-22 11:37:01 +03:00
Michael Nedzelsky
4755cab740
fix check for internal from another module in imports and file level annotations
...
Original commit: 0035bbba7c
2015-09-27 20:37:41 +03:00
Alexey Tsvetkov
eabfd142f3
Create Kotlin incremental caches only on write
...
Original commit: fe390a04c5
2015-09-25 20:11:56 +03:00
Michael Nedzelsky
5852d10a1a
add tests in KotlinJpsTest for check access to internal elements from another module
...
Original commit: 0b49195a03
2015-09-25 14:02:26 +03:00
Michael Nedzelsky
b23cbc0ade
Revert "add test for check access to internal elements from another module"
...
This reverts commit b4e7a9c740 .
Original commit: db602df146
2015-09-23 17:45:38 +03:00
Michael Nedzelsky
b4e7a9c740
add test for check access to internal elements from another module
...
#KT-9178 Fixed
Original commit: 4d9eaf19c3
2015-09-23 07:49:33 +03:00
Dmitry Jemerov
14c45372ee
remove support for 'trait' keyword
...
Original commit: 4ca434da54
2015-09-22 15:00:24 +02:00
Nikolay Krasko
83f9db33ce
Don't filter class files and jars from build script. Get a warning about their absence.
...
Original commit: 5b3c05d039
2015-08-20 18:48:38 +03:00
Michael Nedzelsky
22c07485dd
add tests for KT-8158 make Kotlin compiler invoked from IDEA cancellable
...
Original commit: 8cd978bfd8
2015-07-03 16:14:08 +03:00
Evgeny Gerashchenko
0994979f05
Fixed iml files in test data. Order entry for own sources is obligatory.
...
Original commit: fe3437e8a1
2015-06-01 19:02:12 +03:00
Evgeny Gerashchenko
4b08b13289
Minor. Fixed typo in test data.
...
Original commit: 37d6c9bf25
2015-06-01 19:02:11 +03:00
Nikolay Krasko
395e5446fb
Place light classes finder before standard PsiElementFinderImpl
...
Source elements should have priority over libraries.
Original commit: 3c7e7ffda6
2015-05-13 21:32:09 +03:00
Nikolay Krasko
1937ee3986
Compile modules with circular dependency as one module
...
Original commit: 2d8dcaddd0
2015-05-06 14:19:20 +03:00
Michael Nedzelsky
ee825b9cf3
JS: add jps build test for Kotlin/Javascript two-module project
...
Original commit: 563ab47502
2015-04-03 05:36:13 +03:00
Michael Nedzelsky
c2c19e70da
do not copy js files from libraries in case of compile errors
...
Original commit: d909a66d4d
2014-12-16 21:37:46 +03:00
Evgeny Gerashchenko
3a3e5a547e
Added test checking that we don't create Kotlin incremental caches for targets without Kotlin.
...
Original commit: 8de11e4664
2014-12-15 16:46:27 +03:00
Michael Nedzelsky
a275c81c1e
add tests for jps-plugin (Kotlin Javascript projects)
...
Original commit: bd090d0e5f
2014-12-12 03:04:19 +03:00
Nikolay Krasko
dac7ffbad2
Merge remote-tracking branch 'origin/master' into idea14
...
Original commit: 465dd45eae
2014-07-02 09:21:40 +04:00
Alexander Udalov
ac3cbf547c
Generate "$kotlinClass"/"$kotlinPackage" reflection fields to every class
...
Some seemingly irrelevant tests were changed because now there's <clinit> in
almost every class and class initialization begins with executing it
Original commit: 59777e7df6
2014-07-02 01:26:18 +04:00
Nikolay Krasko
2795640c6b
Test package facade recompile after removing several files
...
Original commit: 2f776affb3
2014-06-20 17:19:46 +04:00
Evgeny Gerashchenko
292a3ca205
Corrected and simplified compilation of module chunk.
...
Original commit: 601a691e18
2014-06-04 15:34:17 +04:00
Evgeny Gerashchenko
178d7793e9
Renamed and refactored test.
...
Original commit: ad8affe07c
2014-06-04 11:36:42 +04:00