Commit Graph

3247 Commits

Author SHA1 Message Date
Valentin Kipyatkov 2b83e3721a KT-38003 "Analyze Data Flow from Here" should work on parameter of abstract method
#KT-38003 Fixed
2020-04-18 01:24:51 +03:00
Dmitriy Dolovov c35420eaf6 Minor. Add comments 2020-04-14 21:07:59 +07:00
Dmitriy Dolovov 7be9a2ef17 HMPP. Avoid leaking platform-specific dependencies into common libraries
Issue #KMM-217
2020-04-14 21:07:54 +07:00
Dmitriy Dolovov b67a48f220 HMPP. Rewrite LibraryDependenciesCache on using LibraryInfo/SdkInfo
... instead of pure IJ Library/SDK.
2020-04-14 21:07:49 +07:00
Dmitriy Dolovov 6d0e73191c HMPP: Fix detection of NativePlatform in CompositeResolverForModuleFactory 2020-04-14 21:07:44 +07:00
Dmitriy Dolovov 90398fd087 Minor. Specify explicit property types 2020-04-14 21:07:33 +07:00
Dmitriy Dolovov e3e1c2cb3b HMPP: Fix detection of PlatformDependentAnalyzerServices for TargetPlatform 2020-04-14 21:07:11 +07:00
Dmitriy Dolovov 8d2e999776 HMPP: Parameterize NativePlatform with KonanTarget 2020-04-14 21:06:48 +07:00
Vladimir Dolzhenko b0483a67c2 Perform tryLock-and-checkCanceled on waiting lock in LockBasedStorageManager
Relates to #KT-38012
2020-04-14 13:11:30 +02:00
Igor Yakovlev ca10c40e05 Remove anonymous declarations from Structure View 2020-04-13 21:55:22 +03:00
Igor Yakovlev d4e043c3e8 Fix visibility and expect/actual icons of the PsiElements
Fixed #KT-32886
2020-04-13 21:55:21 +03:00
Igor Yakovlev 185b0be76c Add constructors icon to ProjectView 2020-04-13 21:55:21 +03:00
Vladimir Dolzhenko 6494a2d902 Invalidate ResolveElementCache on project roots change
#KT-38206 Fixed
#EA-221073 Fixed
2020-04-13 12:03:17 +00:00
Roman Golyshev d7667209b2 KT-37144 Respect quotes in package name during decompilation
- Odd package names (for example `try` in `arrow-core`) were pasted
as-is to the decompiled text
- Because of this, stub checks were failing, forcing completion to start
over and over again, as if something changed in the files
- See EA-5572315 for the error
- ^KT-37144 Fixed
2020-04-13 07:34:28 +00:00
Alexey Tsvetkov 1c38466a22 Pass LookupTracker to deserialized scopes in JS KLIB compiler
Before this change, deserialized scopes were not tracking lookups properly,
because lookup tracker was not passed from compiler configuration correctly.
Because of that, lookups from dependencies were not tracked,
so multi-module IC was not working (chages were passed between modules,
but affected source files were not invalidated).
2020-04-10 05:35:45 +03:00
Vladimir Dolzhenko b51ae78b84 Do not resolve alias imported references on rename
#KT-38096 Fixed
2020-04-09 20:38:01 +00:00
Dmitriy Dolovov 954ef7d7d6 Minor. Inline function call. Return back comments. 2020-04-09 09:46:51 +07:00
Konstantin Tskhovrebov 2726f7f5ed Fix Klib file check.
#KT-37876
2020-04-07 12:47:54 +07:00
Vladimir Dolzhenko 659378f806 Do not use synchronized for fetchAnalysisResultsForElement
Relates to #KT-37467
2020-04-06 19:25:52 +02:00
Dmitry Gridin 423a9dd70d i18n: make text from intention lazy
#KT-37483
2020-04-06 15:02:40 +07:00
Vladimir Dolzhenko e73a573885 Fetch analysis results if it is available
The general idea is to try to fetch a full analysis if it is existed in PerFileAnalysisCache instead of go to ResolveElementCache and do analysis there. Do not perform analysis if it is not in PerFileAnalysisCache.

