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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when building locally #726

Closed
Genaro-Chris opened this issue Oct 4, 2023 · 4 comments
Closed

Crash when building locally #726

Genaro-Chris opened this issue Oct 4, 2023 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@Genaro-Chris
Copy link

While running the following command
docc preview TSPL.docc

The application crashes with the following output

Input: /home/XXX/Desktop/swift-book/TSPL.docc
Template: /home/XXX/Development/swift/usr/share/docc/render

馃挘 Program crashed: Illegal instruction at 0x000055c67291b1b6

Thread 0 "docc" crashed:

0 DefaultDiagnosticConsoleFormatter.highlightSource(sourceLine:lineNumber:range:) + 342 in docc at /home/build-user/swift-docc/Sources/SwiftDocC/Infrastructure/Diagnostics/DiagnosticConsoleWriter.swift:450:41

zsh: illegal hardware instruction  docc preview TSPL.docc

Swift Info
Swift version 5.9-dev (LLVM df22cff92bb6f9d, Swift fdf50a99df2d1b0) Target: x86_64-unknown-linux-gnu /home/genaro/Development/swift/usr/bin/swift-help intro

@amartini51 amartini51 transferred this issue from apple/swift-book Oct 4, 2023
@d-ronnqvist
Copy link
Contributor

Looks like a dupe of #678

@d-ronnqvist d-ronnqvist added the duplicate This issue or pull request already exists label Oct 4, 2023
@amartini51
Copy link

amartini51 commented Oct 4, 2023

Moving this to the DocC repository, since it was docc that crashed.

@Genaro-Chris Do you know which version of DocC you were running? It looks like you were building from source? EDIT: David already screened this bug.

@d-ronnqvist
Copy link
Contributor

You should be able to work around the issue by passing --ide-console-output as one of the flags to docc convert

@Genaro-Chris
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants