Skip to content

feat: toolchain management - #114

Merged
robsimmons merged 5 commits into
push-rtlptympkwvtfrom
manage-toolchain
Sep 9, 2026
Merged

feat: toolchain management#114
robsimmons merged 5 commits into
push-rtlptympkwvtfrom
manage-toolchain

Conversation

@robsimmons

@robsimmons robsimmons commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Closes #25. Toolchains can be introduced with a second use of TrackedCommandForm, and modified with the same kind of inline modification form initially used for active editor sessions and duplicated for project templates

Selecting toolchain:
image

Downloading toolchain:
image

Removing toolchain (two-click confirmation)
image

@robsimmons
robsimmons force-pushed the manage-toolchain branch 2 times, most recently from b38f44e to 3da0762 Compare September 3, 2026 01:46
@robsimmons
robsimmons changed the base branch from main to push-rtlptympkwvt September 3, 2026 02:12
@robsimmons
robsimmons force-pushed the manage-toolchain branch 2 times, most recently from dae78ad to 61e3968 Compare September 3, 2026 16:01
@robsimmons
robsimmons force-pushed the manage-toolchain branch 3 times, most recently from 2cc53b9 to c63dfc7 Compare September 5, 2026 16:29
@robsimmons
robsimmons force-pushed the manage-toolchain branch 2 times, most recently from 21d4e6c to 760d77b Compare September 6, 2026 12:35
robsimmons and others added 2 commits September 6, 2026 08:41
Toolchains can be introduced with a second use of TrackedCommandForm, and modified with the same kind of inline modification form initially used for active editor sessions and duplciated for project templates
@robsimmons
robsimmons requested a review from jcreedcmu September 8, 2026 15:09
Comment thread src/lib/server/elan.ts Outdated
const { stderr, stdout } = await exec(getElanBin(), ['toolchain', 'list'], {
env: { ...process.env, ELAN_HOME },
})
// a successful `elan toolchain list` prints nothing on standard output

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean 'standard error' here in the comment?

Comment thread src/lib/server/elan.ts
env: { ...process.env, ELAN_HOME },
})
// a successful `elan toolchain uninstall ...` produces nothing on standard error
if (stdout.trim().length !== 0) throw new Error(stdout)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also confused here... either the "standard error" or the "stdout" needs to be changed, or my understanding is wrong.

@robsimmons

Copy link
Copy Markdown
Collaborator Author

@jcreedcmu I indeed wrote a clarifying comment to communicate weird asymmetric behavior with elan and got it wrong in both cases, see 5cd2885

@robsimmons
robsimmons requested a review from jcreedcmu September 9, 2026 01:52
@robsimmons

Copy link
Copy Markdown
Collaborator Author

@jcreedcmu if the requested changes were just the misleading comments those are now fixed

Comment thread src/lib/server/elan.ts
*
* Results for normally-installed release or nightly toolchains are in long-form, e.g.
* `leanprover/lean4-nightly:nightly-2026-08-27` or `leanprover/lean4:v4.32.2`.
*/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 69de54c

@robsimmons
robsimmons merged commit 6466769 into main Sep 9, 2026
1 check passed
@robsimmons
robsimmons deleted the manage-toolchain branch September 9, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin UI for manipulating Lean toolchains

2 participants