#KT-37467 Fixed
2020-04-04 22:36:08 +02:00
Dmitry Gridin 25dfc6dd63 i18n: make text from intention lazy
#KT-37483
2020-04-03 22:06:00 +07:00
Igor Yakovlev a71fd0e6d9 Support for showing rendered doc comments in editor
Fixed #KT-37361
2020-04-03 12:38:51 +03:00
Matthew Gharrity 5786578f38 Fix NPE in ProjectRootsUtilKt.isKotlinBinary
Fixes KT-37933
2020-04-02 17:48:25 +03:00
Dmitriy Dolovov 5e1e9876fd IDE: Don't use direct refs on IdePlatformKindResolution EP instances 2020-04-01 23:10:55 +07:00
Dmitriy Dolovov 132464fa4f Minor. Rename KotlinLibrary.readSafe() -> KotlinLibrary.safeRead() 2020-04-01 23:10:37 +07:00
Vladimir Dolzhenko 9f09e50a28 ApplicationUtils syntax improvements 2020-03-31 17:00:19 +02:00
Pavel Kirpichenkov b7ea590e23 [IDEA] Add HTML render for ambiguous callable references diagnostic
^KT-36125 Fixed
2020-03-31 12:04:01 +03:00
Dmitry Gridin 81d35e1e61 i18n: add dynamic text getters for SelfTargetingIntention
#KT-37483
2020-03-30 14:58:36 +07:00
Dmitry Gridin d9c356b041 i18n: add displayedName to ModuleTestSourceInfo
#KT-37483
2020-03-30 14:58:36 +07:00
Dmitry Gridin ab07fa5f6c i18n: fix IdeaModuleInfos
#KT-37483
2020-03-30 14:58:32 +07:00
Dmitry Gridin a5cc11317e i18n: fix KotlinSuppressableWarningProblemGroup
#KT-37483
2020-03-30 14:58:31 +07:00
Dmitry Gridin 986bc3fb8f i18n: update bundle in idea-analysis
#KT-37483
2020-03-30 14:58:27 +07:00
Dmitry Gridin 871a6caddb i18n: remove duplication in IdeErrorMessages
#KT-37483
2020-03-30 14:58:26 +07:00
Dmitry Gridin 54a3d8e3ad i18n: update bundle for KotlinSuppressableWarningProblemGroup
#KT-37483
2020-03-30 14:58:25 +07:00
Dmitry Gridin 297a443fe4 i18n: fix name/displayedName for ModuleInfo
#KT-37483
2020-03-30 14:58:25 +07:00
Dmitriy Dolovov 9bbfe9c1ac Rename: KonanPlatform, KonanPlatforms -> NativePlatform, NativePlatforms 2020-03-29 23:20:52 +07:00
Dmitriy Dolovov dfbbae3991 IDE, Common: Don't create KLIB metadata factories for each new KLIB 2020-03-29 23:20:46 +07:00
Dmitriy Dolovov 5b9770a4dd IDE, JS: Don't create KLIB metadata factories for each new KLIB library 2020-03-29 23:20:41 +07:00
Vladimir Dolzhenko 674f1d129f Clean up of plugin-common.xml and convert components to services 2020-03-27 07:54:14 +00:00
Roman Golyshev b0bd39e715 KT-36068 Remove redundant commitAllDocuments calls
- Those calls seem to be redundant since the platform already
commits all documents before invoking any intention
- Also those calls are getting in the way of `Preview Intention` action
by requiring write action, which is not granted by the platform at
the moment
2020-03-25 17:52:29 +03:00
Dmitry Savvinov abd20e3a90 Cache Library -> LibraryInfo mapping
With Klibs, creation of LibraryInfo isn't that cheap now -- it usually
involves inspecting files in roots, reading manifest and such (see for
example NativePlatformKindResolution.createLibraryInfo)
2020-03-25 17:23:36 +03:00
Dmitry Savvinov 7d5396ac95 Introduce ModuleInfo -> SdkInfo cache
This fixes KT-35050 properly by caching this mapping and preventing
inspecting dependencies multiple times.
2020-03-25 17:23:36 +03:00
Denis Zharkov 94193c91a0 FIR: Refactor designated body transformers
The idea is making their mechanics more transparent and clear
Namely, we should move to the next level of designation only for declaration's content

Otherwise there might be some wrong steps when somebody just randomly
calls "transformElement" on the parent declaration.
For example, it happens for local classes when we resolve their supertypes, etc.
2020-03-25 14:49:28 +03:00
Denis Zharkov 7927ef9f66 FIR: Extract BodyResolveContext from BodyResolveTransformerComponents
Its content is assumed to be changing and might be injected into
body resolver
2020-03-25 14:48:53 +03:00
Dmitriy Novozhilov 2c37627b15 [FIR] Add unified diagnostics for psi and light tree 2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov 1a3fef5fa1 [FIR] Switch names of FirDiagnostic and ConeDiagnostic 2020-03-25 11:35:43 +03:00
Vladimir Dolzhenko dfd42dae1f Revert back fetchAnalysisResultsForElement
Relates to #KT-37467
2020-03-24 18:58:38 +01:00
Dmitry Gridin f92936ae12 AbstractKotlinInspection: fix suppressor
#KT-37576 Fixed
2020-03-24 09:35:10 +00:00
Dmitriy Dolovov 01558f48ae KLIB: Clean-up AbstractKlibLibraryInfo API 2020-03-24 13:37:51 +07:00