Skip to content

Exception in noexcept BoardRunner::build #6

@RuthgerD

Description

@RuthgerD

Call to bp:child() throws an exception when a path doesn't exist resulting in a swift terminate as BoardRunner::build is marked noexcept. Should probably do some path checking.

auto cmake_config = bp::child(
cmake_path,
std::move(dir_arg),
std::move(fqbn_arg),
std::move(sketch_arg),
"-P",
res_path.string() + "/RtResources/SMCE/share/Scripts/ConfigureSketch.cmake",
bp::std_out > cmake_out
);

terminate called after throwing an instance of 'boost::process::process_error'
  what():  execve failed: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions