Skip to content

Build script creates src files with errors #9

Description

@jonny-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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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