Qi Xiao
15328d585e
tools: Convert run-race.sh to run-race.elv.
2024-02-22 13:57:21 +00:00
Qi Xiao
03006c95f1
tools: Convert buildall.sh to buildall.elv.
2024-02-22 13:40:05 +00:00
Qi Xiao
dcc544c612
vscode: Add config for firstLine (.elv) and wordPattern (.elv and .elvts).
2024-02-22 13:15:13 +00:00
Qi Xiao
05e77f0763
pkg/mods/flag: Add &on-parse-error to flag:call.
2024-02-22 11:31:26 +00:00
Qi Xiao
2ead9c4b80
pkg/mods/flag: Run transcript test.
...
This module seems to have been missed during the conversion to transcript tests.
2024-02-21 16:24:26 +00:00
Qi Xiao
acd0903f0d
pkg/edit: Add back Page{Up Down} key bindings for listing modes.
2024-02-21 11:22:15 +00:00
Qi Xiao
555a3dfc86
pkg/eval/evaltest: Setups no longer propagate by default.
...
An explicit "each:" prefix is now required.
2024-02-20 22:24:40 +00:00
Qi Xiao
9ae071f987
pkg/buildinfo: Move detailed documentation to package level.
...
Code blocks don't work well in godoc for variables because they render the same
as the "var Name = Value" blocks themselves, resulting in a confusing look.
Also make the instructions in PACKAGING.md even briefer, now that the full
instruction is available as a continuous prose in the godoc for pkg/buildinfo.
2024-02-20 14:56:54 +00:00
Qi Xiao
6610add24a
PACKAGING.md: Simplify instructions, and link to godoc of pkg/buildinfo.
...
Also expand the godoc of pkg/buildinfo.
2024-02-20 00:09:12 +00:00
Qi Xiao
c99932929e
Add os:{mkdir-all symlink rename}.
...
This addresses #1659 .
2024-02-19 14:48:46 +00:00
Qi Xiao
ae791f1f51
vscode: Minor refactors.
2024-02-19 14:09:09 +00:00
Qi Xiao
1cafee12e2
CONTRIBUTING.md: Document transcript tests.
2024-02-19 13:57:53 +00:00
Qi Xiao
47f21df951
vscode: Add command for updating the output of a single interaction.
...
Also convert the extension source to TypeScript, and update dependencies.
2024-02-19 13:42:39 +00:00
Qi Xiao
37ac39e865
pkg/eval/evaltest: Support checking the output of a single interaction.
...
This functionality is triggered by an environment variable ELVISH_TRANSCRIPT_RUN
and will be used in the VS Code plugin.
2024-02-19 13:41:37 +00:00
Qi Xiao
9aae87c300
pkg/transcript: Remove mentions of directive propagation.
2024-02-18 23:28:17 +00:00
Qi Xiao
fe99b9fb1e
pkg/transcript: Attach line range information to Node and Interaction.
2024-02-18 12:54:53 +00:00
Qi Xiao
f57164f7fe
Make string comparision commands except !=s accept any number of arguments.
...
They have been documented to do so, but the implementation only accepted two
arguments.
2024-02-18 10:56:30 +00:00
Qi Xiao
b310bfeefb
pkg/eval: Change != and not-eq to only accept two arguments.
...
The !=s command already only accepts two arguments.
This fixes #1767 .
2024-02-18 10:47:17 +00:00
Qi Xiao
3b27569e2c
pkg/elvdoc: Remove support for "#doc:fn".
...
This construct is only used in two places - grouping numerical comparison
commands together and grouping string comparison commands together. However,
grouping them together makes it impossible to look up their individual elvdocs,
for example using "doc:show '<'", so abandon this half-baked grouping mechanism.
In future a more general mechanism to group symbols together may be introduced.
Document != and !=s as if they only take two arguments, addressing #1767 . The
actual change will be done in a separate commit.
2024-02-18 10:47:17 +00:00
Qi Xiao
4629f94d10
pkg/elvdoc: Support quoted strings in fn and var forms.
2024-02-18 10:23:52 +00:00
Qi Xiao
8bf7b18e2b
pkg/parse: Add QuoteCommandName.
2024-02-18 10:23:52 +00:00
Qi Xiao
e9af4ec638
pkg/transcript: Use the line numbers from pkg/{elvdoc md}.
2024-02-18 10:23:52 +00:00
Qi Xiao
bdf3ec6315
pkg/elvdoc: Keep track of which line each elvdoc block starts.
...
To simplify things, require that "#doc:" directives appear after the comment
block.
2024-02-18 10:23:15 +00:00
Qi Xiao
3387f454b7
pkg/elvdoc: Change the semantics of Entry.{Name Content}
...
The Name field now contains the qualified name, with the "$" prefix for variables.
The Content field no longer contains the usage text for functions. That is now
stored in a separate Fn field, and the FullContent method now returns what used
to be the Content field.
2024-02-17 18:43:11 +00:00
Qi Xiao
2c0cc610d8
pkg/strutil: Add JoinLines.
2024-02-17 18:43:11 +00:00
Qi Xiao
20b74b6950
pkg/transcript: Return parse result as a tree.
2024-02-17 17:57:06 +00:00
Qi Xiao
4229f88385
pkg/transcript: Minor refactoring.
2024-02-17 17:56:30 +00:00
Qi Xiao
5b1caa09b1
pkg/md: Add line number to Op.
2024-02-17 16:22:47 +00:00
Qi Xiao
e9ef0322c0
Update website for 0.20.1 release.
2024-02-14 13:34:31 +00:00
Qi Xiao
d3e802e536
pkg/mods/math: Test some results at a lower precision.
...
This fixes the test on s390x.
2024-02-14 13:17:33 +00:00
Qi Xiao
2c97aeff60
Publish release notes and download links for 0.20.0.
2024-02-11 17:52:14 +00:00
Qi Xiao
626c8a1514
tools/buildall.sh: Use gzip -f to overwrite existing archives.
...
Also remove -k because we don't need the intermediate .tar file.
2024-02-11 17:37:44 +00:00
Qi Xiao
d92ed96c51
tools/buildall.sh: Make the .tar.gz file reproducible too.
2024-02-11 17:35:40 +00:00
Qi Xiao
0ced96b49e
website/get: Tone down the advise against using Elvish as login shell.
...
Also fix a grammar issue ("user's login shell" lacks an article).
2024-02-10 23:58:44 +00:00
Qi Xiao
8851a1d15c
CI scripts: handle non-0 exit from curl -f correctly.
2024-02-10 17:55:33 +00:00
Qi Xiao
284f4f154f
.github: Use v4 for download-artifact too.
2024-02-10 17:48:53 +00:00
Qi Xiao
e4d13cf231
CI configs: Use curl -f to suppress 404 content.
2024-02-10 17:47:40 +00:00
Qi Xiao
1eb82fbc41
Require Go 1.21.
2024-02-10 17:44:46 +00:00
Qi Xiao
ea88e07e31
Various CI config updates.
...
GitHub Actions:
- Fix skipping of test coverage on old Go; GitHub Actions doesn't have true
booleans (https://github.com/actions/runner/issues/1483 )
- Update workflow versions.
Cirrus:
- Download Go toolchain from go.dev on all BSD platforms.
Both:
- Bump Go to 1.22 (with one GitHub Actions job still running Go 1.21).
2024-02-10 17:34:27 +00:00
Qi Xiao
a7365ec41e
.github: Invert the "old-go" matrix parameter, and omit it from job name.
2024-02-10 16:19:20 +00:00
Qi Xiao
71a682629d
Remove support for ~/.elvish.
2024-02-10 16:07:04 +00:00
Qi Xiao
2375f94d23
.cirrus.yml: Install coreutils in the build binaries workflow.
2024-02-06 15:34:41 +01:00
Qi Xiao
33190711eb
tools/buildall.sh: Make zip file reproducible by fixing the mtime.
...
This fixes #1722 .
2024-02-06 15:01:11 +01:00
Qi Xiao
56469f853b
pkg/buildinfo: Bump VersionBase as v0.20.x has been branched.
...
Commits from this point now target v0.21.0.
2024-02-06 14:31:22 +01:00
Qi Xiao
a6a33daedf
0.20.0-release-notes.md: Fix typo.
2024-02-06 14:24:37 +01:00
Qi Xiao
6029a739ee
pkg/buildinfo: Slightly simplify instruction for releasing.
2024-02-06 14:22:09 +01:00
Qi Xiao
c9e26cc20f
pkg/prog: Bump deprecation level to 20.
...
Also add support for setting deprecation level in transcript tests.
2024-02-06 14:16:10 +01:00
Qi Xiao
7e0b6ee8e6
tools/pre-push: Include cross-compilation check for tests too.
2024-02-01 15:02:39 +00:00
Qi Xiao
aea0e08202
pkg/mods/unix: Fix test on Windows.
2024-02-01 14:51:55 +00:00
Qi Xiao
cd621b10da
CONTRIBUTING.md: Document how to mock dependencies.
2024-02-01 14:46:37 +00:00