Skip to content

Bug: nimble dump doesn't work with absolute paths #1663

@moigagoo

Description

@moigagoo

Steps

  1. Create or clone a Nimble project, e.g. directory foo with file foo.nimble.
  2. Run nimble dump foo/foo.nimble.
  3. Run nimble dump /full/path/to/foo/foo.nimble.

Expectation

Both variants show the dump.

Reality

The second variant returns an error:

 $ nimble dump /full/path/to/foo/foo.nimble
options.nim(529)         findNimbleFile

    Error:  Could not find a file with a .nimble extension inside the specified directory: /full/path/to/full/path/to/foo

I.e. the lookup path is a concatenation of the current working directory and the nimble file directory.

Environment

  • Windows with PowerShell
  • Ubuntu (WSL) with bash

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