8000 Semantic of variable projectile-require-project-root inconsistent with documentation promise. · Issue #1659 · bbatsov/projectile · GitHub
[go: up one dir, main page]

Skip to content

Semantic of variable projectile-require-project-root inconsistent with documentation promise. #1659

@aagon

Description

@aagon

According to the documentation of variable projectile-require-project-root, we have :

When nil Projectile will consider the current directory the project root.

We interpret : "will work anywhere as if it were in a project by making the current directory the project root if necessary".

So we set :

(setq projectile-require-project-root nil)

And we try projectile-grep in the home directory.

Expected behavior

To work by providing a grep buffer.

Actual behavior

Does not produce anything, produces following error :

abbreviate-file-name: Wrong type argument: stringp, nil

Steps to reproduce the problem

(setq projectile-require-project-root nil)

And (projectile-grep) in the home directory (any directory that is not a project, in fact) (projectile-ag fails as well FYI).

Environment & Version information

Projectile version information

Projectile 20210225.1816

Emacs version

GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2020-11-08, modified by Debian

Operating system

Debian Testing

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

      0