eqv / ddlog_bse

Code for https://hexgolems.com/2020/10/ddlog/
3 stars 0 forks source link

Value crate does not exist? #1

Open greglearns opened 3 years ago

greglearns commented 3 years ago

First of all, thank you so much for for introducing Datalog and DDLog with Rust! I've greatly enjoyed your post and have been using DDlog myself now. Wonderful!

ddlog version:

ddlog --version
DDlog v0.31.0 (1a4e702d69e450297634a93df1a0642aa0aef834)

When getting started, I had some problems that perhaps others might have: 1) In your Cargo.toml, you reference value = {path = "../bse_tutorial/bse_ddlog/value"} but that does not exist when I run your code. I'm guessing this was a change between ddlog 0.28 and 0.31?

2) in run.sh, you reference source env_setup.sh which is hard-coded to where you have ddlog installed on your box. It took me a little while before I figured out that I had to comment out that line to enable run.sh to work. For context, I got this error before commenting out that line:

ddlog: Module ddlog_std imported by bse.dl not found. Paths searched:                                                                                                                    
/home/greg/src/ddlog_bse/bse_tutorial/ddlog_std.dl                                                                                                                                       
/home/greg/source/ddlog/lib/ddlog_std.dl

Thank you again!

eqv commented 3 years ago

Hi Greg, glad you enjoyed the post!

(Un)fortunately ddlog is under very active development and this stuff changes quickly. Version 0.3 changed how the module structure is designed, I believe. Hence the blogpost explicitly links a working version.

Damn, good catch! Thank you so much for reporting this. I will leave this issue open for others to with the same problem, until I find the time to fix this. Thanks again for reporting this.