rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust
https://rust-lang.github.io/mdBook/
Mozilla Public License 2.0
17.72k stars 1.61k forks source link

Run mdBook on Windows 11 Crasbhed #1815

Open cyrsis opened 2 years ago

cyrsis commented 2 years ago

Hi,

thread 'main' has overflowed its stack

with command

mdbook serve -p 8001 --open

Hopefully I can get some hints

 rustc --version
rustc 1.61.0 (fe5b13d68 2022-05-18)
seanmrnda commented 2 years ago

maybe you should run it with RUST_BACKTRACE=1, coz there is not enough details with your raised issue.

$ RUST_TRACEBACK=1 mdbook serve -p 8001 --open

and post the output log here.

cyrsis commented 2 years ago
RUST_TRACEBACK=1: The term 'RUST_TRACEBACK=1' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
rustc --version
rustc 1.61.0 (fe5b13d68 2022-05-18)

Thanks

seanmrnda commented 2 years ago
RUST_TRACEBACK=1: The term 'RUST_TRACEBACK=1' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
rustc --version
rustc 1.61.0 (fe5b13d68 2022-05-18)

Thanks

Must be a windows 11 related problem. Are you using powershell?

cyrsis commented 2 years ago

Windows 11 Version 21H2

Brand new laptop image

Maybe this is why, MDbook Working really well in Macs

ISSOtm commented 2 years ago

AFAIK PowerShell has no equivalent syntax to schwrzstrbn's Bash line, but you can simply execute $env:RUST_TRACEBACK = 1 before running mdBook normally to get the trace info.

cyrsis commented 2 years ago

Thanks mate

PS C:\dev\ansible-nas> yarn md:run
yarn run v1.22.18
$ mdbook serve -p 8001 --open
2022-06-28 13:51:44 [INFO] (mdbook::book): Book building has started
2022-06-28 13:51:44 [INFO] (mdbook::book): Running the html backend

thread 'main' has overflowed its stack
error Command failed with exit code 3221225725.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS C:\dev\ansible-nas>  $env:RUST_TRACEBACK = 1 
PS C:\dev\ansible-nas> mdbook serve -p 8001 --open
2022-06-28 13:52:38 [INFO] (mdbook::book): Book building has started
2022-06-28 13:52:38 [INFO] (mdbook::book): Running the html backend

thread 'main' has overflowed its stack
PS C:\dev\ansible-nas> ^C
PS C:\dev\ansible-nas> mdbook serve               
2022-06-28 13:52:53 [INFO] (mdbook::book): Book building has started
2022-06-28 13:52:53 [INFO] (mdbook::book): Running the html backend

thread 'main' has overflowed its stack
PS C:\dev\ansible-nas> $env:RUST_TRACEBACK = 1  mdbook serve 
ISSOtm commented 2 years ago

Annoying... did you compile mdbook yourself, or did you grab pre-built binaries from somewhere?

cyrsis commented 2 years ago

install from

cargo install mdbook

installing latest with

cargo install --git https://github.com/rust-lang/mdBook.git mdbook

IT WORK!!!!!!

Thanks guys


PS C:\dev\ansible-nas> yarn md:run
yarn run v1.22.18
$ mdbook serve -p 8001 --open
2022-06-28 14:53:30 [INFO] (mdbook::book): Book building has started
2022-06-28 14:53:30 [INFO] (mdbook::book): Running the html backend
2022-06-28 14:54:00 [INFO] (mdbook::cmd::serve): Serving on: http://localhost:8001/task.html
2022-06-28 14:54:00 [INFO] (mdbook): Opening web browser
2022-06-28 14:54:00 [INFO] (warp::server): Server::run; addr=[::1]:8001
2022-06-28 14:54:00 [INFO] (warp::server): listening on http://[::1]:8001
2022-06-28 14:54:00 [INFO] (mdbook::cmd::watch): Listening for changes...