0
votes

I have the following imports in a Play! controller:

import reactivemongo.play.json.collection.JSONCollection
import reactivemongo.play.json.commands.JSONAggregationFramework.{Match,       Unwind, Project, AggregationResult}

The first import(JSONCollection case class) is in the ........ivy2\cache\org.reactivemongo\reactivemongo-play-json_2.11\jars\reactivemongo-play-json_2.11-0.11.14.jar

The second one (object JSONAggregationFramework) is in the same library but extends AggregationFramework which is in the: .........ivy2\cache\org.reactivemongo\reactivemongo_2.11\jars\reactivemongo_2.11-0.11.14.jar

Both libraries have the sources and JavaDocs attached. But, when I CTRL-Click in Eclipse(Scala IDE) on their name I get a fastidious

**Source Not Found 
The source attachment does not contain the source for the...
You can change the source attachment by clicking ...**

error.

I checked and the source JARS contain the aforementioned classes.

Is this a bug, or am I doing something wrong?

P.S.

I can just go in the left pane and click to open any class in the reactivemongo_2.11-0.11.14.jar library and I'll arrive to the same issue!

This does not happen for the classes in: .......ivy2\cache\org.reactivemongo\play2-reactivemongo_2.11\jars\play2-reactivemongo_2.11-0.11.14.jar though, where I am able to see the sources.

Many thanks in advance!

1
Not a ReactiveMongo question, but IDE specific - cchantep

1 Answers

2
votes

Please verify have you done like this or not. click on jar file and --> go to Source attachments--> click on Edit button and select the source path of the jar file.

enter image description here