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

Improve install instructions #2

Merged
merged 6 commits into from
Aug 20, 2015
Merged

Conversation

clizzin
Copy link
Contributor

@clizzin clizzin commented Aug 19, 2015

This is an attempt to improve the setup instructions in INSTALL.
Each commit contains an explanation in the commit message.

The new instructions are pretty biased towards development on
OS X. Sorry, everybody else. I added some comments that
hopefully indicate what likely needs tweaking if you the defaults
don't work for you.

One problem remains—the app server spits out this error a bunch:

exception: Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "log" is not defined. (module dispatch.js#114)

It doesn't seem to interfere with use of the app, and it was happening
even before I made all these changes. Not sure if it's particular to my
setup or if the instructions are missing a step. Suggestions welcome!

@igorkofman

When I used Scala 2.7, I got a compiler error "not found: value math."
As far as I can tell, this is because Scala 2.7 doesn't include a
scala.math package (http://www.scala-lang.org/api/2.7.7/).  I tried
Scala 2.11.7 instead, and that worked fine.
I think this is a reference to the mysql-connector-java library, a jar
for which is already part of the repo.  (Technically, it's bad to have
jars in repos, but we'll solve that problem another time.)
The installation process modified the jar, so it seems like this is an
artifact particular to each person's development environment, not
something that should be checked in.
We also clean up exports.sh a bit so it's easy to tell what needs
customizing for new environments vs. what is supposed to work as-is.
These are hopefully more up-to-date and reasonable defaults for a
developer on OS X, and for developers not on OS X, hopefully the cleanup
helps clarify what likely needs customization.

One of the changes to default values is to use the scala-library.jar
within the given installation of Scala, not the repo's
scala-library.jar.  I don't know much about Scala, but it seems like a
better default to make SCALA, SCALA_HOME, and SCALA_LIBRARY_JAR all
match instead of SCALA_LIBRARY_JAR being a special snowflake that's
checked into the repo.
The bin/exports.sh script now advises developers to use the
scala-library.jar within their local installation of Scala.
igorkofman added a commit that referenced this pull request Aug 20, 2015
@igorkofman igorkofman merged commit 8235d75 into master Aug 20, 2015
@clizzin clizzin deleted the improve-install-instructions branch August 20, 2015 17:24
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.

None yet

3 participants