Commit Graph

21492 Commits

Author SHA1 Message Date
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
Yan Zhulanow b4cc5703de Minor: Reformat several IDEA debugger tests 2019-10-08 19:13:53 +09:00
Yan Zhulanow 6b2b66e8e3 Run configurations: Fix compatibility with 2018.3 2019-10-08 18:17:07 +09:00
Yan Zhulanow 44b7a5cc36 Make KotlinFacetSettingsProvider.getInstance() nullable
A module may not have a KotlinFacet.
It isn't correct to throw an exception in that case.
2019-10-08 18:17:06 +09:00
Yan Zhulanow f408c249f1 Implement class/method run configurations for MPP projects 2019-10-08 18:17:06 +09:00
Yan Zhulanow 0a8f15c745 Generify Gradle importing tests so they can be used in the Ultimate repo 2019-10-08 18:17:06 +09:00
Yan Zhulanow 82c88f9cc4 Disable alternative locations for new MPP as alternative locations aren't supported in Gradle 2019-10-08 18:17:05 +09:00
Yan Zhulanow 8f4063b36c Implement test icon provider for 'native' platform 2019-10-08 18:17:05 +09:00
Nikolay Krasko 080407e8e6 Separate versions for 192 and 193 plugins (KT-34191)
#KT-34191 Fixed
2019-10-07 15:00:05 +03:00
Anton Yalyshev f17e9ba9fe Return older android.tools.build version, as we have problems with newer one 2019-10-04 20:43:44 +03:00
Vyacheslav Gerasimov daa25dd56a 193: Fix AbstractResolveByStubTest fixture configuration 2019-10-04 20:23:02 +03:00
Vyacheslav Gerasimov a5d668a093 193: Fix AbstractInlineTest fixture configuration 2019-10-04 20:23:02 +03:00
Vyacheslav Gerasimov c07833f13a 193: Fix AbstractNameSuggestionProviderTest fixture configuration 2019-10-04 20:23:02 +03:00
Vyacheslav Gerasimov 04ee38c913 193: Fix AbstractParameterInfoTest fixture configuration 2019-10-04 20:23:02 +03:00
Vyacheslav Gerasimov 1392e7574c 193: Fix AbstractKotlinGotoTest fixture configuration 2019-10-04 20:23:01 +03:00
Vyacheslav Gerasimov 98f8e0c800 193: Fix code fragment tests fixture configuration 2019-10-04 20:23:01 +03:00
Vyacheslav Gerasimov dad9958adf 193: Fix test fixture configuration
Path to test data file should be relative to test data directory
2019-10-04 17:04:54 +03:00
Anton Yalyshev fa9125df7d Set JVM 1.8 for test source set as well #KT-34154 Fixed 2019-10-04 16:19:59 +03:00
Alexey Kudravtsev 008b916755 avoid unnecessary usage of private API class HighlightSession 2019-10-04 15:14:39 +03:00
Pavel Kirpichenkov b7e5d9faae Update annotation rendering in diagnostics
Disable annotation rendering in default type and descriptor renderers.
Preserve annotations in Android and Serialization plugins.
Update error texts in ide tests.
Nullability annotations in Java descriptors are rendered with context-dependent renderer.

#KT-20258 Fixed
2019-10-04 11:18:45 +03:00
Kirill Shmakov 2a99687a95 Advance 193 bunch to 193.4099 2019-10-04 10:47:12 +03:00
Kirill Shmakov cd251458bd Merge pull request #2647 from JetBrains/kishmakov/gd/review
Advance 193 bunch
2019-10-03 16:40:34 +03:00
Natalia Selezneva 5da75897e4 Minor: regenerate IdeLightClassTestGenerated 2019-10-03 13:52:57 +03:00
Nikolay Krasko 030aaee117 Mute completion tests (KT-32919) 2019-10-03 12:24:46 +03:00