Skip to content

Failed compilation leaves process cwd in CmdStan folder #506

@maedoc

Description

@maedoc

Summary:

A failing compilation leaves the cwd in the CmdStan folder.

Description:

The do_command function uses a context manager which doesn't seem to restore the previous working directory, when a compilation failure occurs.

Additional Information:

The pushd context manager probably needs to catch the exception, restore the working directory and then re-raise the exception.

Current Version:

cmdstanpy-1.0.0

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