Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behaviour when bad input is provided to myst build CLI command #1152

Open
fwkoch opened this issue Apr 23, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@fwkoch
Copy link
Member

fwkoch commented Apr 23, 2024

Description

Using version v1.1.55:

image

In the above screenshot I ran myst build --pdf index.pdf in a folder where index.pdf does not exist, nor is there an export defined that should create index.pdf. It printed a somewhat-unexpected error message "unrecognized extension" - I would expect it to either (1) interpret index.pdf as the input file and say "unrecognized file" or (2) interpret index.pdf as the output and be happy with .pdf (though (2) should be the case, output should only be under -o).

Further, after that error message, it still claims to perform index.pdf -> _build/exports/index.pdf which then actually does index.md -> _build/exports/index.pdf

Proposed solution

I think this is just an error in the logic of collecting exports provided by the CLI, rather than export frontmatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant