-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
[Bug]: v2.6.0 returns error when run in MacOS docker laravel/sail context #249
Comments
So, it could be any of these reasons for this:
Anyway, it's an error with your interpreter settings, thats 100% sure. Please check under Settings -> (...) PHP and see if your path mappings are correct and if the correct working directory is selected in your compose file. |
@Roboroads I think it's not as easy as you think because the same settings work with PHPStorm 2022.03 & Laravel Tinker v2.4.0. With v2.5.0 + v2.5.1 and the changed path resolution, the buggy behavior started. So your hint with the path mappings is a good one. Notice: I changed my real path to When I look at the path mappings for the interpreter I recognize the following correct settings: @Roboroads is your plugin taking into account that there can be more than one path as mapping? For completeness these are the plugin settings. It's also not getting better when I set the paths to the container location: |
I've spotted the problem. Since version v2.5.0 you changed the project base path resolution from
Currently, you address the following cases:
✅ Workaround/Solution In case of a correct setup remote interpreter (interpreter and mappings) and your PHP project is located at the root in the remote environment (aka docker container), then leave the Laravel Tinker > Project Settings for
|
Ah yes. This is why those two settings were made. You can change those path to reflect the correct paths in the interpreter. |
I've added all the info into #250 |
Short bug description
Executing code in Laravel Tinker leads to an error message as output instead of printed values.
Extended bug description
I receive this error or no output when I try to run expressions with Laravel Tinker:
Your project is not the problem
How to reproduce?
echo 'abcd';
abced
Expected behavior
abcd
as outputScreenshots
No response
IDE & Version
2023.01
PHP Version
PHP 8.1.17
OS and version
MacOS 13.2.1 (22D68)
Laravel Tinker plugin version
2.6.0
Interpreter type
Docker compose
Laravel Version
v9.52.4
Tinker version
v2.8.1
Psysh version
v0.11.10
Additional Context
I use Colima as a docker runtime. PHPStorm does recognize the docker-compose environment as Docker Desktop for Mac is installed.
The text was updated successfully, but these errors were encountered: