New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completions not found for members imported from an object #7280
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7280?orig=1 |
@skyluc said: Some information about the vals is provided by scope completion. Scala IDE currently filters out this information. We will see if it can be fixed on the Scala IDE side, or if we need to open another ticket for this case. So, the remaining test case for the defs is the following: object Cont {
def longName() {}
}
class ImportOut {
import Cont._
def foo {
/*_*/ // `longName` is in the scope members
}
}
class ImportIn {
def foo {
import Cont._
/*_*/ // `longName` is not in the scope members
}
} |
@retronym said: It seems we have no tests at all for scope completion. I extended InteractiveTest to support this on a branch: retronym/scala@scala:2.10.x...ticket/completion2 |
@dragos said: |
@retronym said: |
No scope completion on members imported from an object. Vals are not found at all. Methods are found, unless the import is inside a
def
.This suggests that the presentation compiler mistreats imports in the Context used for completions.
The text was updated successfully, but these errors were encountered: