| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Filter completion proposals so that SDT need not do it. Should solve the
completion problems we were seeing.
|
| |
|
| |
|
|
|
|
|
| |
No review
|
|
|
|
|
|
| |
Applied a few more fixes for specialization and added a new instrumented
jar. Review by dragos.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Fixed a couple of term specialization bugs.
|
|
|
|
|
| |
Changed the dummy specialization parameter Ref to AnyRef.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Improved an error message involving overload+default args. Closes #3909,
no review.
|
|
|
|
|
|
|
|
|
| |
Added a system property which disables stack trace suppression. (At
present it is the very terse -Dscala.control.no-trace-suppression.)
This makes zero-output crashes involving things like MissingType
significantly less maddening. It would behoove us to have a central
naming scheme for such properties. Review by community.
|
|
|
|
|
|
| |
Some cleanup from investigating #4041, with a comment instead of a fix
for the ticket. Review by rytz in case he sees a good way to fix it.
|
|
|
|
|
|
|
| |
[scaladoc] Don't hide AnyRef's methods on the AnyRef page. This issue
is reported at http://lampsvn.epfl.ch/trac/scala/ticket/3668. Review by
dubochet.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
up it will issue some apologies and then replay the session up
to the crash line with a new compiler. If you combine this with
-Yrich-exceptions then you can induce a crash, see the exact path
through the code which led there, and then continue on your merry way as
if nothing happened.
// say ticket #4188 for example
% scala -Yrich-exceptions
scala> class A {
| object Ding
| class B {
| (null: Any) match { case _: Ding.type => () }
| }
| }
assertion failed: Trying to access the this of another class: tree.symbol = class $read$$iw$$iw$A, ctx.clazz.symbol = class $read$$iw$$iw$A$B compilation unit:<console>
[searching for exception contexts...]
[GenICode.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad]
958:
959: case This(qual) =>
960: assert(tree.symbol == ctx.clazz.symbol || tree.symbol.isModuleClass,
*961: "Trying to access the this of another class: " +
962: "tree.symbol = " + tree.symbol + ", ctx.clazz.symbol = " + ctx.clazz.symbol + " compilation unit:"+unit)
963: if (tree.symbol.isModuleClass && tree.symbol != ctx.clazz.symbol) {
964: if (settings.debug.value)
[GenICode.genLoadQualifier]
1166: tree match {
1167: case Select(qualifier, _) =>
1168: genLoad(qualifier, ctx, toTypeKind(qualifier.tpe))
*1169: case _ =>
1170: abort("Unknown qualifier " + tree)
1171: }
1172:
[...]
Attempting session recovery...
scala>
No review.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
New option: Ypresentation-delay, to wait with typechecking after typing.
|
|
|
|
|
|
|
|
|
| |
for me anyway, with this commit scripts will occasionally reuse a
compiler instance, instead of never. Since any tests I write will fail
on platforms which aren't mine, there are no tests. I might have to
start a platform-specific testing area to break some ice around these
huge untested zones. No review.
|
|
|
|
|
| |
redesigned error message handling for presentation compiler.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Fixed a history bug with it not starting at the right index. No review.
|
|
|
|
|
| |
Added all the javap command line options to :javap. No review.
|
|
|
|
|
|
|
|
|
|
|
| |
Is this symbol defined in the same scope
and compilation unit as `that' symbol?
But "same scope" was never checked, only "same compilation unit."
Presumably other layers of logic kept this from being noticed until now,
but it has been crashing sbt. Added check to isCoDefinedWith. Closes
#4220, review by odersky.
|
|
|
|
|
|
| |
Fix for parser regression allowing 0-case match blocks. Closes #4217, no
review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
minor inaccuracy, and added flag change tracking as well. Now the left
column zone may show any of:
* // new symbol
F // flags changed
O // owner changed
Or sometimes the awe-inspiring "FO" as in this example.
class A {
def foo(unit: String) {
def bar(x: String) = x == null
}
}
[[symbol layout at end of lambdalift]]
class A#17
constructor A#8017
FO method bar$1#9953 [Owner was method foo#8018, now class A#17] [+private +final +<local>]
value x#9954
method foo#8018
value unit#9882
value <local A>#8019
No review.
|
|
|
|
|
|
| |
anything fail. This test might be a bit overly output-sensitive to be in
the general pool... no review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
symbols. Specifically, it extracts all the symbols attached to AST
nodes, and then prints them hierarchically along with indicators for new
symbols and other interesting factoids like disappearing symbols.
A small demonstration. Output shown is obviously only a fraction of what
is produced.
// a.scala
class A { Nil foreach println }
% scalac -Yshow-syms -uniqid a.scala
[[symbol layout at end of selectivecps]]
class A#17
constructor A#8019
value <local A>#8020
value $anonfun#10961 <synthetic>
value x#10971 <synthetic>
[[symbol layout at end of uncurry]]
class A#17
constructor A#8019
value <local A>#8020
* anonymous class $anonfun#10993 final <synthetic>
* constructor $anonfun#11001
* method apply#10994 final
value x#10971 <synthetic>
* value <local $anonfun>#10999
No review.
|
|
|
|
|
|
|
| |
[scaladoc] "Hide All" should be hide inherited members, not own. This
issue is reported at http://lampsvn.epfl.ch/trac/scala/ticket/3775.
review by dubochet.
|
|
|
|
|
|
| |
Fixed failure to load presentation compiler with sources in the empty
package.
|
|
|
|
|
|
| |
Re-enabled test spec-traits (removed the swing dependent part, since all
it tested was call-by-name parameters). no review.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
[scaladoc] Scaladoc no longer crashes upon realising there is nothing to
document. Closes #3928. No review.
|
|
|
|
|
|
| |
Added logging for compileLate, trying to figure out strange build
problems in the IDE. no review.
|
|
|
|
|
|
| |
[scaladoc] Fixes the way new lines in wiki syntax convert to spaces.
Closes #3735. No review.
|
| |
|