Skip to content

Fix dotr for Cygwin and MingW #3599

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

Merged
merged 3 commits into from
Nov 30, 2017
Merged

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