Skip to content

Trusting config in devcontainer fails #3020

@Kneemund

Description

@Kneemund

In some environments (especially devcontainers), ~/.local/share does not exist.

Bug

In a devcontainer, running /root/.vscode-server/extensions/.../phpactor config:trust or using the UI of the VS Code extension fails with:

In Trust.php line 75:
                                                             
  Could not create directory: "/root/.local/share/phpactor"  
                                                             

Possible Fix

A workaround is manually creating the parent directory with mkdir -p /root/.local/share. I think phpactor should attempt to create the configuration folder recursively.

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