Natalia Selezneva
c4aab8340b
Do not store script definition in psiFile
...
This may cause problems when definitions are reordered or switched off
KT-27375 Fixed
2018-10-15 09:43:49 +03:00
Toshiaki Kameyama
061aa63a73
"Make private" intention: fix some false positive cases
2018-10-11 17:20:46 +03:00
Toshiaki Kameyama
c65e246e02
Make private: don't suggest if property has @JvmField annotation
...
#KT-27138 Fixed
2018-10-11 17:20:13 +03:00
Mikhail Glukhikh
688fc386b6
Refactoring: introduce resolve to property descriptor
2018-10-11 17:14:17 +03:00
Mikhail Glukhikh
2e5ee242c7
Minor refactoring: implicitVisibility
2018-10-09 11:50:21 +03:00
Toshiaki Kameyama
3be5f2b843
"Redundant visibility": Fix false positive for overridden setter
...
#KT-26051 Fixed
2018-10-09 11:48:00 +03:00
Alexey Sedunov
0765cb9c62
Minor: Fix model access
2018-10-01 14:46:52 +03:00
Alexey Sedunov
99f63f2ebd
Configuration: Use model provider to access facets
...
Otherwise newly created Android project may get invalid SDK
until the reimport is performed
#KT-27193 Fixed
2018-10-01 13:55:16 +03:00
Leonid Startsev
b611facd71
Check if serialization plugin presents in the facet compiler classpath before applying extensions logic
...
#KT-27166 Fixed
2018-09-28 18:31:03 +03:00
Dmitry Petrov
0191e3d1cf
Migrate to release coroutines
2018-09-27 21:59:31 +03:00
Pavel V. Talanov
cc1be5f559
Introduce SourceType and use KotlinFacetSettings.isTestModule
...
Refactor dealing with production/test roots
Remove ad-hoc code in KotlinMultiplatformRunLocationsProvider
2018-09-26 13:46:45 +02:00
Simon Ogorodnik
189fe95d8a
Fix type-aliases by expansion search loop
...
Compare type-aliases by it's fqNames instead of identity, as
multiple runs of resolveToDescriptorIfAny produces different descriptors
for one declaration
2018-09-25 16:40:03 +03:00
Natalia Selezneva
074aa47dc0
Use ProjectRootUtil.isInContent instead of checking script expected location manually
2018-09-21 22:58:14 +03:00
Ilya Chernikov
d9760f00f6
Move context classpath utils from script-util to scripting-jvm
...
since it is the right place to have it in the new structure.
Solves the problem that script-util classes not found then script
definition with context classpath is loaded by the scripting compiler
plugin, since script-util is not packed into embeddable plugin.
The old context utils are deprecated and in fact wrap the new utils.
#KT-26828 fixed (in fact - partially, see another related commit)
2018-09-15 15:43:53 +02:00
Alexander Udalov
5dc563a9af
Split deprecationUtil.kt to several files, move to subpackage
...
Also move interface Deprecation to subpackage "deprecation"
2018-09-14 14:43:23 +03:00
Mikhail Glukhikh
76d1d6ff12
Allow to move suspend lambda out of parentheses
...
#KT-26674 Fixed
#KT-26676 Fixed
2018-09-13 16:38:29 +03:00
Ilmir Usmanov
3e3ffd14a9
Exclude kotlin.coroutines.intrinsics and kotlin.coroutines.jvm.internal
...
from default imports.
2018-09-12 15:22:51 +03:00
Ilya Gorbunov
a18770fbbb
Remove projectDist dependency helper usages
...
Use default configuration dependencies instead of projectDist ones.
2018-09-12 06:05:05 +03:00
Alexander Podkhalyuzin
baa0f2dc1b
Override completion in expect class should behave differently
...
Caret placement is at the end of new fun/property
#KT-25313 Fixed
2018-09-10 14:23:48 +03:00
Ilya Chernikov
3f2552af60
Export filename extension from KotlinScriptDefinition, register...
...
extensions after loading definitions
2018-09-10 11:21:26 +02:00
Mikhail Glukhikh
ef4053d5c3
Invalidate module source roots in create actual to fix exceptions
...
Related to KT-19586
2018-09-07 14:56:12 +03:00
Mikhail Glukhikh
fe9f655c26
Configure module source roots in create actual fix, if it's necessary
...
#KT-19586 Fixed
2018-09-07 14:56:11 +03:00
Ilya Chernikov
836ea28fe7
Renaming remaining former "environment"-related identifiers
2018-09-06 19:17:44 +02:00
Ilya Chernikov
6716c512d3
[minor] Rename too long named functions
2018-09-06 19:17:43 +02:00
Mikhail Glukhikh
ad27d9aae7
Package utils: implement getNonGeneratedKotlinSourceRoots
...
This is needed to prevent creation of actual elements
in generated sources. Checked manually.
#KT-24129 Fixed
2018-09-05 17:21:23 +03:00
Mikhail Glukhikh
caee77cdae
Kotlinize findOrCreateDirectoryForPackage in create actual fix
...
Before this commit, without existing directory
we tried to create it only inside Java source roots,
which is incorrect for JS and other non-JVM modules.
Source roots themselves still aren't created if they don't exist.
This fixes KT-19586 partially
2018-09-05 17:21:10 +03:00
Mikhail Glukhikh
68e3821ae2
Code cleanup: packageUtils.kt
2018-09-05 13:05:08 +03:00
Natalia Selezneva
3979ad7a1d
Use correct classpath for Ide Scripting Console files during highlighting
...
KT-25606
2018-08-31 15:55:59 +03:00
Sergey Rostov
81b519286f
ScriptDependenciesLoader: Fix freeze on notifyRootsChanged
...
In 4f3f4dd , launch(EDT(project)) was replaced with TransactionGuard.submitTransaction to fix write in write-unsafe context.
Unfortunately submitTransaction will call action immediately if we are already on EDT. This causes IDE freeze.
By replacing submitTransaction with submitTransactionLater we are postponing work to the end of events queue (as it was before 4f3f4dd ).
Also in isUnitTestMode we need to call action immediately as it was before 4f3f4dd .
#KT-25958 Fixed
2018-08-30 10:59:32 +03:00
Ilya Chernikov
01eca8bac8
Clean up properties collection
2018-08-23 09:51:53 +03:00
Ilya Chernikov
c2e6c0ed49
Rename ScriptingEnvironment to ScriptingHostConfiguration
2018-08-23 09:51:53 +03:00
Ilya Chernikov
bd8f2a81e9
Rename ScriptDefinition to ScriptCompileConfiguration
2018-08-23 09:51:53 +03:00
Ilya Chernikov
04ffe7754e
Refactoring properties collection after review
2018-08-23 09:51:53 +03:00
Ilya Chernikov
74f8a541c0
Grand refactoring of the scripting DSL + many minor usability refactorings around it
2018-08-23 09:51:53 +03:00
Ilya Chernikov
70ec004aaa
Sorting default jvm props and basic implementations
2018-08-23 09:51:53 +03:00
Ilya Chernikov
904917c194
Make script definition a property bag directly
2018-08-23 09:51:53 +03:00
Ilya Chernikov
8953bba47c
Pass scripting (host) environment independently from properties/configuration
2018-08-23 09:51:53 +03:00
Ilya Chernikov
a54675abe7
Clean and fix new scripting API
2018-08-23 09:51:53 +03:00
Natalia Selezneva
b7bdb43219
Fix leaked thread for AbstractScriptConfigurationTest
2018-08-10 15:26:07 +03:00
Denis Zharkov
bf1f94c185
Rewrite DelegatingDataFlowInfo using immutable collections from javaslang
...
It may be useful because data-flow info is mostly the same for
neighbouring expressions and changes between them should be minor.
Thus, it should help to avoid making copies of huge maps and reusing
them instead
2018-08-10 15:40:50 +07:00
Mikhail Glukhikh
db787c78d6
Implement members: don't add 'actual' modifier for fake overrides
...
#KT-25044 Fixed
2018-08-09 12:59:58 +03:00
Mikhail Glukhikh
90245659ff
Fix testOptionalParameterAndLambdaComplex (related to KT-24694)
2018-08-06 19:04:05 +03:00
Mikhail Glukhikh
07ff2bff33
Reformat & cleanup: psiModificationUtils, especially PsiElement.replaced
2018-08-06 19:04:04 +03:00
Ilya Chernikov
a3d719785c
Drop exception/stacktrace from logging warning if a script template is not found in the classpath
...
reducing clutter in logs and console
#KT-24754 fixed
2018-08-06 13:58:49 +02:00
Nikolay Krasko
759ffafb0a
Render flexible types with enhancement as enhanced in IDE (KT-25622)
...
Main targets for the fix is completion, parameters info, inlay hints and
override/implement.
Other IDE functions might be affected.
#KT-24911 Fixed
#KT-25616 Fixed
#KT-25622 Fixed
2018-08-03 16:00:09 +03:00
Natalia Selezneva
41dc059da9
Register custom file extension for scripts loaded from script template
2018-08-03 15:25:35 +03:00
Natalia Selezneva
f71269009a
Refactoring: use KtScript.scriptDefinition instead of KotlinScriptDefinitionProvider.findScriptDefinition if possible
2018-08-03 15:25:35 +03:00
Natalia Selezneva
736361e345
Provide a default scriptDefinition for script
2018-08-03 15:25:35 +03:00
Vyacheslav Gerasimov
53b1a8bd37
Remove hacks introduced for 172 platform compatibility
2018-08-02 19:32:18 +03:00
Vyacheslav Gerasimov
a2bf417d75
Remove 172 bunchset
2018-08-02 19:32:18 +03:00