Duarte Nunes
Duarte Nunes

Reputation: 852

Scala macros and separate compilation units

Is this limitation going to be overcome in the future? Or is there some way to get around this that I'm not aware of?

Right now I have a project where I would like to use macros, but they would need to depend on types specific to that project. Having a separate compilation unit for the macro would require me to introduce another one to hold the common types, which I'm not willing to do every time I write a macro.

Upvotes: 10

Views: 665

Answers (2)

Andrei Pozolotin
Andrei Pozolotin

Reputation: 937

Both Scala IDE and Scalor Maven Plugin support same-project macro compilation scopes.

Upvotes: 0

Eugene Burmako
Eugene Burmako

Reputation: 13048

Yes, we recognize that as a problem. Getting rid of this limitation is very high on our priority list.

Upvotes: 8

Related Questions