You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you do the following: phpactor class:move thisFileDoesNotExist.php newFile.php, no warning or error is given.
This was confusing to me because my CWD was a subfolder of the project I'm working in, and I tried running phpactor class:move with the path relative to the project root.
I don't think class:move is usable at all in subdirectories. For instance, if I run the same action but on a class that does exist in the subdirectory I get the following
$ cd app/subdir
$ phpactor class:move ClassThatExists.php MyNewClass.php
In ClassMover.php line 79:
Could not move file "/app/subdir/ClassThatExists.php" to "MyNewClass.php"
In ClassNameCandidates.php line 39:
There are no class name candidates
class:move [--type TYPE] [--related] [--filesystem FILESYSTEM] [--] <src> [<dest>]
(the extra weird thing is that ClassMover line 79 doesn't exist? The file is only about 40 lines long! Debugging the issue was difficult for this reason.
The text was updated successfully, but these errors were encountered:
Searching by the constant part of the error message can be helpful in such cases.
Without direct checking on the Phpactor side: I looked into some old project composed of two subprojects and found using composer.autoloader_path. I never used it in CLI - only for LSP usage.
Title is self-explanatory.
When you do the following:
phpactor class:move thisFileDoesNotExist.php newFile.php
, no warning or error is given.This was confusing to me because my CWD was a subfolder of the project I'm working in, and I tried running
phpactor class:move
with the path relative to the project root.I don't think
class:move
is usable at all in subdirectories. For instance, if I run the same action but on a class that does exist in the subdirectory I get the following(the extra weird thing is that ClassMover line 79 doesn't exist? The file is only about 40 lines long! Debugging the issue was difficult for this reason.
The text was updated successfully, but these errors were encountered: