lf-lang / lingo

Package manager and build tool for the Lingua Franca coordination language
BSD 2-Clause "Simplified" License
4 stars 1 forks source link

Implement `lingo init` for Zephyr and Native #10

Closed erlingrj closed 1 year ago

erlingrj commented 1 year ago

This PR implements the lingo init command for the Zephyr and the default (Native) platform. I went with the following command structure:

lingo init --platform/-p zephyr --language/-l c

We use git to clone the lf-west-template down from Github and populate a project directory.

erlingrj commented 1 year ago

Did you understand the clippy output? The lingo build command is not successful because it tries to invoke: lfc --output (see FIXME in lfc.rs). What is the intention of this build step?

tanneberger commented 1 year ago

I was just some problem with clap 3 I updated to clap 4 and the issue resolved itself.

tanneberger commented 1 year ago

This panic there is that the CodeGenerator expects an absolute path to lfc and if the path doesn't exists we can only panic.

tanneberger commented 1 year ago

But yeah regarding this fixme I would leave it for know and replaced with a search in $PATH with the help of this crate: https://crates.io/crates/which

erlingrj commented 1 year ago

I think in order to merge this we should: