Commit Graph

6900 Commits

Author SHA1 Message Date
Arya Irani
c27e3e51b6 use liftIO instead of MonadUnliftIO 2021-04-05 19:13:17 -06:00
Paul Chiusano
492e346a7b
Merge pull request #1854 from unisonweb/fix/thro 2021-04-01 14:36:47 -05:00
Dan Doel
9a7499ee95 Fix some uses of throwing in the new runtime
When adding arguments to the instruction for bug/todo output, some other
uses of throwing errors were neglected and passed the wrong number of
arguments. This change also customizes the error messages a bit
(although they do not quite match the old messages).
2021-04-01 14:41:24 -04:00
Paul Chiusano
6d357dec83
Merge pull request #1852 from unisonweb/topic/decompiling
Keep track of more decompilation information.
2021-03-31 14:41:56 -05:00
Dan Doel
d3910d62a1 Keep track of more decompilation information.
In addition to the whole term for a combinator, each floated expression
is remembered so it can be used in decompilation when they are partially
applied.
2021-03-31 15:29:48 -04:00
Paul Chiusano
3ada3e0d98
Merge pull request #1851 from unisonweb/topic/decompiling
Avoid unnecessary floating of some lambdas
2021-03-29 11:31:25 -05:00
Dan Doel
05c2060548 Avoid unnecessary floating of some lambdas
- The old floater would float even
    x -> e
  into:
    let f x = e
        f
  which is quite unnecessary.

- It is also unnecessary to float a lambda immediately in the body of a
  let rec, because the entry point for a compiled let rec can take
  variables.

- The old floating behavior was essentially ensuring that lambda
  expressions could not be decompiled (currently), because they are
  turned into references to internal bindings of a top level combinator.

- Note that the transcript change is because we are serializing a
  different value, not because serialization has changed.
2021-03-28 18:07:33 -04:00
Paul Chiusano
37c040a29a
Merge pull request #1850 from JohannesHuster/redundant-commas-in-list
Allow redundant commas in list parsing
2021-03-24 14:43:07 -05:00
Hans Schuster
3ee004bd72 Allow redundant commas in lists
Allows multiple commas leading, trailing and between elements (Issue 1841)
2021-03-24 19:35:12 +01:00
Arya Irani
d20157079f
Merge pull request #1849 from bontaq/ian/run-matched-transcripts
Allow filtering of transcript tests by prefix
2021-03-21 15:55:26 -04:00
Ian
15f437ac60 Fix prefix-search halting early
If there weren't any matches in the first directory searched,
it was stopping with "hmm ... no test results recorded",
so we skip to the next test set if there are no transcripts
found.
2021-03-21 13:06:23 -04:00
Ian
e42d5c180e Update development md as well 2021-03-21 12:17:10 -04:00
Ian
ee98317fed Make transcript tests filterable by prefix
Now you can `stack exec transcripts -- prefix-of-test` like
`stack exec tests -- prefix`
2021-03-21 12:17:08 -04:00
Paul Chiusano
36aa82fb74
Merge pull request #1846 from unisonweb/ucm-env-vars-readme
Update README with ucm env var instructions
2021-03-19 09:40:58 -05:00
Simon Højberg
a725f91dab Env vars: rename UCM_BIND to UCM_HOST 2021-03-19 09:40:22 -04:00
Paul Chiusano
93c873b208
Merge pull request #1848 from unisonweb/fix/1844
Fix decompilation of 'large' constructors + extra
2021-03-18 17:16:53 -05:00
Dan Doel
b746803f20 Roll back an unintended modification to Transcripts.hs 2021-03-18 17:23:42 -04:00
Dan Doel
3d4393c9a9 Run transcripts in the old-runtime-transcripts directory 2021-03-18 17:08:32 -04:00
Dan Doel
9ceead2d6c Improve the error message for bug/todo in the new runtime 2021-03-18 17:07:52 -04:00
Dan Doel
4261780b31 Somehow missed part of the previous fix. 2021-03-18 17:05:35 -04:00
Simon Højberg
3d4e4f5686 Update README with ucm env var instructions 2021-03-18 15:47:04 -04:00
Dan Doel
710c4eac3e Fix DataC implementation for large data values
- The array-based data type values store their contents in the same
  order as the stack, which grows toward increasing array indices. This
  means that fields are actually stored in reverse order. But the DataC
  auxiliary functions were assuming they were in order. This was only
  really visible via decompilation (or observing the binary
  representation of serialized vlaues).
2021-03-18 15:43:32 -04:00
Dan Doel
fac5949472 Create an old runtime transcript directory
- There is just one transcript that requires the old runtime, but it
  interferes with the ability to run transcripts on the new runtime.
