GitHub user DrIgor opened a pull request:
https://github.com/apache/zeppelin/pull/2250
[WIP][ZEPPELIN-2085] Interpret scala code in paste mode
### What is this PR for?
Don't split scala code to lines.
Interpreter code becomes more and more complicated because some lines have
to be executed
together (companion objects, etc.). And still it doesn't handle all
possibilities.
I propose not to split interpreter input at all.
I checked scala repl sources: repl paste mode interpret code without
splitting.
### What type of PR is it?
[Bug Fix | Improvement]
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-2085
### How should this be tested?
Try to run several code snippets attached to jira issue.
See also https://issues.apache.org/jira/browse/ZEPPELIN-658
### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/DrIgor/zeppelin ZEPPELIN-2085
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/2250.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2250
----
commit 8c4232439c6adad456520798f1d838f134ef310f
Author: Igor Drozdov <[email protected]>
Date: 2017-03-20T14:16:22Z
Interpret scala code as a single piece
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---