-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Script for running compiler outside sbt #26
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
Conversation
@VladUreche @lrytz please review. |
# autodetecting the compiler jar. this is location where sbt 'packages' it | ||
MAIN_JAR=$MY_PATH/target/scala-$SCALA_VERSION/dotty_$SCALA_VERSION-$DOTTY_VERSION-SNAPSHOT.jar | ||
|
||
# Autodetecling scala-library, in case it wasn't provided by environmen variable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 typos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and missing articles :)
@DarkDimius: I will review tonight, GTG. |
echo "The required jar file has not been built by sbt. Please run \"sbt $2\"" | ||
exit 1 | ||
else | ||
echo "The required jar file was built." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
built successfully?
@DarkDimius, can you clean up the references to |
|
||
|
||
# Try to autodetect real location of the script | ||
DOTTY_ROOT="`readlink \"$0\"`" # relative, symbolic links resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DarkDimius, can you please add a guard against the machine missing readlink? It should be something like:
if [ -z `which readlink` ]; then
echo "Please install readlink: {brew, apt-get, yum} install readlink"
exit 1
fi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Gentoo, Debian and Fedora readlink is actually provided by coreutils.
Which distributive\OS are you running?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sorry, I had reallink
in mind. My bad, readlink
is part of the coreutils.
LGTM with the latest changes. |
Script for running compiler outside sbt
* ValDefInBlockCompleter is replaced by general Completer * Let flow typing work for all definitions (DefDef and ValDef) in methods * Disable flow typing when forward references exist * Modify tests
Repair tests. Few css fixes
See #10 for discussion