plotters-rs / guide

The Plotters Guide
MIT License
7 stars 5 forks source link

Build script creates src files with errors #9

Open anderson-international opened 2 years ago

anderson-international commented 2 years ago

When the build script runs it generates a series files prefixed with basic_ and tweak_ as well as writing associated tests into the lib.rs file.

All the generated files contain just the following code and nothing else:

use plotters::prelude::*;
pub fn entry_point() { main(); } 

And this code fails to build with the following error:

cannot find function `main` in this scope

The result is the following outuput from the cargo build and cargo test commands:

error: could not compile `guide` due to 27 previous errors; 27 warnings emitted

I am running this in VSCode on windows. I have tried running VSCode as an administrator in case it had something to do with file writing privileges but no joy.

Thanks