out-of-cheese-error / gooseberry

A command line utility to generate a knowledge base from Hypothesis annotations
Apache License 2.0
152 stars 9 forks source link

'gooseberry make' crashes #61

Closed muralikodali closed 3 years ago

muralikodali commented 3 years ago

gooseberry make fails with following output :

✔ Clear knowledge base directory? · no
⠁
The application panicked (crashed).
Message:  called `Option::unwrap()` on a `None` value
Location: /home/xxxx/Downloads/gooseberry/src/gooseberry/knowledge_base.rs:275
fish: “./gooseberry make” terminated by signal SIGABRT (Abort)
Ninjani commented 3 years ago

Seems to be because the "file_extension" configuration variable is empty. Can you confirm that this is the case?

muralikodali commented 3 years ago

Thanks for your suggestion

i am using old version of gooseberry. with updating gooseberry and changing configuration, 'gooseberry make' is producing markdown and SUMMARY files in a configured directory. but is not producing wiki to open in a browser.

mdbook version is v0.4.6

directory structure produced by previous version :

screenshot_20210211124819

directoy structure produced by current version:

screenshot_20210211124917

Ninjani commented 3 years ago

Yes, this is because Gooseberry is now independent of mdbook and can be used with any plain text knowledge base system. To set it up with mdbook you will have to run mdbook init, and then set up gooseberry's kb_dir to point to the src directory that's created. This should recreate the same directory structure as before.

muralikodali commented 3 years ago

pointing knowledge base directory to src folder and running command mdbook serve in the folder containing src folder opened web page containing gooseberry tags without any error.

Thanks @Ninjani