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
Presentation compiler fails to resolve implicit defined in package object #8085
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8085?orig=1 |
@dotta said (edited on Dec 17, 2013 12:57:08 PM UTC):
|
@dotta said: |
@dotta said: % ./test/partest show-diff test/files/presentation/t8085
Partest version: 1.0.0-RC8
Compiler under test: $baseDir/scala-compiler.jar
Scala version is: Scala compiler version 2.11.0-20131216-141809-45c3c6632b -- Copyright 2002-2013, LAMP/EPFL
Scalac options are:
Compilation Path: $baseDir/scala-library.jar:$baseDir/scala-reflect.jar:$baseDir/scala-compiler.jar:$baseDir/scalap.jar:$baseDir/scala-actors.jar:/Users/mirco/.m2/repository/org/scala-lang/modules/scala-partest_2.11.0-M7/1.0.0-RC8/scala-partest_2.11.0-M7-1.0.0-RC8.jar:/Users/mirco/.m2/repository/org/apache/ant/ant/1.8.4/ant-1.8.4.jar:/Users/mirco/.m2/repository/org/apache/ant/ant-launcher/1.8.4/ant-launcher-1.8.4.jar:/Users/mirco/.m2/repository/com/googlecode/java-diff-utils/diffutils/1.3.0/diffutils-1.3.0.jar:/Users/mirco/.m2/repository/org/scala-sbt/test-interface/1.0/test-interface-1.0.jar:/Users/mirco/.m2/repository/org/scala-lang/modules/scala-xml_2.11.0-M7/1.0.0-RC7/scala-xml_2.11.0-M7-1.0.0-RC7.jar:/Users/mirco/.m2/repository/org/scala-lang/modules/scala-parser-combinators_2.11.0-M7/1.0.0-RC5/scala-parser-combinators_2.11.0-M7-1.0.0-RC5.jar:/Users/mirco/.m2/repository/org/scalacheck/scalacheck_2.11.0-M7/1.11.1/scalacheck_2.11.0-M7-1.11.1.jar:$baseDir/scala-partest-extras.jar:$baseDir/scala-partest-javaagent.jar:$sourceDir/lib/annotations.jar:$sourceDir/lib/enums.jar:$sourceDir/lib/genericNest.jar:$sourceDir/lib/jsoup-1.3.1.jar:$sourceDir/lib/methvsfield.jar:$sourceDir/lib/nest.jar:$sourceDir/lib/scalacheck.jar
Java binaries in: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
Java runtime is: Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
Java options are: -Xmx1024M -Xms64M -XX:MaxPermSize=128M
baseDir: /Users/mirco/Projects/ide/scala/build/pack/lib
sourceDir: /Users/mirco/Projects/ide/scala/test/files
Selected 1 tests drawn from specified tests
# starting 1 test in presentation
!! 1 - presentation/t8085 [output differs]
% diff /Users/mirco/Projects/ide/scala/test/files/presentation/t8085-presentation.log /Users/mirco/Projects/ide/scala/test/files/presentation/t8085.check
@@ -1,2 +1,2 @@
reload: NodeScalaSuite.scala
-value always is not a member of object scala.concurrent.Future
+Test OK
# 0/1 passed, 1 failed in presentation
# Failed test paths (this command will update checkfiles)
test/partest --update-check \
/Users/mirco/Projects/ide/scala/test/files/presentation/t8085
0/1 passed, 1 failed (elapsed time: 00:00:06)
Test Run FAILED |
@retronym said (edited on Dec 16, 2013 4:30:59 PM UTC): //package.scala
package object nodescala {
def Foo: Int = 0
} // NodeScalaSuite.scala
package nodescala
class NodeScalaSuite {
Foo
} This sort of problem means the |
@dotta said: |
@retronym said: But I believe that without that line, the fact that you put the package object under a file in |
@dragos said: |
@dotta said (edited on Dec 17, 2013 10:57:26 AM UTC): |
@dragos said: |
@dotta said: |
@retronym said: This logic in Namers: /** All PackageClassInfoTypes come from here. */
private def createPackageSymbol(pos: Position, pid: RefTree): Symbol = {
val pkgOwner = pid match {
case Ident(_) => if (owner.isEmptyPackageClass) rootMirror.RootClass else owner
case Select(qual: RefTree, _) => createPackageSymbol(pos, qual).moduleClass
} .. needs to be reflected in BrowserTraverser. |
@retronym said: |
The following was exctrated from the Coursera Reactive class assignment:
The reported error is: "value always is not a member of object scala.concurrent.Future"
I've managed to create a presentation compiler test that demonstrates the problem, will be pushing a patch with the failing test soon.
The text was updated successfully, but these errors were encountered: