Nikolay Krasko
afc0892d1f
Synchronize state of parser and lexer for LONG_TEMPLATE_ENTRY (KT-14865)
...
Lexer monitors "long string template" state end and will produce
LONG_TEMPLATE_ENTRY_END token when it is reached. If parser continues
without waiting for it, it will eventually get handling token that
will produce irrelevant error. Such behaviour also breaks lazy
elements (LAMBDA_EXPRESSION in this case) contract: range of parsed text
in eager mode should be same to one parsed in lazy mode.
#KT-14865 Fixed
2017-03-20 17:47:29 +03:00
Alexander Udalov
87ff70ee0f
Replace JS metadata version with '$ABI_VERSION$' in tests
...
Similarly to the JVM metadata version, this is done in order to avoid
changing any test data when the version is increased
2017-03-20 17:22:29 +03:00
Alexander Udalov
e6f6b0dad5
JS: merge LibrarySourcesConfig into JsConfig
2017-03-20 17:22:29 +03:00
Alexander Udalov
bf90cb5cc0
JS: support -Xskip-metadata-version-check for incompatible ABI libraries
...
Allow the compiler to read such libraries without any errors, at the
risk of crashing with an exception.
Also fix a minor bug in the diagnostic message in LibrarySourcesConfig
and in the corresponding test in KotlinJpsBuildTest
2017-03-20 17:22:29 +03:00
Alexander Udalov
30dfd5cc1b
JS: support '-Xskip-metadata-version-check' to allow pre-release libraries
2017-03-20 17:22:29 +03:00
Alexey Sedunov
a795a256f4
Configuration: Fix behavior of "output directory" control
...
Do not show file chooser twice.
Disable/enable control on component initialization and change of
"Use project settings" option
#KT-16952 Fixed
#KT-16953 Fixed
2017-03-20 17:19:13 +03:00
Simon Ogorodnik
f56af41d1e
Fix TypeAliasConstructorDescriptor's to create only once when required
...
Some IDE features relates onto that same descriptors will remain same
between resolve calls
Fix it to be true for TypeAliasConstructorDescriptor's
#KT-16265 fixed
2017-03-20 16:55:40 +03:00
Sergey Mashkov
23cbb83c75
IDL2K: drop garbage code, refactor to improve readability
2017-03-20 16:51:32 +03:00
Mikhail Zarechenskiy
1a4b9cb228
Show warning for mod from built-ins since API=1.1
2017-03-20 00:45:18 +03:00
Mikhail Zarechenskiy
e4188f889e
Do not show warning for mod from built-ins when LV=1.0
...
#KT-16372 Fixed
2017-03-20 00:41:58 +03:00
Alexey Sedunov
071744a57f
Extract Superclass/Interface: show inapplicability error before choosing the extraction container
...
#KT-15339 Fixed
2017-03-19 17:20:32 +03:00
Alexey Sedunov
eb9c775476
Navigation: Support NEW_AS_CONSTRUCTOR flag for constructor calls
...
#KT-15398 Fixed
#KT-15536 Fixed
2017-03-19 17:20:24 +03:00
Alexey Sedunov
5e8cd654ec
Find Usages: Fix processing of label references in 'return' expressions
...
#KT-7516 Fixed
2017-03-19 17:20:17 +03:00
Alexey Sedunov
275cdbbea7
Rename: Fix renaming of function by label reference inside of lambda argument
...
#KT-7520 Fixed
2017-03-19 17:20:10 +03:00
Alexey Sedunov
b1df91395a
Minor: Use handler autodetection in some rename tests
2017-03-19 17:20:02 +03:00
Alexey Sedunov
871d42f05a
Rename: Support renaming class by short reference to companion object
...
#KT-16108 Fixed
2017-03-19 17:19:55 +03:00
Alexey Sedunov
834cdd63ab
Create from Usage: Support class generation by class literal expression
...
#KT-16188 Fixed
2017-03-19 17:19:48 +03:00
Alexey Sedunov
505a6bcbf2
JPS: Copy project-level settings before use
...
Sharing these settings for reading/writing
between different module during JPS build
may lead to compiler settings
(plugionOptions, in particular) of several
modules to be mixed
#KT-16888 Fixed
2017-03-19 17:19:40 +03:00
Alexey Sedunov
2e1b4cd692
Misc: Fix test
2017-03-19 17:19:33 +03:00
Alexey Sedunov
2bb7bdfc3f
Kotlin Facet: Fix reading of v1 configuration
...
Favor language/api version specified in <versionInfo> element
in case it differs from the one in
<option name="_commonCompilerArguments">
#KT-16861 Fixed
2017-03-19 17:19:26 +03:00
Alexey Sedunov
ca46100581
Kotlin Facet: Add tab for compiler plugin options
...
#KT-15768 Fixed
2017-03-19 17:19:18 +03:00
Alexey Sedunov
c264a2e15f
Configuration: Improve presentation of the settings override warning
2017-03-17 21:08:44 +03:00
Alexey Sedunov
7c1249746f
Kotlin Facet: Show scripting section only if target platform is JVM
...
#KT-16316 Fixed
2017-03-17 21:03:29 +03:00
Alexey Sedunov
f63828ff20
Configuration: Make UI improvements
...
Fix layout
Fix label names
Replace "Generate no warnings" checkbox with "Report compiler warnings"
2017-03-17 21:03:22 +03:00
Nikolay Krasko
f38753ee3c
Remove explicit AppScheduledExecutorService shutdown (commit revert)
...
Revert "Problem: manually shutdown AppScheduledExecutorService to allow compiler stop properly"
The commit was added during update to 162.1024.1 to fix hangs in ant
tasks on teamcity because of some thread created in
AppScheduledExecutorService service.
Remove the commit because can't reproduce those hangs under 162.2946
(Probably https://github.com/JetBrains/intellij-community/commit/12a079ef41882343bf83ef2a7dcee820b55fd154 fixed the hangs).
This should also be addressed in fix for https://youtrack.jetbrains.com/issue/IDEA-169562
This reverts commit 99a75021e1 .
2017-03-17 18:02:11 +03:00
Nikolay Krasko
a63953432e
Set "weak warning" severity for SameParameterValue inspection
2017-03-17 17:27:54 +03:00
Nikolay Krasko
52789df812
Minor: fix warnings in AbstractKotlinParsing.java
2017-03-17 17:27:53 +03:00
Sergey Mashkov
49c2f40f7d
KT-16572 Add links to Mozilla Developer Network to kdocs of classes that we generate from IDL
...
regenerate
2017-03-17 13:04:34 +03:00
Sergey Mashkov
8842b6894e
KT-16572 Add links to Mozilla Developer Network to kdocs of classes that we generate from IDL
2017-03-17 13:04:34 +03:00
Sergey Mashkov
02721a0b7f
KT-16252 IDL2K: Add ItemArrayLike interface implementation to collection-like classes
...
regenerate
2017-03-17 13:04:33 +03:00
Sergey Mashkov
496795dd56
IDL2K eliminate attribute modality change caused by inheritance
...
always override attributes in class if it is inherited from an interface
2017-03-17 13:04:33 +03:00
Sergey Mashkov
a5d6541f1e
KT-16252 IDL2K: Add ItemArrayLike interface implementation to collection-like classes
2017-03-17 13:04:32 +03:00
Vyacheslav Gerasimov
a795313c7d
Add inspection for usages of Kotlin internal declarations in Java
...
#KT-11393 Fixed
2017-03-16 21:12:05 +03:00
Alexander Udalov
bd53922c64
Minor, don't shade com.sampullara in compiler-embeddable
...
See 73b879e
2017-03-16 15:40:06 +03:00
Alexander Udalov
332a0f5adc
Use 'languageVersionSettings' extension instead of key directly
...
Also fix compilation of kotlin-script-util
2017-03-16 14:18:01 +03:00
Alexey Sedunov
0e4c3ec202
Kotlin Facet: Do not present imported -d/-cp in "Additional arguments"
2017-03-16 03:14:41 +03:00
Alexey Sedunov
88a394e892
Kotlin Facet: Validate "additional arguments"
...
Validate consistency of "additional arguments" with respect to settings specified in other UI controls
2017-03-16 03:14:40 +03:00
Alexey Sedunov
fa06965ed6
Kotlin Facet: Add import test for Maven project with submodule
2017-03-16 03:14:39 +03:00
Alexey Sedunov
cf9d7a0470
Kotlin Facet: Detect platform by stdlib dependency in android-gradle projects
...
#KT-16827 Fixed
2017-03-16 03:14:38 +03:00
Alexey Sedunov
040f5f88f2
Configuration: Show warning in project settings if they'are overridden in some modules(s)
2017-03-16 03:14:37 +03:00
Alexey Sedunov
5dc5ca551f
Configuration: Make UI improvements
...
Use JTextField for output file prefix/postfix.
Use TextFieldWithBrowseButton for output directory
Improve layout
2017-03-16 03:14:36 +03:00
Alexey Sedunov
ee36abd73a
Kotlin Facet: Drop obsolete facet detection infrastructure
2017-03-16 03:14:35 +03:00
Alexey Sedunov
5c55b9fbbe
Configuration: Check that project-level common arguments are not changed through platform-specific holders
2017-03-16 03:14:34 +03:00
Alexey Sedunov
ce434585e3
J2K: Convert BaseKotlinCompilerSettings and its inheritors
2017-03-16 03:14:32 +03:00
Alexey Sedunov
f8e5065845
J2K: Convert BaseKotlinCompilerSettings and its inheritors (rename to .kt)
2017-03-16 03:14:31 +03:00
Pavel V. Talanov
f1c0d5316f
Refactor delegate members to light members conversion
2017-03-15 20:55:42 +03:00
Pavel V. Talanov
eedcc19209
J2K KtLightClassBase: rename file
2017-03-15 20:55:41 +03:00
Pavel V. Talanov
04591bb938
LightClassDataHolder: refactor, extract subinterfaces
2017-03-15 20:55:40 +03:00
Pavel V. Talanov
6d595e30c2
ClassFileFactory, minor: make done() public and use in LightClassDataProvider
2017-03-15 20:55:40 +03:00
Pavel V. Talanov
d62db8dc6b
LightClassGenerationSupport: refactor, minor
...
Use typealias where appropriate
Less verbose method names
2017-03-15 20:55:39 +03:00