2021-03-18 14:39:21 -04:00
Dan Doel
e62d4315b5 Add a flag to the transcript tests to use the new runtime
- The new runtime should pass the existing transcripts, so this was an
  oversight. Running this test with `--new-runtime` would previously
  just do an identical set of tests, using the old runtime for most
  transcripts and the new runtime only for things in the specific new
  runtime directory.
2021-03-18 14:21:28 -04:00
Dan Doel
eba054fd87 Add a test case for #1844 2021-03-18 12:48:09 -04:00
Mike (stew) O'Connor
e652751454
Merge pull request #1845 from stew/feature/codebase-envvars
allow port / token / ip for codebase server to come from environment …
2021-03-17 22:09:22 -07:00
Stew O'Connor
4e1b7e0c00 allow port / token / ip for codebase server to come from environment variables 2021-03-17 15:22:49 -07:00
Arya Irani
4d147b0c02
Merge pull request #1838 from ceedubs/bugfix-1648
name.segments test: don't pick from an empty list
2021-03-16 23:52:19 -04:00
Arya Irani
497d5af155
Merge pull request #1835 from ceedubs/update-stack-resolver
stack resolver nightly-2021-01-02 -> lts-17.5
2021-03-16 23:51:34 -04:00
Cody Allen
8a774319a2
stack resolver nightly-2021-01-02 -> lts-17.5
This also moves from ghc 8.10.3 to 8.10.4.

My main motivation was making some versions line up for a newer
packaging of haskell-language-server, but it seemed like it might
generally be good to move from a nightly to an lts version?
2021-03-16 19:19:51 -07:00
Arya Irani
0e7b6bc2b9
Merge pull request #1839 from unisonweb/stack-in-ci
Use stack to install GHC in CI (fixes #1782)
2021-03-16 18:51:51 -04:00
Mitchell Rosen
0f64a486e2 Use stack to install GHC in CI 2021-03-16 15:10:49 -04:00
Cody Allen
49ca817535
EasyTest: better message when pick is called with empty list 2021-03-16 08:23:47 -07:00
Cody Allen
9f3ce3838c
name.segments test: don't pick from an empty list
Resolves #1648.

Technically I think that this has slightly different RNG characteristics
than the old implementation, but I wouldn't expect it to matter for
the sake of the test.
2021-03-15 19:21:24 -07:00
Arya Irani
0a45ac194a
Merge pull request #1833 from samgqroberts/1800-followon
minor update to `run.md` transcript
2021-03-15 12:18:06 -04:00
Arya Irani
490e71213f
Merge pull request #1837 from unisonweb/macos-11.10-check
does the macOS-11.0 CI image work yet?
2021-03-15 11:31:31 -04:00
Arya Irani
4eb572d9e4
Merge pull request #1834 from ceedubs/explicit-branch
Tests: explicit branch name in git init
2021-03-14 22:41:11 -04:00
Arya Irani
d9cd17110d
Update ci.yaml 2021-03-14 22:02:37 -04:00
Arya Irani
abe9ecd5b1
Update ci.yaml 2021-03-14 11:46:33 -04:00
Arya Irani
d754361665
does the macOS-11.10 CI image work yet? 2021-03-13 16:31:40 -05:00
Cody Allen
334fa29607
Tests: explicit branch in git init
Before this change, when I ran the tests I got the following "hints"
printed to the console:

```
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint:   git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m <name>
```

I think that this means that the tests could potentially fail, depending
on the user's local git config and/or version.

I tried using the `trunk` branch and the tests failed. It seems that
the tests are dependent on the `master` branch being used, so I figured
it was probably be best to explicitly specify that branch name.
2021-03-13 07:50:32 -08:00
Sam Roberts
fca1a59201 minor update to run transcript 2021-03-11 10:44:23 -05:00
Paul Chiusano
f941687229
Merge pull request #1827 from nini-faroux/seq-list 2021-03-06 06:51:38 -06:00
Paul Chiusano
4f0267ce79
Merge pull request #1831 from unisonweb/topic/restore-git-test
update git test after #1817
2021-03-05 12:32:44 -06:00
Arya Irani
a5eee694d4
Merge pull request #1832 from seagreen/comments
Add some Haddocks for key declarations
2021-03-05 12:44:25 -05:00
Ian Grant Jeffries
7ee453af18 Add some Haddocks for key declarations 2021-03-04 18:14:23 -05:00
Rúnar
4ae71ac9f1
Merge pull request #1829 from unisonweb/topic/codebaseserver-listingtags
Codebase server: indicate in namespace listing whether a term is a doc or a test, and if a type is an ability
2021-03-04 11:14:58 -05:00
Arya Irani
2785610aad update git test after #1817 2021-03-04 10:55:32 -05:00
runarorama
2f12f86642 add comments 2021-03-04 09:57:31 -05:00
runarorama
de9dd75998 Repair merge 2021-03-03 23:04:46 -05:00