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

thread 'main' panicked #62

Closed
nkh opened this issue Aug 14, 2020 · 3 comments
Closed

thread 'main' panicked #62

nkh opened this issue Aug 14, 2020 · 3 comments

Comments

@nkh
Copy link

nkh commented Aug 14, 2020

cat ~/nadim/devel/repositories/perl_modules/P5-App-Asciio/lib/App/Asciio.pm
| svgbob > test.svg

thread 'main' panicked at 'called Result::unwrap() on an Err value: Custom { kind: InvalidData, error: "stream did not contain valid UTF-8" }', /home/nadim/.cargo/registry/src/github.com-1ecc6299db9ec823/svgbob_cli-0.4.2/src/main.rs:98:13
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

file is probably close to this one https://github.com/nkh/P5-App-Asciio/blob/master/lib/App/Asciio.pm

@bjorn3
Copy link

bjorn3 commented Aug 14, 2020

That means that Asciio.pm is not valid utf-8. What is the output of file ~/nadim/devel/repositories/perl_modules/P5-App-Asciio/lib/App/Asciio.pm?

@nkh
Copy link
Author

nkh commented Aug 26, 2020

There was indeed a non utf -8 characters that were weeded out with "grep -axv '.*' file"

new files is here if you want to see how it is rendered, most Asciio drawings render nicely.

https://github.com/nkh/P5-App-Asciio/blob/master/lib/App/Asciio.pm

I noticed that one lien with a tab and spaces didn't render too nicely, is there a way to say how many characters a tab is?

@ivanceras
Copy link
Owner

I will close this now, as this seems not specific to svgbob

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

No branches or pull requests

3 participants