Natalia Selezneva
468404c6c3
Repl: refactoring, move common parts to utils
2018-11-01 15:00:41 +03:00
Alexander Udalov
d28c6559b8
Fix support of directories as sources in build files (-Xbuild-file)
...
#KT-27775 Fixed
2018-10-29 11:36:29 +01:00
peter
ebc998d710
add ultra-light classes/members that work without backend in simple cases
2018-10-25 18:22:33 +02:00
Alexander Udalov
e3a332c393
Configure Java module path when compiler is invoked in -Xbuild-file mode
...
#KT-27626 Fixed
2018-10-17 18:39:50 +02:00
Alexander Udalov
9dc53c38f3
Remove deprecated CompilerJarLocator
2018-10-17 18:39:49 +02:00
Alexander Udalov
009f18f1f4
Split AnalysisFlag values to AnalysisFlags and JvmAnalysisFlags
...
Declare AnalysisFlags in module 'frontend', and JvmAnalysisFlags in
module 'frontend.java', to avoid leaking Java-related logic to common
compiler code
2018-10-01 13:31:00 +02:00
Denis Zharkov
38be1f6947
Minor. Parametrize MainFunctionDetector with LanguageVersionSettings
2018-09-12 09:49:25 +03:00
Alexander Udalov
c4be039cd1
Support argfiles in CLI with "@argfile"
...
#KT-24613 Fixed
2018-09-10 14:12:32 +03:00
Alexander Udalov
8c942752e8
Write flags to .kotlin_module files since metadata version 1.4
...
This value will be used for flags like pre-release (KT-21256) and other
similar info
2018-09-10 14:12:17 +03:00
Ilya Chernikov
3f2552af60
Export filename extension from KotlinScriptDefinition, register...
...
extensions after loading definitions
2018-09-10 11:21:26 +02:00
Ilya Chernikov
74f8a541c0
Grand refactoring of the scripting DSL + many minor usability refactorings around it
2018-08-23 09:51:53 +03:00
Alexander Udalov
852760b3b0
Report error on incompatible .kotlin_module files in classpath
...
Also remove obsolete test wrongAbiVersionNoErrors
#KT-25973 Fixed
#KT-26266 Open
2018-08-21 17:12:02 +02:00
Alexander Udalov
4f11812668
Report error instead of throwing exception in JvmPackagePartProvider
2018-08-21 17:12:02 +02:00
Alexander Udalov
f069686a14
Minor, use resolveSibling in getAbsolutePaths
2018-08-21 12:49:11 +02:00
Alexander Udalov
0f003802fe
Introduce -Xcommon-sources and pass it correctly from build tool plugins
...
#KT-25196 In Progress
2018-08-21 12:49:10 +02:00
Alexander Udalov
f663b8f554
Fix kotlin-maven-plugin compilation
2018-08-10 18:34:40 +02:00
Alexander Udalov
587ce56ad6
Use safer way of filtering out files from other modules
...
Comparing files by paths is too error-prone and it created a problem
here, where paths of File instances on Windows use "\" as a separator,
whereas VirtualFile paths always use "/", resulting in empty source
lists being compiled. This issue was introduced in 1582354077 . Instead,
get the instance of the VirtualFile by path, and use its identity for
comparison
2018-08-10 11:33:52 +02:00
Alexander Udalov
cd12772bc5
Remove unneeded bunch files related to PsiJavaModule
...
PSI for modules and related classes are already available in AS3.1
2018-08-10 00:10:37 +02:00
Leonid Startsev
c3f66cda65
Lowering extension point
2018-08-09 16:16:09 +03:00
Nicolay Mitropolsky
ce6543b1cb
183: IdeaExtensionPoints.IDEA_COMPATIBLE_BUILD_NUMBER = "183.1"
2018-08-08 12:29:36 +03:00
Denis Zharkov
8050869e45
Use THashSet for sets that are assumed to be big
...
Otherwise, a lot of memory is wasted on nodes instances
(cherry picked from commit 4922f87)
2018-08-08 15:17:25 +07:00
Alexander Udalov
b67d236857
Fix bunch files for KotlinToJVMBytecodeCompiler
...
After 1582354077
2018-08-07 16:13:16 +02:00
Alexander Udalov
1582354077
Refactor CompileEnvironmentUtil.getKtFiles, move to KotlinCoreEnvironment
...
Do not call this method the second time in KotlinToJVMBytecodeCompiler
where all KtFile instances are already created; just get only those
files that are in the needed module, which can be determined solely by
the file path.
Also "kotlinize" getKtFiles and rename to createKtFiles
2018-08-07 13:38:30 +02:00
Alexander Udalov
5da8ce844a
Minor, move ContentRoot and KotlinSourceRoot to module 'cli'
...
Also move CONTENT_ROOTS from JVMConfigurationKeys to
CLIConfigurationKeys since it's used on all platforms, not just JVM
2018-08-07 13:38:30 +02:00
Alexander Udalov
14b8f4b52b
Minor, change package of outputUtils.kt
2018-08-07 13:38:30 +02:00
Alexander Udalov
2d875a9cb4
Reformat module 'cli', fix warnings/inspections
2018-08-07 13:38:29 +02:00
Nicolay Mitropolsky
bbf2af1004
IdeaExtensionPoints.IDEA_COMPATIBLE_BUILD_NUMBER = "182.3040"
...
Otherwise Kotlin plugin is not loaded in some tests (`org.jetbrains.uast.test.kotlin.KotlinDetachedUastTest` for instance)
2018-08-07 12:26:30 +03:00
Vyacheslav Gerasimov
ebb90f8260
183: Build against 183-SNAPSHOT
2018-08-03 21:29:19 +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
a2bf417d75
Remove 172 bunchset
2018-08-02 19:32:18 +03:00
Vyacheslav Gerasimov
0103c0d2fd
Switch to 182 platform
2018-08-02 18:17:06 +03:00
Nikolay Krasko
a406f1b361
Revert registering ClsCustomNavigationPolicy EP in 182 (KT-24891)
...
Registration can't be removed because there's still a usage in ClsFileImpl:
Caused by: java.lang.IllegalArgumentException: Missing extension point: com.intellij.psi.clsCustomNavigationPolicy in area null
at com.intellij.openapi.extensions.impl.ExtensionsAreaImpl.getExtensionPoint(ExtensionsAreaImpl.java:335)
at com.intellij.openapi.extensions.impl.ExtensionsAreaImpl.getExtensionPoint(ExtensionsAreaImpl.java:26)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:104)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:98)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:93)
at com.intellij.psi.impl.compiled.ClsFileImpl.getNavigationElement(ClsFileImpl.java:312)
2018-08-01 14:02:59 +03:00
Dmitry Petrov
566b5856ec
Constructor call normalization mode depends on language version
2018-07-27 09:52:29 +03:00
Alexander Udalov
3323fd5a11
Check "kotlin" package usage when compiling common code
...
#KT-25369 Fixed
2018-07-26 17:10:33 +02:00
Alexey Tsvetkov
0b18380770
Use separate system properties to control IC for JVM and JS
...
Also this commit effectively disables JS IC by default
#KT-25563 fixed
2018-07-23 15:43:16 +03:00
Dmitry Savvinov
6dacd1011f
Do not report warning if -XXLanguage turns on bugfix
...
KT-25554 Fixed
2018-07-20 14:24:42 +03:00
Denis Zharkov
0b2fde3886
State on types level that forcing imports works only for non-default
2018-07-20 11:27:08 +03:00
Alexander Udalov
871b896a21
Add internal compiler argument to change metadata version
...
Will be used in tests to check how we behave on binaries produced by a
"future" compiler
2018-07-18 17:59:37 +02:00
Alexander Udalov
cfc0f5e453
Support correct way of writing/loading version requirement table
...
Tests are added in subsequent commits.
KT-25120 Fixed
2018-07-18 17:59:37 +02:00
Alexander Udalov
1e9694f1db
Fix version requirement serialization for nested classes
...
Use the version requierement table of the outer DescriptorSerializer
instance when serializing metadata for a class. Pass parent serializer
to DescriptorSerializer.create to make sure the correct table is used.
Serialize nested classes before the outer class in JS and common code,
to make sure requirements are not lost. Also, split
VersionRequirementTest to JVM and JS
#KT-25120 In Progress
2018-07-18 17:58:46 +02:00
Ilya Chernikov
a61de052c7
Do not throw on incompatible cli scripting plugin
...
More reliably fixes #KT-24946, #KT-24438 and alike
2018-07-18 15:15:41 +02:00
Dmitry Savvinov
70144f8003
Make warning about usage of -XX-flags less scary
2018-07-16 18:49:21 +03:00
Alexander Udalov
e937fe8258
Move PackagePartProvider to module descriptors.jvm
2018-07-10 15:16:49 +02:00
Alexander Udalov
2cb4b7c6d4
Extract MetadataPartProvider out of PackagePartProvider
2018-07-10 15:16:49 +02:00
Georgy Bronnikov
8ce658ab54
Introduce -Xuse-ir flag for cli compiler
2018-07-10 10:05:06 +02:00
Ilya Chernikov
b83948f241
Drop support of KOTLIN_HOME environment variable in the command-line compiler
...
it is proved to be fragile and seems unnecessary at the moment
2018-07-10 08:43:52 +02:00
Ilya Chernikov
92d4d986c8
Take path to scripting plugin libs only from compiler jar path...
...
ignoring all "kotlin home" settings, since we need to load a compatible
plugin. Fixes #KT-24946
2018-07-10 08:43:51 +02:00
Ilya Chernikov
199c3bce40
Fix explicit custom scripting definitions choice logic:
...
add standard script def after custom defs are processed
2018-07-10 08:43:50 +02:00
Ilya Chernikov
e17c36cf12
Improve automatic scripting plugin picking logic
2018-07-10 08:43:50 +02:00