Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SI-7805 REPL -i startup #2917

Merged
merged 1 commit into from Sep 8, 2013
Merged

Conversation

som-snytt
Copy link
Contributor

Tested with a ReplTest that loads an include script.

ReplTests can choose to be Welcoming and keep a
normalized welcome message in their check transcript.

Review by @retronym

@som-snytt
Copy link
Contributor Author

For the record, I wasn't totally lazy. I did run test/partest --grep ReplTest before I submitted.

Tested with a ReplTest that loads an include script.

ReplTests can choose to be `Welcoming` and keep a
normalized welcome message in their check transcript.

One recent SessionTest is updated to use the normalizing API.
@som-snytt
Copy link
Contributor Author

Updated repl-trim-stack-trace.scala which is a SessionTest that normalized its output before that was normal.

@retronym
Copy link
Member

retronym commented Sep 6, 2013

LGTM. Thanks for figuring out how to test this!

The reason the fix is needed is that we're using the completedness of globalFuture as a lock on the interpreter during startup. But that isn't reentrant. I sort of threw that code together in frustration at yet-another-duplicate-of-tab-completion-crashing being reported in JIRA. Looks a bit hacky now.

Maybe as a followup you could think about a cleaner way to structure that code of avoiding the TAB completion crashes on startup.

@som-snytt
Copy link
Contributor Author

@retronym It's funny you should mention that, because that is on my list of things to think about.

I was aware of your hack, because that was when paulp said "you're my hero." That must be a lot of pressure for you, so I understand why you had to act fast on this fix. (kind of kidding)

Repl tests actually look better with the welcome message. It seemed excessive to update 70 tests with it, however.

"Welcome to Scala," a very Swiss sentiment, in the hospitality industry sense.

@som-snytt
Copy link
Contributor Author

I meant to add a comment somewhere, "one line contributed by retronym".

gkossakowski added a commit that referenced this pull request Sep 8, 2013
@gkossakowski gkossakowski merged commit 65d5f1d into scala:master Sep 8, 2013
@som-snytt som-snytt deleted the issue/7805-repl-i branch February 9, 2015 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants