summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* SI-6746 Fixes MANIFEST.MF package entry (s.r.makro -> s.r.macros)Simon Ochsenreither2012-12-061-1/+1
|
* Merge pull request #1702 from scalamacros/topic/idempotencyEugene Burmako2012-12-0512-0/+241
|\ | | | | tests for idempotency issues in the typechecker
| * tests for idempotency issues in the typecheckerEugene Burmako2012-12-0412-0/+241
| | | | | | | | | | | | | | For more details see https://issues.scala-lang.org/browse/SI-5464. Check files are intentionally very precise, so that we can monitor how the situation changes over time.
* | Merge pull request #1681 from paulp/issue/6731Adriaan Moors2012-12-0510-48/+331
|\ \ | | | | | | Fix for SI-6731, dropped trees in selectDynamic.
| * | Test cases for SI-5726, SI-5733, SI-6320, SI-6551, SI-6722.Paul Phillips2012-11-297-1/+110
| | | | | | | | | | | | | | | All tickets involving selectDynamic fixed by the prior commit. It also fixes SI-6663, but that already has a test case.
| * | Fix for SI-6731, dropped trees in selectDynamic.Paul Phillips2012-11-283-47/+221
| | | | | | | | | | | | I rewrote mkInvoke entirely, and boosted the test coverage.
* | | Merge pull request #1682 from paulp/assert-about-qualifierPaul Phillips2012-12-034-7/+20
|\ \ \ | | | | | | | | Asserts about Tree qualifiers.
| * | | Asserts about Tree qualifiers.Paul Phillips2012-11-294-7/+20
| | | | | | | | | | | | | | | | | | | | Encoding recent revelations about certain tree invariants in the form of asserts.
* | | | Merge pull request #1678 from martende/ticket/5753Eugene Burmako2012-11-2915-10/+57
|\ \ \ \ | |/ / / |/| | | SI-5753 macros cannot be loaded when inherited from a class or a trait
| * | | neg test addedmartende2012-11-276-0/+22
| | | |
| * | | SI-5753 macros cannot be loaded when inherited from a class or a traitmartende2012-11-279-10/+35
| | |/ | |/| | | | | | | | | | enclClass should be taken from Tree otherwise we can jump to declaration class/trait.
* | | Merge pull request #1676 from retronym/topic/sm-interpolatorPaul Phillips2012-11-2813-55/+148
|\ \ \ | |_|/ |/| | Adds a margin stripping string interpolator.
| * | Take advantage of the margin stripping interpolator.Jason Zaugg2012-11-269-55/+52
| | | | | | | | | | | | Safer and shorter.
| * | Adds a margin stripping string interpolator.Jason Zaugg2012-11-264-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently only for compiler internal use. Designed to avoid surprises if the interpolated values themselves contain the margin delimiter. Before: val bip = "\n |.." s"""fooo |bar $bip |baz""".stripMargin "fooo bar .. baz" After: sm"""fooo |bar $bip |baz""" "fooo bar |.. baz"
* | | Merge pull request #1674 from scalamacros/topic/showrawJosh Suereth2012-11-272-4/+6
|\ \ \ | |_|/ |/| | SI-6718 fixes a volatile test
| * | SI-6718 fixes a volatile testEugene Burmako2012-11-262-4/+6
| | |
* | | Merge pull request #1666 from paulp/issue/6707Adriaan Moors2012-11-252-4/+4
|\ \ \ | | | | | | | | Flag pattern matcher synthetics as synthetic.
| * | | Mark pattern matcher synthetics as SYNTHETIC.Paul Phillips2012-11-242-2/+2
| | | | | | | | | | | | | | | | | | | | Flagging synthetics accurately is important to allow for useful static analysis.
| * | | Set symbol flags at creation.Paul Phillips2012-11-241-2/+2
| | | | | | | | | | | | | | | | | | | | All should prefer passing flags at symbol creation to mutating the flags field after creation.
* | | | Merge pull request #1665 from paulp/issue/6687Adriaan Moors2012-11-252-1/+11
|\ \ \ \ | | | | | | | | | | Fix for SI-6687, wrong isVar logic.
| * | | | Fix for SI-6687, wrong isVar logic.Paul Phillips2012-11-242-1/+11
| |/ / / | | | | | | | | | | | | | | | | Fields which back lazy vals need to be excluded via !isLazy lest isVar return true.
* | | | Merge pull request #1663 from paulp/merge-2.10.wip-xAdriaan Moors2012-11-2540-141/+410
|\ \ \ \ | | | | | | | | | | Merge 2.10.0-wip into 2.10.x.
| * \ \ \ Merge remote-tracking branch 'origin/2.10.0-wip' into merge-2.10.wip-xPaul Phillips2012-11-2340-141/+410
| |\ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By Jason Zaugg (8) and others # Via Adriaan Moors (6) and Josh Suereth (5) * origin/2.10.0-wip: Removing controversial `either` method from Futures API. SI-6624 set info of case pattern binder to help find case field accessors Fixes SI-6628, Revert "Fix for view isEmpty." SI-6661 - Remove obsolete implicit parameter of scala.concurrent.promise method Fixes SI-6559 - StringContext not using passed in escape function. SI-6648 copyAttrs must preserve TypeTree#wasEmpty Fix raw string interpolator: string parts which were after the first argument were still escaped Update comment. SI-6646 `ident` or Ident is always new binding. SI-6440 Address regressions around MissingRequirementError Refine the message and triggering of MissingRequirementError. SI-6640 Better reporting of deficient classpaths. SI-6644 Account for varargs in extmethod forwarder SI-6646 Fix regression in for desugaring. Update tools/epfl-publish
| | * | | Merge pull request #1656 from jsuereth/fix/remove-future-either-methodv2.10.0-RC3Adriaan Moors2012-11-211-23/+0
| | |\ \ \ | | | | | | | | | | | | Removing controversial `either` method from Futures API.
| | | * | | Removing controversial `either` method from Futures API.Josh Suereth2012-11-211-23/+0
| | |/ / / | | | | | | | | | | | | | | | | | | | | * Removes `either` from Future * No tests need to change, since this was an untested method.
| | * | | Merge pull request #1607 from retronym/ticket/6640Josh Suereth2012-11-1915-53/+200
| | |\ \ \ | | | | | | | | | | | | SI-6640 Better reporting of deficient classpaths.
| | | * | | SI-6440 Address regressions around MissingRequirementErrorJason Zaugg2012-11-1315-42/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Go back to using globalError to report when a stub's info is referenced, and only throw the MissingRequirementError when compilation really must abort due to having a StubTermSymbol in a place where a StubClassSymbol would have been a better choice. This situation arises when an entire package is missing from the classpath, as was the case in the reported bug. Adds `StoreReporterDirectTest`, which buffers messages issued during compilation for more structured interrogation. Use this in two test for manifests -- these tests were using a crude means of grepping compiler console output to focus on the relevant output, but this approach was insufficient with the new multi-line error message emitted as part of this change. Also used that base test class to add two new tests: one for the reported error (package missing), and another for a simpler error (class missing). The latter test shows how stub symbols allow code to compile if it doesn't the subset of signatures in some type that refer to a missing class. Gave the INFO/WARNING/ERROR members of Reporter sensible toString implementations; they inherit from Enumeration#Value in an unusual manner (why?) that means the built in toString of Enumeration printed `Severity@0`.
| | | * | | Refine the message and triggering of MissingRequirementError.Jason Zaugg2012-11-103-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - To force a failure of the stub, call a new method `failIfStub` rather than `info`. - Offer a broader range of potential root causes in the error message.
| | | * | | SI-6640 Better reporting of deficient classpaths.Jason Zaugg2012-11-103-20/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a55788e, StubSymbols were introduced to fail-slow when the classpath was deficient. This allowed compilation to succeed in cases when one didn't actually use the part of class A which referred to some missing class B. But a few problems were introduced. Firstly, when the deferred error eventually happened, it was signalled with abort(msg), rather than through a thrown MissingRequirementError. The latter is desirable, as it doesn't lead to printing a stack trace. Second, the actual error message changed, and no longer included the name of the class file that refers to the missing class. Finally, it seems that we can end up with a stub term symbol in a situation where a class symbol is desired. An assertion in the constructor of ThisType throws trips when calling .isClass, before the useful error message from StubSymbol can be emitted. This commit addresses these points, and rewords the error a little to be more accessible. The last point is the most fragile in this arrangement, there might be some whack-a-mole required to find other places that also need this. I don't see a clean solution for this, but am open to suggestions. We should really build a facility in partest to delete specified classfiles between groups in separate compilation tests, in order to have tests for this. I'll work on that as a followup. For now, here's the result of my manual testing: [info] Set current project to default-821d14 (in build file:/Users/jason/code/scratch1/) > compile [info] Compiling 1 Scala source to /Users/jason/code/scratch1/target/scala-2.10/classes... [error] [error] while compiling: /Users/jason/code/scratch1/test.scala [error] during phase: typer [error] library version: version 2.10.0-RC2 [error] compiler version: version 2.10.0-RC2 ... [error] last tree to typer: Ident(SwingWorker) [error] symbol: <none> (flags: ) [error] symbol definition: <none> [error] symbol owners: [error] context owners: object Test -> package <empty> ... [error] uncaught exception during compilation: java.lang.AssertionError [trace] Stack trace suppressed: run last compile:compile for the full output. [error] (compile:compile) java.lang.AssertionError: assertion failed: value actors [error] Total time: 2 s, completed Nov 10, 2012 3:18:34 PM > > set scalaHome := Some(file("/Users/jason/code/scala/build/pack")) [info] Defining *:scala-home [info] The new value will be used by no settings or tasks. [info] Reapplying settings... [info] Set current project to default-821d14 (in build file:/Users/jason/code/scratch1/) ^[compile [info] Compiling 1 Scala source to /Users/jason/code/scratch1/target/scala-2.10/classes... [error] /Users/jason/code/scratch1/test.scala:4: A signature in SwingWorker.class refers to term actors in package scala which is missing from the classpath. [error] object Test extends SwingWorker [error] ^ [error] one error found [error] (compile:compile) Compilation failed [error] Total time: 2 s, completed Nov 10, 2012 3:18:45 PM
| | * | | | Merge pull request #1638 from adriaanm/ticket-6624Josh Suereth2012-11-192-1/+39
| | |\ \ \ \ | | | | | | | | | | | | | | SI-6624 better lookup of case field accessors for case class pattern with complicated type
| | | * | | | SI-6624 set info of case pattern binder to help find case field accessorsAdriaan Moors2012-11-162-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sometimes the type checker infers a weird type for a sub-pattern of a case class/extractor pattern this confuses the pattern matcher and it can't find the case field accessors for the sub-pattern use the expected argument type of the extractor corresponding to the case class that we're matching as the info for the sub-pattern binder -- this type more readily admits querying its caseFieldAccessors
| | * | | | | Merge pull request #1636 from paulp/issue/6628Adriaan Moors2012-11-1610-36/+33
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | Fixes SI-6628, Revert "Fix for view isEmpty."
| | | * | | | | Fixes SI-6628, Revert "Fix for view isEmpty."Paul Phillips2012-11-1510-36/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit caf7eb6b56817fd1e1fbc1cf017f30e6f94c6bea. I don't have a better idea right now than wholesale reversion.
| | * | | | | | Merge pull request #1616 from retronym/backport/6559Adriaan Moors2012-11-164-3/+20
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | SI-6559 Fix raw string interpolator: string parts which were after the first argument were still escaped
| | | * | | | | | Fixes SI-6559 - StringContext not using passed in escape function.Josh Suereth2012-11-141-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As reported by Curtis Stanford, with indication of what to fix. standardInterpolator was not correctly calling the passed in process function, so raw strings were not really raw.
| | | * | | | | | Fix raw string interpolator: string parts which were after the first ↵Julien Richard-Foy2012-11-133-3/+3
| | | | |_|/ / / | | | |/| | | | | | | | | | | | | | | | | | | | argument were still escaped
| | * | | | | | Merge pull request #1615 from retronym/ticket/6648Adriaan Moors2012-11-162-0/+37
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | SI-6648 copyAttrs must preserve TypeTree#wasEmpty
| | | * | | | | | SI-6648 copyAttrs must preserve TypeTree#wasEmptyJason Zaugg2012-11-142-0/+37
| | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This field tracks whether the type is an inferred on, subject to removal in `resetAttrs`, or an explicit type, which must remain. In ae5ff662, `ResetAttrs` was modified to duplicate trees, rather than mutate trees in place. But the tree copier didn't pass `wasEmpty` on to the new tree, which in turn meant that the subsequent typing run on the tree would not re-infer the types. If the type refers to a local class, e.g. the anonymous function in the enclosed test case, the reference to the old symbol would persist. This commit overrides `copyAttrs` in TypeTree to copy `wasEmpty`. We might consider representing this as a tree attachment, but this would need to be validated for the performance impact.
| | * | | | | | Merge pull request #1614 from phaller/issue/correct-promise-signatureAdriaan Moors2012-11-161-3/+2
| | |\ \ \ \ \ \ | | | |_|/ / / / | | |/| | | | | SI-6661 - Remove obsolete implicit parameter of scala.concurrent.promise method
| | | * | | | | SI-6661 - Remove obsolete implicit parameter of scala.concurrent.promise methodphaller2012-11-151-3/+2
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarification of @heathermiller: This is an inconsistency introduced after refactoring implicit ExecutionContexts. In commit 1dfce90246f7d334 the implicit ExecutionContexts were removed from everything else in Promise.scala, but it appears that method promise was missed in the scala.concurrent package object, which would've made sense to remove back then.
| | * | | | | Merge pull request #1608 from retronym/ticket/6644Josh Suereth2012-11-142-3/+9
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | SI-6644 Account for varargs in extmethod forwarder
| | | * | | | | SI-6644 Account for varargs in extmethod forwarderJason Zaugg2012-11-102-3/+9
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Which sounded difficult, so instead I offshored the work to the friendly republic of TreeGen.
| | * | | | | Merge pull request #1601 from cunei/patch-1Josh Suereth2012-11-141-1/+1
| | |\ \ \ \ \ | | | |_|/ / / | | |/| | | | Update tools/epfl-publish
| | | * | | | Update tools/epfl-publishcunei2012-11-091-1/+1
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, during each Scala nightly build, the epfl-publish script rsyncs the resulting dists/archives to the repository machine (chara). Now, as a result of a change introduced a while back, dists/archives/ now also contains a symbolic link, created at the end of the build when the targets "pack-archives.latest.*" are invoked (in src/build/pack.xml). That was introduced in: scala/scala@506bcfe71c93160ebfa0ca9b8b170b4b54e844e9 scala/scala@cb99853c8655686dae1288cbcd44a42cf1ea6609 This link, created in dists/archives/, is copied over as-is at the end of the rsync to chara by epfl-publish. On chara, however, the link points to an invalid target (the path is absolute). Separately, the repository directory on chara is rsync'd every 30 minutes over to the machine that serves www.scala-lang.org, via cron. Rsynch finds that the link target does not exist, and generates an email with the crontab log, which is then duly sent to a system mailbox. Every 30 minutes. Since March. Needless to say, the mailbox is pretty large by now. The fix is trivial, but this needs to be included in all the branches that are tested during the nightly. Since RC2 has just been cut, and the code frozen, I'm not sure how this change can be included without disruption; therefore, I'll just send a pull request on 2.10.0-wip, and let Josh/Paul take the appropriate steps.
| | * | | | Merge pull request #1606 from retronym/ticket/6646Adriaan Moors2012-11-134-19/+87
| | |\ \ \ \ | | | |/ / / | | |/| | | SI-6646 Fix regression in for desugaring.
| | | * | | Update comment.Jason Zaugg2012-11-131-1/+2
| | | | | |
| | | * | | SI-6646 `ident` or Ident is always new binding.Jason Zaugg2012-11-133-25/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous commit regressed in these cases: // no withFilter for (X <- List("A single ident is always a pattern")) println(X) for (`x` <- List("A single ident is always a pattern")) println(`x`) At the top level of the LHS of a <-, such identifiers represent new bindings, not stable identifier patterns.
| | | * | | SI-6646 Fix regression in for desugaring.Jason Zaugg2012-11-104-19/+44
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | The early check in the parser of pattern irrefutability, added in c82ecab, failed to consider InitCaps and `backquoted` identifiers.
* | | | | Merge pull request #1652 from jedesah/FlatHashTableAdriaan Moors2012-11-251-7/+6
|\ \ \ \ \ | | | | | | | | | | | | findEntry implementation code more concise and DRYer.
| * | | | | findEntry implementation code more concise and DRYer.Jean-Remi Desjardins2012-11-201-7/+6
| | | | | |