Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Obscure compiler errors when mis-defining a FragmentActivity #63

Open
nightscape opened this issue May 10, 2015 · 1 comment
Open

Obscure compiler errors when mis-defining a FragmentActivity #63

nightscape opened this issue May 10, 2015 · 1 comment

Comments

@nightscape
Copy link
Contributor

Hi all,

this is more of a FAQ in case someone runs into the same obscure compiler error as I did.
I got errors like the following

java.lang.AssertionError: assertion failed:
[error]   setContentView(getUi(f[MindmupFileSelection](findMindmups).framed(Id.mindmupFiles, Tag.mindmupFilesTag)))
[error]      while compiling: mindmup_tasks/src/main/scala/com/mindmup/android/tasks/MainActivity.scala
[error]         during phase: superaccessors
[error]      library version: version 2.11.6
[error]     compiler version: version 2.11.6

My mistake was the following line

class MainActivity extends FragmentActivity with Contexts[Activity]

which should read

class MainActivity extends FragmentActivity with Contexts[FragmentActivity]

I guess there's not much Macroid can do to help here, but maybe this issue can prevent others from searching as long as I did ;)

@stanch
Copy link
Collaborator

stanch commented May 12, 2015

Hmm, not sure what happened there :( I’ll try this when I have some time.
Feel free to suggest improvements to the current docs:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants