Skip to content

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

Merged
merged 1 commit into from
Feb 20, 2014

Conversation

DarkDimius
Copy link
Contributor

See #10 for discussion

@DarkDimius DarkDimius mentioned this pull request Feb 19, 2014
@DarkDimius
Copy link
Contributor Author

@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
Copy link

Choose a reason for hiding this comment

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

2 typos

Choose a reason for hiding this comment

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

and missing articles :)

@VladUreche
Copy link
Contributor

@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."
Copy link

Choose a reason for hiding this comment

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

built successfully?

@VladUreche
Copy link
Contributor

@DarkDimius, can you clean up the references to scala/scalac/scaladoc etc?
This will allow cleaning transitively more of the script, so we end up with a boiled-down, simple version.



# Try to autodetect real location of the script
DOTTY_ROOT="`readlink \"$0\"`" # relative, symbolic links resolved
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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.

@VladUreche
Copy link
Contributor

LGTM with the latest changes.

VladUreche pushed a commit that referenced this pull request Feb 20, 2014
Script for running compiler outside sbt
@VladUreche VladUreche merged commit c3f4e84 into scala:master Feb 20, 2014
@biboudis biboudis mentioned this pull request Feb 27, 2019
19 tasks
noti0na1 added a commit to noti0na1/dotty that referenced this pull request Sep 27, 2019
* 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
pikinier20 added a commit that referenced this pull request Aug 16, 2022
szymon-rd pushed a commit that referenced this pull request Dec 9, 2022
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.

5 participants