| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This PR will add a bot whose first purpose is to check the CLA of
contributing PRs. It improves on the old bot in that it checks each
commit individually, and doesn't get upset about 100+ commits.
It would be fun to do this PR with you @OlivierBlanvillain, feel free
to provide feedback/comments and refactor as you like
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
The original implementation used the template engine to recursively
expand references. This was very error-prone and with no typesafety and
proper stack traces it was very hard to diagnose. As such, these two
expansions (links and references) have been re-implemented as filters.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This way you can run both the dotty-library-bootstrapped and
dotty-compiler-bootstrapped tests with one command:
sbt ;publishLocal;dotty-bootstrapped/test
|
|
|
|
|
|
|
| |
`partest` and `partest-only` are now run through
`dotty-compiler-bootstrapped`. The old bootstrapping mechanism is
deleted since it has been unmaintained and broken for several months and
that I do not wish to maintain two bootstrapping mechanisms.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds two new project to the sbt build: dotty-library-bootstrapped
and dotty-compiler bootstrapped. These projects use the same source
files as dotty-library and dotty-compiler but are compiled using dotty
itself. The main usecase for this is that we can now run the JUnit
tests (which are _not_ just a subset of the tests run by partest, for
example the REPL tests are only run through JUnit) with
a bootstrapped compiler:
$ sbt
> publishLocal # Non-bootstrapped dotty needs to be published first
> dotty-compiler-bootstrapped/test
But this also allows one to experiment with a bootstrapped dotty much
more easily in general.
This revealed many issues in the compiler that are fixed in subsequent
commits in this PR.
|
|
|
|
|
| |
This is necessary to run the tests with the bootstrapped projects and is
just much better than hardcoding them anyway.
|
|
|
|
|
|
| |
The upgraded backend contains a single new PR:
https://github.com/DarkDimius/scala/pull/4 which fixes Java interop with
Dotty-emitted inner classes in objects.
|
|
|
|
|
| |
This is needed to make dotty-compiled projects work with sbt 0.13.13, the
other needed fix is https://github.com/sbt/sbt/pull/2897
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is useful for two reasons:
- All published Scala versions are of the form a.b.c and some tooling
expect that, like sbt CrossVersion API.
- Using 0.1.1 instead of 0.1.0 means that we match the version number of
dotty-sbt-bridge, this is simpler and means that in the future sbt
could automatically choose the correct version of dotty-sbt-bridge so
that the user does not need to specify scalaCompilerBridgeSource in
his build.sbt
Note: it's awful that we have hardcoded paths to jars and that I had to
change them, but I won't fix that now.
|
|
|
|
|
|
|
|
| |
To be useful, the dummy scala-library:
- needs to be published with crossPaths off (the "_2.11" path of the
artefact name), like the real scala-library
- should depend on dotty-library and not just scala-library, since this
is what is needed to compile dotty programs
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
We still publish an empty dotty-compiler_2.11-javadoc.jar to make
sonatype happy.
|
| |
|
|
|
|
|
| |
Otherwise this would get picked up by eclipse plugin as a project named
`bin`
|
| |
|
|
|
|
| |
These commands already work without defining aliases
|
| |
|
| |
|
|
|
|
|
| |
Before this commit, commands such as "test" would not run anything,
which means that the JUnit tests were never run.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before this commit, Build.scala contained:
baseDirectory in run := baseDirectory.value / "..",
The goal of this line is that when invoking the compiler using `run` or
`dotc`, the working directory is the root of the dotty project, which is
convenient for testing.
However, this line also affects the working directory of
`dotty-compiler/runPartestRunner`, but not of `dotty-compiler/test`.
The result was that `dotty-compiler/test` was broken, and fixing the
paths in the code would break `partest`.
We solve this by using a different baseDirectory when running partest.
|
| |
|
|
|
|
|
| |
Otherwise `packageAll` by itself as used in aliases like `partest` won't
work.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Should still perhaps move `test/dotc/tests.scala` and the others in the
same directory to a better more cohesive location. Would like to delete
the worksheets as well - but maybe they hold sentimental value...
|
|
|
|
|
|
| |
Broken since the dotty jars were removed from the JVM bootclasspath. I think
the proper solution is to use the Scala bootclasspath to pass all the
necessary jars but this will do for now.
|
|
|
|
|
|
| |
The fix to partest to make it compile files in subdirectories means that
we're compiling more things and using more heap and has resulted in
tests failing with OutOfMemoryError. Hopefully this fixes that.
|
|
|
|
|
|
| |
Running `packageAll` is now required before running the tests, this
commit enforces this, by making `javaOptions` depend on `packageAll`,
this requires rewriting `packageAll` to be a task instead of a command alias.
|