Commit Graph

6989 Commits

Author SHA1 Message Date
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
Paul Chiusano
216c653cdc stubbed out goSpecial 2021-03-18 08:22:47 -05: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
Paul Chiusano
d6d912a95b ColorText supports background colors and inverted colors (untested) 2021-03-17 16:22:58 -05: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
Paul Chiusano
625c85c5b9 Fix incorrect type and constructor name 2021-03-16 11:46:03 -05:00
Paul Chiusano
30c47ba4d9 Finished all the boilerplate to make pattern matching on Pretty nicer
Now can start filling in goConsole and goSpecial
2021-03-16 11:40:50 -05:00
Cody Allen
49ca817535
EasyTest: better message when pick is called with empty list 2021-03-16 08:23:47 -07:00
Paul Chiusano
7d213d8798 Some tweaks to Doc representation
Embedded evaluation type can't include the evaluated result, since that won't be recomputed when the dependencies are updated. Correct approach is to use the watch cache when evaluating embedded expressions in a doc.
2021-03-16 09:42:23 -05: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
Paul Chiusano
3c46801cfc Stub out implementation of DisplayValues for Pretty 2021-03-15 16:22:30 -05:00
Paul Chiusano
bb993626d2 Fix some compile errors after merge w/ trunk 2021-03-15 15:47:06 -05:00
Paul Chiusano
42bc5d55aa Merge remote-tracking branch 'origin/trunk' into topic/doc2 2021-03-15 15:34:58 -05:00
Paul Chiusano
95f8bba90c Noncompiling WIP 2021-03-15 15:34:19 -05:00
Paul Chiusano
cb8bfd57fa Filled in Haskell vals to reference doc-related types and ctors 2021-03-15 13:32:27 -05:00
Paul Chiusano
fe64df4d19 New text alignment functions align{Left,Right,Center}With
These use new calling conventions wordBoxDirect and wordWordBox direct.

Also added foreign convention for chars.
2021-03-15 12:09:54 -05:00
Paul Chiusano
4540cac968 IOSource finally compiles with new docs 2021-03-15 11:19:22 -05: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
1c6f9cc4ed Avoid loading IOSource unless necessary in old runtime 2021-03-09 16:08:04 -06:00
Paul Chiusano
2258c26a8b Pretty.map implementation 2021-03-09 11:22:50 -06:00
Paul Chiusano
8aa09b4082 Filled in the rest of doc rendering
Done with draft of pure Unison side of doc rendering
2021-03-09 10:33:38 -06:00
Paul Chiusano
a06af31566 Filled in a bunch of rendering function 2021-03-08 16:10:22 -06: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
Paul Chiusano
bf395e573e Fix inline term and type links 2021-03-04 16:41:42 -06:00
Paul Chiusano
bd4275aeea Add ConsoleText type and stub out doc renderer 2021-03-04 14:28:47 -06:00
Paul Chiusano
e3e59320f4 WIP on pure Unison doc rendering
Rejiggered Doc type to have special forms separate from the doc structure, and filled in pretty-printer implementation. This allows the bulk of doc rendering to happen in pure Unison.
2021-03-04 13:42:12 -06: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