Kirill Shmakov
02cedfde21
Make build more stable
2019-10-14 19:31:03 +03:00
Dmitry Gridin
20eb3fb492
referenceUtil: fix matchesTarget for import alias
...
#KT-30012 Fixed
#KT-30432 Fixed
#KT-30736 Fixed
2019-10-14 21:45:12 +07:00
Dmitry Gridin
348d2376b1
referenceUtil: cleanup code
2019-10-14 21:45:12 +07:00
Dmitry Gridin
20784d50ff
CallableBuilder: fix PIEAE
...
#EA-214253 Fix
2019-10-14 21:45:12 +07:00
Dmitry Gridin
0ac2303fad
KotlinSuppressIntentionAction: fix PIEAE
...
#EA-214227 Fix
2019-10-14 21:45:12 +07:00
Dmitry Gridin
e3d9f05d28
KotlinSuppressIntentionAction: cleanup code
2019-10-14 21:45:11 +07:00
Dmitry Gridin
3832924bd7
KotlinMavenPluginPhaseInspection: fix potential PIEAE
2019-10-14 21:45:11 +07:00
Dmitry Gridin
1e81f9499a
KotlinMavenPluginPhaseInspection: cleanup code
2019-10-14 21:45:11 +07:00
Dmitry Gridin
a652a0f6b3
AddReifiedToTypeParameterOfFunctionFix: fix PIEAE
2019-10-14 21:45:11 +07:00
Dmitry Gridin
6898d437cf
AddConstModifierFix: fix PIEAE
...
#EA-214417 Fixed
2019-10-14 21:45:11 +07:00
Dmitry Gridin
bce2202ea3
LetImplementInterfaceFix: fix PIEAE
...
#EA-214415 Fixed
2019-10-14 21:45:11 +07:00
Dmitry Gridin
859537a38d
LetImplementInterfaceFix: cleanup code
2019-10-14 21:45:11 +07:00
Dmitry Gridin
2eb035aff2
generateUtil: fix PIEAE
...
#EA-142347 Fixed
2019-10-14 21:45:11 +07:00
Dmitry Gridin
1a8796c79a
LightClassDataHolder: shouldn't catch ControlFlowException
2019-10-14 21:45:10 +07:00
Dmitry Gridin
7c1f2e8735
LightClassDataHolder: cleanup code
2019-10-14 21:45:10 +07:00
Dmitry Gridin
87ac31d957
UsageReplacementStrategy: shouldn't catch ControlFlowException
2019-10-14 21:45:10 +07:00
Dmitry Gridin
585222b4bb
ScriptDefinitionsManager: shouldn't catch ControlFlowException
...
#EA-209928 Fixed
2019-10-14 21:45:10 +07:00
Dmitry Gridin
ee8e9a76f9
KtScratchExecutionSession: shouldn't catch ControlFlowException
...
#EA-210849 Fixed
2019-10-14 21:45:10 +07:00
Nikolay Krasko
79cb10a755
Patch initializing EmptySubstitutor service and fix null references
...
There's a cycle in service initialization and PsiSubstitutor 'clinit'
2019-10-14 16:55:25 +03:00
Vladimir Dolzhenko
c20bdd3c30
Clean up after reusing allDescriptors() from LazyJavaScope to avoid compute contributed descriptors in LazyJavaPackageScope
2019-10-14 15:49:45 +02:00
pyos
d3992826e4
JVM_IR: discard parameter annotations in anonymous object constructors
2019-10-14 14:54:44 +02:00
Mark Punzalan
78465e280f
Exclude additional generated testData/out-min dir in js/js.translator.
...
This was causing re-indexing in IntelliJ after every time the JS tests
are run.
2019-10-14 14:51:27 +03:00
Egor Ushakov
ea7f6dbd33
EA-208866 - IAE: SafeUtilKt.safeSourceName - fixed in platform
2019-10-14 12:55:18 +03:00
Nicolay Mitropolsky
f6e0e5b80d
Uast: a workaround for getting parent for KotlinUAnonymousClass
...
when it is used in field initialisation
2019-10-14 11:30:20 +03:00
Ilya Goncharov
cb31b42930
[Gradle, JS] Update npm versions
2019-10-14 11:20:36 +03:00
Vladimir Dolzhenko
8bba596c4e
Reuse allDescriptors() from LazyJavaScope to avoid compute contributed descriptors in LazyJavaPackageScope
2019-10-14 10:13:30 +02:00
Mikhail Glukhikh
88bc6b992f
Move .gitattributes for generated files from fir:resolve to fir:tree
2019-10-14 11:12:19 +03:00
Ilya Goncharov
1b929cd93e
[Gradle, JS] Add args instead of full override
2019-10-14 11:09:09 +03:00
Ilya Goncharov
ee49c96650
[Gradle, JS] Set cli args for yarn install
2019-10-14 11:09:09 +03:00
Vladimir Dolzhenko
7b0646d2a5
Reuse allDescriptors() from LazyJavaScope to avoid compute contributed descriptors in LazyJavaPackageScope
2019-10-14 09:57:04 +02:00
Dmitry Gridin
a24e229d7a
CreateExpectedFix: should generate expect declaration in selected module
...
#KT-33933 Fixed
2019-10-14 14:42:29 +07:00
Dmitry Gridin
ac3009082f
QuickFixMultiModuleTest: support hierarchy MPP
2019-10-14 14:42:29 +07:00
Nikolay Krasko
728ccdee63
Don't publish computed value to other threads till post compute is finished (KT-28940)
...
This fixes a race condition with counting supertypes (the only client
of createLazyValueWithPostCompute left at the moment).
#KT-28940 Fixed
2019-10-13 18:21:38 +03:00
Nikolay Krasko
4f488ddd16
Remove lazy values with dummy post compute lambdas
2019-10-13 18:21:38 +03:00
Ivan Gavrilovic
fbde7e47e9
KT-33503: Avoid analyzing module-info.class in KAPT classpath
...
When analyzing classpath changes for incremental KAPT, avoid
analyzing module-info.class files.
Test: ClasspathAnalyzerTest
2019-10-13 15:14:40 +09:00
Ilya Kirillov
1ec620b753
New J2K: fix SOE in inference processing for star-projection as type argument
...
#KT-33942 fixed
#KT-33941 fixed
2019-10-12 15:28:03 +03:00
Ilya Kirillov
b350515237
New J2K: make post-processing aware of other files which are being converted
...
Before post-processing was able to handle only one converting file at once
So, some conversions (like (field, getter, setter) to Kotlin property)
was not able to work when converting class hierarchy was split into
multiple files.
Also, inferring nullability for a set of files was broken
#KT-19569 fixed
#KT-34266 fixed
#KT-32518 fixed
2019-10-12 12:50:34 +03:00
Ilya Kirillov
999918d499
New J2K: add multi-file conversion tests from old j2k
2019-10-12 12:50:34 +03:00
Ilya Kirillov
f951ed9dba
New J2K: introduce external code processing for new J2K
...
It will update usages from files not in conversion scope to a valid ones:
1. When converting (field, getter, setter) triple from Java to a Kotlin property,
it will:
1. Update every usage of getter/setter in Java/Kotlin code to a usage of actual property
2. If property is used in Java directly then will add @JvmField to it
2. When converting static method or static field without getter and setter, which has Java usages then add @JvmStatic to it
#KT-34164 fixed
2019-10-12 12:50:33 +03:00
Ilya Kirillov
7535c2f249
New J2K: fix expose internal/private type errors
2019-10-12 12:50:33 +03:00
Ilya Kirillov
d0f0b9e355
New J2K: do not allow field and method declarations to be internal
...
For internal members new names are generated,
So, references to them from Java will be broken
2019-10-12 12:50:32 +03:00
Alexey Trilis
b30537de0e
Generate Kotlin/JS stdlib dependencies via dukat
2019-10-12 01:39:25 +02:00
Mikhail Zarechenskiy
83bb07e5ac
Revert "Fix performance issue for case when there are a lot of warnings in file"
...
This reverts commit 3d8e5c4f8e .
Temporarily reverting this commit due to new flaky tests
2019-10-12 00:44:00 +03:00
Sergey Igushkin
c13f55f0ad
Cache PropertiesProvider, read the local.properties file lazily
...
Issue #KT-33980 Fixed
2019-10-11 21:32:20 +03:00
Sergey Igushkin
d0604ffde8
Fix requiresVisibilityOf in the Gradle plugin (KT-34312)
...
* Fix adding new items (which was untested, as the logic was only tested
by unit tests)
* Exclude the source set's dependsOn transitive closure from the
requiresVisibilityOf checks (i.e. these source sets are considered
visible)
* Fix minor issues in the `UnsatisfiedSourceSetVisibilityException`
message
* Add `requiresVisibilityOf` to integration tests
Issue #KT-34312 Fixed
2019-10-11 21:32:08 +03:00
Kirill Shmakov
d7a48e7229
Add Native Debug plugin advertising
2019-10-11 19:21:15 +03:00
Mikhail Zarechenskiy
3d8e5c4f8e
Fix performance issue for case when there are a lot of warnings in file
...
There was a problem with `reportDiagnosticOnce` method which was
called, for example, to report diagnostics about experimentalities. It
was crucial for code as in the issue (KT-34204).
The whole complexity was "count of experimental diagnostics" multiply
"count of all diagnostics" multiply very large constant. Almost on
each `reportDiagnosticOnce` method `readonlyView()` was called which
in turn called computation of cache. During cache computation we were
iterating through the all diagnostics and also were using
KotlinSuppressCache, which is not very fast.
#KT-34204 Fixed
2019-10-11 18:47:54 +03:00
Mikhail Zarechenskiy
71cb5e07db
Minor, don't recreate Set with the same values
2019-10-11 18:47:54 +03:00
Ilya Chernikov
1f46e60153
Implement samWithReceiver support for scripts when ...
...
it configured from script compilation configuration
#KT-34294 fixed
2019-10-11 17:43:50 +02:00
Ilya Chernikov
2568804eaa
Instruct platform code to use NIO2 always
...
since we're not always use jna (means that we can get warnings about missing jna libs)
and according to the IDEA team, NIO2 works well enough to rely on it
2019-10-11 17:43:49 +02:00