Skip to content

Code fence parser misses indentation #219

Open
@jayvdb

Description

@jayvdb

In Electron100/butane@c5761cc I attempted to set up trycmd on some existing .md files. I only got "ignored", so I added "debug" feature (not mentioned in this projects README.md), and still there is no reason given. I guess it is something path related, and I'll be able to figure it out, but this should be in the debug logs at least, and IMO if a .case(..) is explicitly specified in the .rs, and trycmd couldnt find anything runnable in the file(s) mentioned, then it is an error.

     Running tests/cli_tests.rs (/home/jayvdb/rust/butane/target/debug/deps/cli_tests-41b60687d15705c6)

running 1 test
[              trycmd::runner] 	Case: Ok(
    Output {
        path: "../examples/getting_started/README.md",
        id: None,
        spawn: Spawn {
            exit: None,
            status: Skipped,
        },
        stdout: None,
        stderr: None,
        fs: Filesystem {
            context: [],
        },
    },
)
Testing ../examples/getting_started/README.md ... ignored
[              trycmd::runner] 	Case: Ok(
    Output {
        path: "../example/README.md",
        id: None,
        spawn: Spawn {
            exit: None,
            status: Skipped,
        },
        stdout: None,
        stderr: None,
        fs: Filesystem {
            context: [],
        },
    },
)
Testing ../example/README.md ... ignored
test cli_tests ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-trycmdArea: trycmd packagebugNot as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions