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

Problem during compile #113

Closed
Morgaroth opened this issue Jan 4, 2015 · 6 comments
Closed

Problem during compile #113

Morgaroth opened this issue Jan 4, 2015 · 6 comments

Comments

@Morgaroth
Copy link

I followed Builiding Scaloid wiki page, I've installed API 10 in android_home folder, evironment setted, and I can''t compile commons:

version 3.6.1
sbt scaloid:generate
sbt +publishLocally

and I get compile error

[info]  delivering ivy file to /home/mateusz/projects/scaloid/scaloid-util/target/scala-2.10/ivy-3.6.1-10.xml
[error] /home/mateusz/projects/scaloid/scaloid-common/src/main/scala/org/scaloid/common/preferences.scala:144: ']' expected but '.' found.
[error]         case v: Array[android.os.Parcelable] => i.putExtra(name, v)
[error]                              ^
[error] /home/mateusz/projects/scaloid/scaloid-common/src/main/scala/org/scaloid/common/preferences.scala:144: ']' expected but '.' found.
[error]         case v: Array[android.os.Parcelable] => i.putExtra(name, v)
[error]                              ^

Could You tell me why ? And what I can do for resolve this problem ? remove fragment od template?

@pocorall
Copy link
Owner

pocorall commented Jan 5, 2015

It runs fine with sbt publishLocal.

What the + character does?

@Morgaroth
Copy link
Author

http://www.scala-sbt.org/0.13/docs/Cross-Build.html

+ character enables cross biulding against all scala versions defined in crossScalaVersions in build.sbt so this isn't really a problem :) or I'm missing some thing about internals of project :)

@Morgaroth
Copy link
Author

I think, that problem is with imports ? android.os.Parcelable doesn't exist in imported namespace ?

I finally compiled project after removing this part of code (handling arrays).

(sorry, I've used wrong button :) )

@Morgaroth Morgaroth reopened this Jan 5, 2015
@pocorall
Copy link
Owner

pocorall commented Jan 5, 2015

Thank you for the link!
I tried to search it, but that kind of character is not easily searchable.

Anyway, I started using some macro features that only supported from Scala 2.11. I forgot to remove 2.10 from crossScalaVersions. I will fix it now.

@pocorall
Copy link
Owner

pocorall commented Jan 5, 2015

Hmm... I was wrong. It definitely not related with macros.
I don't know why the type Array[android.os.Parcelable] in pattern-matching is not possible in Scala 2.10 compiler. Anyway, I dropped 2.10.

@Morgaroth
Copy link
Author

I look more at this today evening (in GMT+1) :)

guersam pushed a commit to guersam/scaloid that referenced this issue Jan 29, 2015
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

No branches or pull requests

2 participants