mystmd: Improve compatibility with windows (e.g. can't init)
Describe the bug
context
When I run myst init, I get an error message:
$ myst init
SyntaxError: Invalid regular expression: /c:\LocalTemp\Repos\Local\MystTest\/: \ at end of pattern
problem I realize this project is still in beta, but it looks awesome. I’m a big JupyterBook user and love this idea. Maybe my bug is specific to Windows?
Reproduce the bug
run myst init from Windows command line. Same error in Powershell and Git Bash as well. Also tried manually typing in the path.
List your environment
node 18.12.1 Windows 10
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (11 by maintainers)
Commits related to this issue
- 🐛 Path replacement on windows for logging See #115 — committed to executablebooks/mystmd by rowanc1 2 years ago
- 🐛 Path replacement on windows for logging (#116) See #115 — committed to executablebooks/mystmd by rowanc1 2 years ago
- 🐛 LaTeX: Capture framed environment See: #115 — committed to executablebooks/mystmd by rowanc1 a year ago
- 🐛 LaTeX: Capture framed environment (#123) See: #115 — committed to executablebooks/mystmd by rowanc1 a year ago
We have tracked down that specific error – path replacement for nicer logging was using a regular expression, which isn’t a great idea in retrospect. That has been replaced! I am going to rename this issue to capture more compatibility issues with windows. We will do a bit more testing and then do a patch release early next week – hopefully you can try it out then!
Yes,
myst startworks great. I was asking about the html because my org has an internal doc site that only accepts static html or basic markdown. I personally use JupyterBook to generate my docs, but I love the live preview functionality offered bymyst start. I can continue to use JupyterBook for the time being.Sorry… didn’t mean to hit the close button… @stevejpurves , the
myst build article.md --pdferror you saw is exactly what I was seeing.