Ilya Chernikov
6e59c2e079
Scripting: fix CLI REPL error reporting behavior
...
discrepancy after switching to the new REPL internals was
discovered also on IJ plugin tests, so added a test emulating it.
also some test infra refactoring
2022-06-28 16:21:25 +02:00
Ilya Chernikov
b36d1be5f8
Scripting: switch legacy CLI REPL to the new infrastructure
2022-06-16 21:28:02 +00:00
Dmitriy Novozhilov
1ee38286a8
[TEST] Move generated compiler tests to test-gen directory
2020-11-27 12:55:45 +03:00
Alexander Udalov
6e67e1e78d
Replace appendln with appendLine in project
2020-06-11 13:01:30 +02:00
Alexander Udalov
8a4510c21b
Regenerate tests
2020-01-02 10:31:00 +01:00
Dmitriy Novozhilov
e7f8c8e155
[TEST] Regenerate tests after previous commit
2019-12-12 16:11:45 +03:00
Nikolay Krasko
4ed64b0283
Regenerate tests with TargetBackend.ANY remove and using runTest with this
2019-10-23 12:49:48 +03:00
Ilya Chernikov
9c004c3a52
Refactor scripting compiler plugin - move cli dependent parts out of the -impl jar
...
The kotlin-scripting-compiler-impl jar is used in the idea plugin and
therefore should not depend on the cli parts of the compiler to avoid
dependency from the plugin to the kotlin-compiler.jar.
Therefore the cli-dependent parts were moved to the scripting plugin
jar, which is used only in cli compiler based environments.
Also implement required abstractions to allow this movement and
drop some redundant dependencies to the cli parts in other projects.
2019-07-11 15:50:26 +02:00
nikita.movshin
65244b4bea
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update only 2 lines copyright.
2019-04-23 20:09:22 +03:00
Ilya Chernikov
4f135a5fe5
Move REPL implementations to the scripting compiler impl module
2019-04-17 22:03:57 +02:00
Ilya Chernikov
be95acd897
Load scripting plugin explicitly in repl tests and JSR-223
2019-02-10 13:33:21 +01:00
Ilya Chernikov
f125600af1
Restore returning of functional types from repl eval
...
add tests for the broken case as well for the return value representation
#KT-29490 fixed
2019-01-29 15:05:37 +01:00
Mikhael Bogdanov
cf47bc0130
Update copyright in generated compiler tests
2019-01-02 12:37:06 +01:00
Zalim Bashorov
ab03ab84bb
Regenerate tests
2018-04-19 13:17:27 +03:00
Zalim Bashorov
9970dd051f
Fix copyright's start year in generated tests
2018-03-14 15:04:58 +03:00
Yan Zhulanow
fa8a3b55f3
REPL, Refactoring: A number of trivial renames/moves
2018-03-06 22:27:51 +03:00
Dmitry Jemerov
e80dae1802
Update copyright in generated tests
2018-01-10 11:55:28 +01:00
Mikhael Bogdanov
a79c2bf999
Write script descriptor type to ASM_TYPE slice
...
#KT-20707 Fixed
2017-10-10 17:01:23 +02:00
Alexander Udalov
cbb6269391
REPL: do not report warnings when there are errors
...
#KT-18349 Fixed
2017-06-08 12:28:06 +03:00
Alexander Udalov
6f22baa0f6
REPL: improve "are all errors at EOF" detection
...
Also ignore whitespaces and comments that appear after the last error in
a REPL line
#KT-15172 Fixed
2017-06-08 12:26:54 +03:00
Alexander Udalov
26e3d2cf5d
Use TopLevelDeclarations analysis mode in REPL
...
#KT-12564 Fixed
2017-06-06 14:00:45 +03:00
Mikhail Zarechenskiy
47f2386212
Generate non-local destructuring declarations as properties
...
#KT-5620 Fixed
#KT-15810 Fixed
2017-05-25 16:46:05 +03:00
Alexander Udalov
18a211cb84
Add regression test for obsolete issue
...
#KT-17365
2017-05-18 13:29:02 +03:00
Ilya Chernikov
15ccd28e2e
Switch old IDE/CLI repls to the new infrastructure
...
should also fix #KT-5822
2017-05-03 18:11:45 +02:00
Mikhail Zarechenskiy
6cccad9647
Update year in license and regenerate tests
2017-01-10 12:01:17 +03:00
Zalim Bashorov
1dedb38481
Regenerate tests
2016-11-09 21:41:12 +03:00
Alexander Udalov
8ffe379c92
Use separate module analysis in CliReplAnalyzerEngine
2016-10-06 14:40:21 +03:00
Pavel V. Talanov
5d31d6d98d
REPL: call 'toString()' for returned values explicitly and correctly report exceptions
...
#KT-12389 Fixed
2016-06-23 16:12:03 +03:00
Pavel V. Talanov
8ac40d7401
Refactor Repl: use sealed class to represent line result
2016-06-23 16:12:01 +03:00
Alexander Udalov
6674412079
Rename compilerConfigurationForTests -> newConfiguration
2016-05-26 11:47:30 +03:00
Pavel V. Talanov
5058e9b4e6
Fix import resolution in Repl
...
#KT-11428 Fixed
Refactor ReplState to be a component
2016-05-24 15:41:56 +03:00
Mikhael Bogdanov
c06b51c1d1
Allow top-level local delegated properties in scripts
2016-05-13 19:11:23 +03:00
Nikolay Krasko
47c7181f2a
Extract tests-common module without any actual tests
...
The main reasoning for the module is to avoid running any compiler tests while executing run configuration that searches tests across module dependencies.
2016-04-08 17:40:38 +03:00
Nikolay Krasko
4f7257ab66
Remove dependency to idea.jar in compiler tets to continue running them with JDK 1.6
2016-04-05 00:39:46 +03:00
Alexander Udalov
2e13377d4a
J2K ReplInterpreter: prettify
2016-02-17 20:51:11 +03:00
Stanislav Erokhin
341b251e4d
Update copyright in generated tests.
2016-02-16 18:59:10 +03:00
Dmitry Jemerov
117a0d8b7b
compiler: cleanup 'public', property access syntax
2016-01-07 17:57:38 +01:00
Pavel V. Talanov
405cfa439d
Repl test: behave closer to real repl
2015-11-19 22:57:02 +03:00
Pavel V. Talanov
ad58617753
Script refactoring, codegen tests: change test data according to semantics change
...
Add some new tests for uncovered cases
2015-11-19 22:57:01 +03:00
Dmitry Jemerov
19af88738b
remove Jet from names of classes in tests: phase 2
2015-11-03 14:06:04 +01:00
Alexander Udalov
661f4efc68
Forbid callable references to members and extensions with empty LHS
...
This syntax is reserved to be likely used in the future as a shorthand for
"this::foo" where the resulting expression doesn't take the receiver as a
parameter but has "this" already bound to it
2015-10-03 04:37:04 +03:00
Dmitry Kovanikov
9bf0c8453d
[cli-repl][ide-console] Add logging of internal errors
...
Rename `jvmStatic` to `@JvmStatic`
2015-09-21 14:41:30 +03:00
Dmitry Kovanikov
42c0396308
[cli-repl] Support readLine() during repl session
2015-09-21 14:41:27 +03:00
Dmitry Kovanikov
a17363459a
[cli-repl][ide-console] Show runtime errors in IDE console
2015-09-21 14:41:19 +03:00
Dmitry Kovanikov
cb1756f5fa
[cli-repl] Error render and XML-interop with IDE console
2015-09-21 14:41:17 +03:00
Pavel V. Talanov
2896ec67ba
Support synthetic java properties in REPL
...
Use brand new iterable injection
2015-07-16 18:05:44 +03:00
Alexander Udalov
cd61f6f96b
Minor, dump bytecode in REPL test on demand
2015-07-03 15:32:18 +03:00
Ilya Gorbunov
79a5e0607d
Fix deprecated replaceAll and replaceFirst usages.
2015-05-22 16:13:53 +03:00
Alexander Udalov
94df191f86
Regenerate tests
2015-04-10 20:26:34 +03:00
Alexander Udalov
72aa3d1465
Use mock JDK in compiler tests where full JDK is not needed
...
- move some of boxWithStdlib tests under fullJdk/ directory, where they will be
compiled against the full JDK
- introduce FULL_JDK in-text directive for the reflection test as only 4 tests
out of 654 needed the full JDK
2015-04-02 21:57:48 +03:00