Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

leanpkg fails if there's a space in the pathname to the binary #1980

Open
kevinsullivan opened this issue Nov 7, 2018 · 1 comment
Open

Comments

@kevinsullivan
Copy link

Prerequisites

  • [ X] Put an X between the brackets on this line if you have done all of the following:
    • Checked that your issue isn't already filed.
    • Reduced the issue to a self-contained, reproducible test case.

Description

Per title, leanpkg fails if there's a space in the path to the leanpkg executable (OSX, Windows). I know that MSR isn't further developing this version. I'm documenting the issue so that people know and so that it's a known issue. It's causing problems in a large class I'm teaching because many students have spaces in their path names. E.g., many students use Box to store files, and the top-level box directory name has a space in it.

Steps to Reproduce

It's easy to confirm. Just try it.

Expected behavior: leanpkg runs

Actual behavior: leanpkg issues error, main.lean not found

Reproduces how often: reproduces reliably

Versions

3.4.1

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

@semorrison
Copy link
Contributor

This has been fixed in the latest nightly, available from https://github.com/leanprover/lean-nightly/releases.

If you tell your students to install Lean by using elan (e.g. see instructions at https://github.com/leanprover/mathlib/blob/master/docs/elan.md), and give them a leanpkg.toml file containing the line lean_version = "nightly-2018-10-28", then they should automatically end up with a copy of Lean that can survive spaces in filenames on Windows machines.

(It would be great to hear whether you can confirm this solves the issue.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants