Re: [scala-ide-user] Possible to navigate attached sources where package and folder doesn't match?

15 views
Skip to first unread message

Mirco Dotta

unread,
Jun 7, 2013, 1:49:09 PM6/7/13
to scala-i...@googlegroups.com
Hi Viktor,

Yes, that is a known limitation, and a very annoying one. It comes from the fact that we re-use the Eclipse Java support.
As you know, in Java packages and filesystem location are required to match, so it's not just a convention, like in Scala.

I remember a year ago I tried to see if I could fix this issue, but I didn't get to the bottom of it. I don't remember the details, but 
I believe it was difficult to change the default behavior (no public entry point, you need to resort to aspects).

-- Mirco

On Jun 5, 2013, at 3:57 PM, Viktor Hedefalk wrote:

I'm trying to navigate sources of a dependency I have where the folders inside the sources-jar doesn't match the package declarations. Is this possible? 

I'm using sbt-eclipse to generate my .classpath and for this specific entry it looks like:

<classpathentry kind="lib" path="/Users/viktor/.ivy2/cache/net.liftmodules/fobo-twitter-bootstrap_2.5_2.10/jars/fobo-twitter-bootstrap_2.5_2.10-1.0.jar" sourcepath="/Users/viktor/.ivy2/cache/net.liftmodules/fobo-twitter-bootstrap_2.5_2.10/srcs/fobo-twitter-bootstrap_2.5_2.10-1.0-sources.jar"></classpathentry>

 And then for instance I open net.liftmodules.snippet.FoBo.TBNavbar, but the source file is under net/liftmodules/FoBoTB/snippet/FoBo/TBNavbar.scala and I guess since they don't match Eclipse can't find the actual source.

Weird I haven't struck this problem before, but I guess most my deps use matching folders/packages. Is there any way I can fix this?


Thanks,

Viktor


--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages