Closed dragos closed 11 years ago
This is very funky. Mine doesn't even show the results in SafeSymbol.scala
. When I start at the one in SafeSymbol.scala
it does show the definition though. I'll investigate :)
Ah, it seems to be related to #39. The importer throws an exception before it can find all the results! :)
There were at least two problems going wrong here. First off because of #39 an exception would be thrown and it would stop the search.
When that was fixed, I hit a bug in compiler: Sometimes askOption will return an overloaded symbol rather than the symbol of the method that is being used at the given point. This resulted in our comparison failing.
Yeap, the overloaded-symbol bug is annoying, I'll have a look.
Using the sdt.core project, I searched for
askOption
, starting from its definition inScalaPresentationCompiler
. I noticed that:SafeSymbol.scala
, there are 5 (the one at line 97 is missing). If I search starting from that occurrence, it finds all 5 of themScalaLaunchShortcut.scala
, out of the 2. Sometimes it finds both