Skip to content

Conversation

@liufengyun
Copy link
Contributor

This PR fix the dotr script for Cygwin and MingW.

@allanrenucci : Is it possible to run a service on test machine to listen for commands like "test scripts please" or "test community build" please? If it's possible, I'm motivated to write such scripts.

@liufengyun
Copy link
Contributor Author

The test for the fix is green: lampepfl/packtest#8

dist/bin/dotr Outdated
fi
echo "Starting dotty REPL..."
eval "$PROG_HOME/bin/dotc $cp_arg -repl ${residual_args[@]}"
eval "$PROG_HOME/bin/dotc -classpath \"$cp_arg\" -repl ${residual_args[@]}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The semantic is different here. Now if you pass no classpath, you will run dotc -classpath "" ...,
before dotc .... dotc is not happy if you pass an empty classpath

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the PR, and added a test to packtest to guard against regression for empty classpath: https://github.com/lampepfl/packtest/pull/9/files

@allanrenucci allanrenucci merged commit fe1c05e into scala:master Nov 30, 2017
@allanrenucci allanrenucci deleted the fix-dotr branch November 30, 2017 09:55
allanrenucci pushed a commit that referenced this pull request Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants