Roman Golyshev
637d3430ff
KT-39869 Remove redundant performDelayedRefactoringRequests call
...
- In `ObsoleteExperimentalCoroutinesInspection` it is redundant because
it is performed immediately after the single `bindToFqName` call,
so there is no reason to postpone the refactoring and then immediately
invoke it
- In `ObsoleteKotlinJsPackagesInspection` there are no reason to call
it at all (no refactorings are postponed)
2020-07-06 18:04:02 +00:00
Roman Golyshev
5cf6b860a6
KT-39869 Add inspection for FQN usages of kotlin.browser package
...
- `kotlin.dom` does not need this because it contains only extensions
- Add test for launching whole project fix; mute it because currently it
does not pass
- The test fails because in tests `RefJavaManager` tries to create
`RefJavaFileImpl` for .kt files. It will try to use UAST, but it
does not work for JS files. In production this is disabled, so no
problems occur
2020-07-06 18:04:01 +00:00
Roman Golyshev
91fa5d38b3
KT-39869 Fix review suggestions
...
- Review: https://jetbrains.team/p/kt/review/1349
2020-07-06 18:04:00 +00:00
Roman Golyshev
75de352ce2
KT-39869 Add ObsoleteKotlinJsPackagesInspection inspection
...
- This inspection allows to migrate from `kotlin.dom|kotlin.browser`
to `kotlinx.dom|kotlinx.browser` packages respectively
- This inspection is available from the import statements, and also
from the `Run migrations` action
- ^KT-39869 Fixed
2020-07-06 18:04:00 +00:00
Roman Golyshev
ec087e8f3d
KT-39869 Move base classes to separate file
2020-07-06 18:03:59 +00:00
Roman Golyshev
871bb30dbe
KT-39869 Refactor ObsoleteExperimentalCoroutinesInspection.kt
...
- We need this to reuse the logic for migration inspections
2020-07-06 18:03:58 +00:00
Toshiaki Kameyama
6b5c31e2fc
Move statement up: do not apply to @file annotation
...
#KT-10790 Fixed
2020-07-06 17:50:39 +02:00
Yaroslav Chernyshev
aeed7fe52d
KT-36801 Added forgotten changes for 192 platform
...
#KT-39989 Fixed
2020-07-06 18:07:11 +03:00
Ivan Kylchik
574aa0affe
[FIR] Fix synthetic property is not var due to Nullable on parameter
...
Synthetic property is var when it have setter. The latter is set up
in property when its parameter type is equal to getter return type. In
case of using @Nullable, parameter type of setter is not equal to
return type of getter, because the latter is flexible type. So to fix
this verification should occur using not null types
#KT-39076 Fixed
2020-07-06 17:52:37 +03:00
Pavel Punegov
48c5f48af0
Ignore test in Native, see #KT-38859
2020-07-06 17:33:12 +03:00
Ilya Goncharov
cb3d7349a3
[Gradle, JS] Deprecation of frontend plugin
...
^KT-40048 fixed
2020-07-06 17:30:31 +03:00
Natalia Selezneva
56afd763dc
Minor: add debug log messages
2020-07-06 15:53:28 +03:00
Natalia Selezneva
6c0d91837c
Load file attributes for last modified files under try-catch
...
This should avoid exceptions from initialization of GradleBuildRootsManager.EP
EA-232521 Fixed
2020-07-06 15:52:43 +03:00
Ilya Goncharov
03bc61c80a
[Gradle, JS] Add test on public package json inside archives (jar and klib)
2020-07-06 15:23:33 +03:00
Ilya Goncharov
f76a1f0e86
[Gradle, JS] jsJar dependsOn PublicPackageJsonTask
...
But package.json included into jar only if public npm dependencies exists
2020-07-06 15:23:33 +03:00
Ilya Goncharov
5c968acb13
[Gradle, JS] Simplify creation of public package json task
2020-07-06 15:23:33 +03:00
Ilya Goncharov
a2d5cda716
[Gradle, JS] Output file of public package json as var for changing it
2020-07-06 15:23:33 +03:00
Ilya Goncharov
a4ad3d88c6
[Gradle, JS] Remove duplicate of reporting js compiler statistic
2020-07-06 15:10:16 +03:00
Vladimir Dolzhenko
974dfbc9ab
Advance bootstrap to 1.4.20-dev-1680
2020-07-06 12:04:11 +02:00
Vladimir Ilmov
a2040f01bf
Body elements resolution in KotlinDebuggerCache added / analyzeWithContentAndGetResult
...
While we trying to find an inlined SourcePosition, the body should be
resolved KotlinPositionManager.getLambdaOrFunIfInside / InlineUtil.isInlinedArgument
to make shure the lambda is an argument for a call.
#KT-39309 fixed
#KT-39435 fixed
2020-07-06 11:33:50 +02:00
zoobestik
e9c8904445
Fix kotlin language highlight for CONCURRENCY.md
2020-07-06 16:17:46 +07:00
Dmitriy Novozhilov
a0f8ada285
[FIR-TEST] Unmute failing diagnostic tests
2020-07-06 12:11:57 +03:00
Igor Yakovlev
4707f4fc3f
Change signature does not make doubled refactoring for java usages
...
Fixed #KT-22170
2020-07-06 11:54:36 +03:00
Pavel Punegov
801f6a5036
Emit 'fneg' for unary minus with floating point operand.
...
Simple negation from 0 doesn't work in case -0.0 argument.
2020-07-06 11:45:06 +03:00
Pavel Punegov
b1f1cde535
Fix math tests: run as a standalone test.
2020-07-06 11:45:06 +03:00
Pavel Punegov
5d0fbeb15a
Fix hypot corner cases: NaN and Inf function arguments.
2020-07-06 11:45:06 +03:00
Pavel Punegov
b4dbdbb508
Add hypot(NaN, 0.0) that fails on ios_arm64
2020-07-06 11:45:06 +03:00
Pavel Punegov
b4408d6d6c
Simple test for hypotf and hypot math functions.
2020-07-06 11:45:06 +03:00
Pavel Punegov
126d1caba1
Calculate expected value according to the platform endianness: layout of bytes is different for Big Endian mips32.
2020-07-06 10:53:50 +03:00
Dmitry Gridin
7b9fad00a1
Rename KotlinLikeLangLineIndentProvider to KotlinLangLineIndentProvider
...
Relates to #KT-22211
2020-07-06 14:51:29 +07:00
Dmitry Petrov
b75de60afb
Minor: mute failing test
2020-07-06 10:47:10 +03:00
Mikhail Zarechenskiy
d8f701ee61
Add test for obsolete issue
...
#KT-39588 Obsolete
2020-07-05 18:17:44 +03:00
Vladimir Dolzhenko
03d5fe8d6c
Add dispatchAllInvocationEvents to editor actions in perf tests
2020-07-04 23:33:02 +02:00
Vladimir Dolzhenko
a830c69a30
Regenerate TypingIndentationTestBaseGenerated
2020-07-04 22:25:09 +02:00
Vladimir Krivosheev
75b1cf8a23
Explicitly specify id of KotlinNonJvmSourceRootConverterProvider
...
IDEA 2020.3 uses `id` from extension definition to avoid creating instance of converter without need.
2020-07-04 15:38:15 +02:00
Pavel Punegov
825a02cfca
Replace empty argument in opts with if
2020-07-04 10:49:37 +03:00
Pavel Punegov
6d7004bf68
Add isStatic to the Framework. Static frameworks should not be copied to the application directory during xcode build.
2020-07-04 10:49:37 +03:00
Pavel Punegov
2a13a1158b
Fix path that contains task name when copying frameworks
2020-07-04 10:49:37 +03:00
Vasily Levchenko
53ff9eff28
[test][debugger] refactoring
2020-07-04 08:42:35 +02:00
Vasily Levchenko
f897ad6f23
[build][test][debugger] enabled on OSX
2020-07-04 08:42:35 +02:00
Vasily Levchenko
16f800e3fa
[test][debugger] char in kotlin is short in c
2020-07-04 08:42:35 +02:00
Vasily Levchenko
094b5afa21
[test][dwarfdump] initial tests added
2020-07-04 08:42:35 +02:00
Vasily Levchenko
4041efb88f
[test][dwarfdump] infrostructure for parsing dwarfdump output
2020-07-04 08:42:35 +02:00
Vasily Levchenko
a92e428289
[test][debugger] make reading of std{out,err} asynchroneous
...
- this fix issue on big amount data in stdout or stderr, making program hanging on waiting when appear some room in stdout/stderr buffer
[test][debugger] DevToolsSecurity check and stdio/stderr async processing
2020-07-04 08:42:35 +02:00
Martin Petrov
c1f0a6048b
KT-39670: -Xdebug-prefix-map for path remapping
...
This introduces a new `-Xdebug-prefix-map` flag. When compiling files
with directories prefixed by the map key, the prefix will be changed to
the map value. This allows for reproducable builds by replacing
absolute paths with relative ones.
(cherry picked from commit bba4ce1c2c5ee06b9f5f65148ac8ef883715474a)
2020-07-04 08:42:35 +02:00
Vyacheslav Karpukhin
6ecd2e57fb
Created bunch 203
2020-07-04 02:11:18 +02:00
Vladimir Dolzhenko
357746e344
Do not force FULL analysis for PARTIAL_FOR_COMPLETION for the current open file
...
Relates to #KT-38687
2020-07-03 22:57:22 +02:00
Vladimir Dolzhenko
51375ed278
PluginStartupListener clean up
...
Relates to #KT-39968
2020-07-03 22:30:15 +02:00
Vladimir Dolzhenko
0b2e15d20c
PluginStartupListener clean up
...
Relates to #KT-39968
2020-07-03 22:05:43 +02:00
Mikhail Zarechenskiy
01f2b0e26b
Fix test data about JsExport
...
It allows only for top-level declarations, plus JsName is needed to
avoid error about method redeclaration
2020-07-03 21:23:29 +03:00