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

"unsupported None value', src/config.rs:63:14" #24

Closed
dgbogi564 opened this issue Sep 25, 2021 · 2 comments
Closed

"unsupported None value', src/config.rs:63:14" #24

dgbogi564 opened this issue Sep 25, 2021 · 2 comments
Assignees
Labels
bug Something isn't working
Projects
Milestone

Comments

@dgbogi564
Copy link

dgbogi564 commented Sep 25, 2021

Getting this error on windows 10:

D:\book>mdzk build
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Unable to represent the item as a JSON Value

Caused by:
    unsupported None value', src/config.rs:63:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


D:\book>mdzk build RUST_BACKTRACE=1
Error: Could not load config file "RUST_BACKTRACE=1\\mdzk.toml"

Caused by:
    0: Unable to open the configuration file
    1: The system cannot find the path specified. (os error 3)

Files:
book.zip

@ratsclub
Copy link
Member

I don't have a computer near me but does it happen if you declare backlinks-header = "Backlinks" under the [mdzk] section on mdzk.toml?

@kmaasrud
Copy link
Member

This is caused by the introduction of the config value that @ratsclub mentioned. If you give backlinks-header a value (can be empty string), the mdzk will build correctly.

I've fixed the issue on upstream, and the fix will be included in 0.4.3. You can also install mdzk from master by running cargo install - -git https://github.com/mdzk-rs/mdzk

@kmaasrud kmaasrud added this to To do in mdzk via automation Oct 22, 2021
@kmaasrud kmaasrud added the bug Something isn't working label Oct 22, 2021
@kmaasrud kmaasrud self-assigned this Oct 22, 2021
@kmaasrud kmaasrud added this to the 0.4.3 milestone Oct 22, 2021
@kmaasrud kmaasrud moved this from To do to Done in mdzk Oct 22, 2021
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
No open projects
mdzk
Done
Development

No branches or pull requests

3 participants