Yan Zhulanow
748cbd7eec
Import Kotlin JUnit run configuration settings from Gradle
2019-12-11 20:04:03 +09:00
Yan Zhulanow
1bdff8f884
Rename Kotlin-specific JUnit configuration to "Kotlin JUnit" to avoid disambiguation
2019-12-11 20:04:03 +09:00
Toshiaki Kameyama
8477c1935c
Run configuration: do not contain FQN in name
...
#KT-16886 Fixed
2019-12-11 20:04:03 +09:00
Nicolay Mitropolsky
df3bee3038
Annotations: support injections in string arrays (KT-35222)
2019-12-05 19:31:57 +03:00
Alexander Udalov
fd627603a0
Refactor CompilationErrorHandler
...
It only had one implementation THROW_EXCEPTION, inline it everywhere
with a call to a static method
2019-12-03 10:48:34 +01:00
Yan Zhulanow
3534d4af36
EA-215324: Fix "Module already disposed" in Scratch combo-box
2019-11-25 17:26:29 +09:00
Nikolay Krasko
9356155f60
Minor: add bunch directives for better discoverability banched code
2019-11-22 22:12:36 +03:00
Yan Zhulanow
ef8b3cb72a
Prefer Kotlin Junit test run configurations when possible (KT-33787)
2019-11-11 17:13:58 +09:00
Nikolay Krasko
2aa251fd0c
Remove deprecated API from InlayScratchFileRenderer
2019-11-07 20:23:28 +03:00
Nikolay Krasko
ffafd96f1b
Fix url for developers builds (KT-34246)
...
#KT-34246 Fixed
2019-11-01 12:25:44 +03:00
Roman Golyshev
bcee8ce04b
KT-34692: Invoke ScratchAction::update without invokeLater
...
- `invokeLater` is bad here, since `AnAction::update` must update action look immediately, not later in the future
- Because of `invokeLater`, `RunScratchAction` wasn't properly rendered in the context menu
- `invokeLater` was added in the a24da280ca to fix EA-210180
- EA-210180 is not reproducible; however, the main reason of the exception is that `AnAction::update` was called not from EDT, but from regular thread updating "Run From Here" (>>) gutter actions
- all exception under EA-210180 are from 1.3.50; my guess is that those exceptions were caused by changes in scratch editor implementation details and will not appear again; if they will, we will need to investigate them
- ^KT-34692 Fixed
2019-10-31 14:22:06 +03:00
Dmitriy Dolovov
905823fb1d
Fix: Notify user in IDE on K/N KLIBs with incompatible ABI version
...
Issue #KT-34159
2019-10-25 11:10:46 +07:00
Yan Zhulanow
f93549748a
Fix a number of compiler/IDE warnings in IDE and kapt modules
2019-10-24 21:32:57 +09:00
Dmitry Gridin
ee8e9a76f9
KtScratchExecutionSession: shouldn't catch ControlFlowException
...
#EA-210849 Fixed
2019-10-14 21:45:10 +07: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
f2f97a9991
Troubleshooting tests: check that REPL process is stopped before continue test
2019-10-08 15:02:06 +03: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
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
343502125b
Rename ResolveInWriteActionManager -> ResolveInDispatchThreadManager
2019-10-02 15:58:44 +03:00
Nikolay Krasko
319cabcc88
Remove deprecated InjectorUtils#putInjectedFileUserData in injection (KT-33775)
...
#KT-33775 Fixed
2019-09-30 00:53:03 +03:00
Ilya Kirillov
a24da280ca
Call update for ScratchAction in EDT thread (EA-210180)
2019-09-29 12:27:43 +03:00
Ilya Kirillov
7831237aaa
Minor: reformat KotlinRunConfigurationProducer
2019-09-29 12:27:43 +03:00
Ilya Kirillov
016132c762
Fix NPE in KotlinRunConfiguration & do not throw exception on unknown container type (EA-209426)
2019-09-29 12:27:43 +03:00
Vyacheslav Gerasimov
6327f657a5
193: Add bunches for 193 platform
2019-09-17 21:16:13 +03:00
Roman Golyshev
f419d2eb30
KT-33585: Add synchronization between scratch editor and preview
...
- fix problem with not working shortcuts in the preview window by passing more params into view editor creation
2019-09-06 12:03:35 +03:00
Roman Golyshev
d12d9d86bc
KT-33585: Refactor KtsScratchFileEditorWithPreview and its output handlers
...
- now `PreviewOutputBlocksManager` is injected into `PreviewEditorScratchOutputHandler`, so `KtsScratchFileEditorWithPreview` can use it too
2019-09-06 11:36:37 +03:00
Nikolay Krasko
edb700b898
Switch to 192 platform
2019-09-06 11:28:25 +03:00
Natalia Selezneva
fb01f7be5e
Rename ScriptDependenciesManager to ScriptConfigurationManager
2019-09-06 10:52:59 +03:00
Natalia Selezneva
961e8c2c74
Refactor the mechanism how script configurations are updated
...
Introduce file attributes cache, which is only applicable when no dependencies are cached in memory cache
Refactor ScriptDependenciesCache to memory cache that is able to get configuration from cache and checks if it is up to date
Move all public methods to ScriptDependenciesManager
Introduce ScriptClassRootsManager that checks if root change event should be called after script configuration update
2019-09-06 10:52:17 +03:00
Natalia Selezneva
dc46f73ecf
Rewrite scripting related API to PsiFile instead of VirtualFile
...
There were several places where we converted virtualFile to PsiFile. This operation need a read access and may throw ProcessCanceledException,
so we want to minimize its usages in IDE
2019-09-06 10:51:26 +03:00
Roman Golyshev
870dbd158c
KT-28910: Add tooltips for toolbar checkboxes in .kts scratch editor
...
- make `ScratchFileAutoRunner.AUTO_RUN_DELAY_IN_SECONDS` public
- remove `Show preview only` mode button from the toolbar
- ^KT-28910 Fixed
2019-09-04 10:56:41 +03:00
Roman Golyshev
f0f2fd5684
KT-28910: Extract labels from scratch editor to KotlinBundle messages
2019-09-04 10:56:41 +03:00
Darya Razumova
5fc6fa8619
Unregistered bunch directives and files test
2019-09-02 18:31:06 +03:00
Nikolay Krasko
169aa6348c
Remove runConfigurationsCompat.kt after removing 182
...
#KT-33536 Fixed
2019-08-30 12:14:16 +03:00
Nikolay Krasko
4d0fc1dc22
Remove 182 support
...
#KT-33536 Fixed
2019-08-30 12:13:44 +03:00
Roman Golyshev
37e3c41b57
KT-32366: Add sync scroll for source and preview editor
...
- ^KT-32366 Fixed
2019-08-23 18:22:27 +03:00
Roman Golyshev
e488e920d8
KT-32366: Add tests for right preview window
...
- also, fix missing test generation in `GenerateTests` bunch files (which was introduced in e54b43ba )
2019-08-23 18:22:26 +03:00
Roman Golyshev
bddf87337c
KT-32366: Add printing scratch output to preview window
...
- printing is done with `PreviewEditorScratchOutputHandler`
- `KtsScratchFileEditorWithPreview` redirects output depending on the layout selection
2019-08-23 18:22:26 +03:00
Roman Golyshev
e321ee1396
KT-32366: Inject toolWindowHandler from InlayScratchOutputHandler
...
- `toolWindowHandler` would be shared between different scratch editors, so we need `ScratchToolWindowHandlerKeeper` to provide proper mechanism for its acquiring and releasing
- fix problem when scratch output panel is never released after first scratch opening by properly unregistering `toolWindow` with `ToolWindowManager`
2019-08-23 18:22:26 +03:00
Roman Golyshev
d0cd4967a7
KT-32366: Extract text styling variables to outputStylingUtils
2019-08-23 18:22:25 +03:00
Roman Golyshev
358ec2b8bd
KT-32366: Refactor tests to allow testing of preview window
...
- add directive `PREVIEW_ENABLED` into scratch file settings
2019-08-23 18:22:25 +03:00
Roman Golyshev
dd1ace37d2
KT-32366: Add TextEditorWithPreview.setLayout method
...
- it is done to be able to trace when layout is changed
- all actions use this method too
2019-08-23 18:22:24 +03:00
Roman Golyshev
1d6de45db6
KT-32366: Use TextEditorWithPreview as editor for scratch files
...
- get rid of `ScratchFileHook` completely
- use `KtsScratchFileEditorProvider` to encapsulate details about scratch file presentation
- remove obsolete functions from `scratchUtils`
2019-08-23 18:22:24 +03:00
Roman Golyshev
1177566386
KT-32366: Get rid of ScratchTopPanel in tests
...
- make `ScratchFile.file` public
- remove obsolete functions from `ScratchTopPanel` and `scratchUtils`
2019-08-23 18:22:24 +03:00
Roman Golyshev
962260941b
KT-32366: Add TextEditorWithPreview class from the platform
...
- this class was updated recently (here: https://github.com/JetBrains/intellij-community/pull/1167 ) to allow its customization; however, those changes from platform are not available for kotlin plugin yet
2019-08-23 18:22:23 +03:00
Roman Golyshev
54dde777ac
KT-32366: Get replace editor with virtual file in ScratchFile
...
- remove `getOutputHandler` method from `KtScratchFileLanguageProvider`
- now `InlayScratchOutputHandler` is a class, it has reference to the target editor and is (temporarily) attached to the editor
2019-08-23 18:22:23 +03:00
Roman Golyshev
1fc88fc47f
KT-32366: Refactor ScratchPanelListener to ScratchFileListener
...
- it is done to move logical dependency from the UI element (`ScratchTopPanel`) to the model element (`ScratchFile`)
2019-08-23 18:22:23 +03:00
Roman Golyshev
ea3d070c98
KT-32366: Refactor ScratchFileHook to make ScratchFile creation clear
...
- basically just move functions from `ScratchTopPanel` to `ScratchFileHook`
2019-08-23 18:22:22 +03:00