Skip to content

Build script creates src files with errors #9

@zantha-im

Description

@zantha-im

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions