Commit Graph

21515 Commits

Author SHA1 Message Date
Nikolay Krasko fa44cab9dc Extend compatibility for 193 branch to upcoming 201.* release 2019-10-16 13:03:58 +03:00
Dmitry Gridin 40c3e436d1 ShortenReferences: add test with lots of FqName with root prefix 2019-10-16 16:35:43 +07:00
Dmitry Gridin bf7c325f43 Completion: should prefer ShortenReferences by elements instead of text range 2019-10-16 15:59:47 +07:00
Dmitry Gridin 2d43d71727 CompletionUtils: cleanup code 2019-10-16 15:59:47 +07:00
Dmitry Gridin 8161403e69 ShortenReferences: shouldn't analyze root prefix elements & should get rid of them at end
Relates to #KT-33937
2019-10-16 15:59:47 +07:00
Dmitry Gridin aa364ea14e KotlinIntroduceImportAliasHandler: fix PIEAE 2019-10-16 15:36:20 +07:00
Dmitry Gridin d9faaddcca delayedRequestsWaitingSet: performDelayedRefactoringRequests should commit all documents before refactoring
#KT-34365 Fixed
2019-10-16 15:36:00 +07:00
Dmitry Gridin 72eee17bff delayedRequestsWaitingSet: cleanup code 2019-10-16 15:36:00 +07:00
Anton Yalyshev 1e921647fe Bump FUS Collectors versions after last changes for proper data fetching 2019-10-15 16:15:10 +03:00
Yan Zhulanow 9c88a1f807 Debugger: Fix language detection in FUS 2019-10-15 22:06:45 +09: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 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
Egor Ushakov ea7f6dbd33 EA-208866 - IAE: SafeUtilKt.safeSourceName - fixed in platform 2019-10-14 12:55:18 +03: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
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 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
Kirill Shmakov d7a48e7229 Add Native Debug plugin advertising 2019-10-11 19:21:15 +03:00
Nikolay Krasko 93c91862f1 Fix debugger tests compilation in 193 after the big refactoring 2019-10-11 14:06:47 +03:00
Natalia Selezneva 1a7f1dff10 Simplify scratch test without runtime to avoid exception form resolver
Create an issue that caused failure of the original test
^KT-34233
2019-10-11 12:33:17 +03:00
Natalia Selezneva 768200266a Add idea-android module to dependencies of scripting-support because it is needed for tests 2019-10-11 12:31:42 +03:00
Vladimir Dolzhenko e9894fb35a Fixed errors reporting in tearDown in performance tests 2019-10-10 18:01:07 +02:00
Dmitriy Novozhilov cb981919f9 [FIR] Replace FIR tree with generated implementation 2019-10-10 17:53:30 +03:00
Vladimir Dolzhenko 5e1efead9a Fixed errors reporting in tearDown in performance tests 2019-10-09 13:39:13 +02:00
Vladimir Dolzhenko 55548d9199 Use test path relative to testDataPath in fixture.configureByFile to be complaint with 193, part 3 2019-10-09 07:34:25 +02:00
Alexey Kudravtsev 9c1e59c720 Use ReentrantLock instead of ReadWriteLock as a more cheaper alternative more suitable to usage pattern 2019-10-08 18:20:05 +03:00
Mikhail Glukhikh 07e067102b FIR body resolve: use one scope session per module
Gives significant (~5%) performance boost mainly due to use-site scope caching
2019-10-08 17:59:44 +03:00
Mikhail Glukhikh 4cd8b78779 FIR: eliminate most usages of FirSession.service() and getService() 2019-10-08 16:19:54 +03:00
victor.petukhov 94469827ba Use new -Xinline-classes compiler flag in the corresponding IDEA intention 2019-10-08 15:17:34 +03:00
Natalia Selezneva 17dcdb59de Configuration: move scratch tests to separate module 2019-10-08 15:02:32 +03:00
Natalia Selezneva f2f97a9991 Troubleshooting tests: check that REPL process is stopped before continue test 2019-10-08 15:02:06 +03:00
Dmitriy Dolovov 2bc0a3c9c0 Fix KNPE after calling completion in native targeted filesIssue KT-34158 Fixed 2019-10-08 18:27:23 +07:00
Vladimir Dolzhenko cd32c06df8 Don't grab ref to DeclarationDescriptor into LookupElement, KT-33898 2019-10-08 12:48:33 +02:00
Yan Zhulanow 66758472c7 Fix EA-209316: Allow null JDI values in captured value data 2019-10-08 19:13:56 +09:00
Yan Zhulanow d153aa87a8 Fix EA-126019: Handle 'null' PsiType as nullable Any in "Create" actions 2019-10-08 19:13:56 +09:00
Yan Zhulanow 472ec72eb9 Refactor debugger tests
1. Move tests to their own module
2. Avoid sharing the 'tinyApp' project between tests
3. Clean up option directive handling
2019-10-08 19:13:56 +09:00
Yan Zhulanow d8d81c51d7 Move debugger test data to the new location 2019-10-08 19:13:55 +09:00