-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path to overwrite is generated wrong #2
Comments
You're correct. We have accommodated for the setup we use but nothing outside of that. Our absolute paths are for example |
@peterjaap I'm happy to do a PR. I am wondering what your intention is with the |
Ah I see the fixing is needed for all files that are no PHP classes. Okay I get that part now ;) |
@DanieliMi the copypasteablepath is clickable when you have the PhpStorm plugin Remote Call installed. It will open that file in your IDE. |
@peterjaap ah that's pretty cool! Then it should be no problem, actually be good, to use the absolute path here as well. The absolute path cannot be ambiguous. |
@DanieliMi actually we need relative paths there because we run everything in Docker containers so the absolute path in the container does not correspond to the absolute path on my machine. |
@peterjaap I see. And for that you need the |
Exactly |
PHP classes (overrides) won't display. I generated the autoload files with
composer dump
, generated the classmap.json withphp -r "\$classmap=require_once('vendor/composer/autoload_classmap.php'); echo json_encode(\$classmap);" > classmap.json
and then started the electron app and selected the projects directory. The paths in the classmap.json are absolute but the project path is still prepended so the file cannot be found and it results in "Could not find contents of /path/to/file".Here the entry from classmap.json:
Result:
![wrong_path_example](https://user-images.githubusercontent.com/31039652/159959624-b3ec98cb-2988-45aa-a63f-bc269515680d.png)
The text was updated successfully, but these errors were encountered: