Skip to content

Actions on file selected relative to project path is attempted on a path relative to the file of the open buffer #751

@magthe

Description

@magthe

I observe some unexpected behaviour when trying to embark-act on files found using consult-projectile-find-file. Is the following a bug, something I've missed in my configuration? (I'm hoping it's not an unreasonable expectation.)

Steps

  1. Open a file in a project (I'm using projectile), e.g. <proj root>/.github/workflows/test.yaml.
  2. Run consult-projectile-find-file and find a file in another part of the project, e.g. <proj root>/tests/e2e-tests/runtest.sh.
  3. Run embark-act on the file, and choose to delete it, i.e. pressing d (in my setup at least).
  4. Answer the question Run delete-file on tests/e2e-tests/runtest.sh? (y or n) with 'y'.

Expected behaviour

The file <proj root>/tests/e2e-tests/runtest.sh is deleted from the filesystem.

Observed behaviour

What I get is a the following in the *Messages* buffer:

embark PCH: (error "Cannot <proj root>/.github/workflows/tests/e2e-tests/viswiz.sh to trash: Permission denied")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions