Skip to content

SimpleClassToFile: Permission denied for inaccessible subdirectory #3079

Open

Description

@cweiske

The web application I'm using created a directory that is not accessible by the user my IDE is running at. Now I get errors:

lsp-watch-root-folder: Opening directory: Keine Berechtigung, .../laravel/storage/app/private/livewire-tmp
LSP :: Error from the Language Server: Exception [RuntimeException] Phpactor code-action process exited with code "255":
In SimpleClassToFile.php line 43:

  RecursiveDirectoryIterator::__construct(.../laravel/storage/app/private/livewire-tmp): Failed to open directory:
  Permission denied

I already configured indexer.exclude_patterns to contain the whole storage directory, but that does not help.

As far as I see, SimpleClassToFile has no filters.


Excerpt from .phpactor.json:

    "indexer.exclude_patterns": [
        "\/vendor\/**\/Tests\/**\/*",
        "\/vendor\/**\/tests\/**\/*",
        "\/vendor\/composer\/**\/*",
        "\/vendor\/rector\/rector\/stubs-rector",
        "_ide_helper.php",
        "_ide_helper_models.php",
        "\/storage\/**/*"
    ],

Permissions:

$ ls -lah storage/app/private/ | grep tmp
drwx------ 2 www-data www-data 4,0K 21. Okt 11:29 livewire-tmp

Related: #1576

This is with phpactor 2026.10.07.0

Activity

  1. changed the title [-]SimplesClassToFile: Permission denied for inaccessible subdirectory[/-] [+]SimpleClassToFile: Permission denied for inaccessible subdirectory[/+] on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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