-
Notifications
You must be signed in to change notification settings - Fork 51
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
Import error under Scala 2.10 #14
Comments
Can you show how you run IScala and resolve/import dependencies? I tried btw. Although the default target is 2.11, you can build for 2.10 without [1] http://www.scala-sbt.org/0.13/docs/Command-Line-Reference.html |
While trying to recreate the error, I was able to fix my problem. This code works fine:
(restart the notebook before the next step) But if I first do the import (and it fails because there is no libraryDependencies):
running the same code from before will fail:
(in the update logs, it said that spark was resolved) At this point it is impossible to do the import, and you have to restart the notebook. And thanks for the ++ command in sbt |
There is a very unfortunate bug currently in If unsure, you can pass library dependencies via command line arguments, e.g.:
(this isn't document anywhere yet). |
Originally submitted in #7 by @lev112:
What is the right way to compile with scala 2.10?
I've tried to set
scalaVersion := "2.10.4"
inBuild.scala
, and it compiles,but I see some strange behavior...
I try to import spark package, and in the console it works fine,
but in the notebook I get an error:
error: object spark is not a member of package org.apache
Is it a bug or did I do something wrong?
(in IScala 0.1 the same code works fine)
The text was updated successfully, but these errors were encountered: