-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cannot run code on php interpreter working in docker #46
Comments
@Taalaybek Can you confirm how you are running docker? If you are using I've had another problem which I can't seem to figure out using |
I'm using docker-compose, running tests from PHPStorm works fine, Laravel tinker 2 - no. |
@dmitryuk That does not really answer my question yet. Are you using |
On this topic Lando is quite popular, Instead we do things like I doubt this is something this plugin can solve, but it does prevent us from using it. |
@hailwood True, i'd have to create a switch between "how to run a tinker command" with you being able to add a custom command for executing. If there is enough people wanting that I could add it. |
If you need time/energy/effort to work on this one, I can try to chip in... |
This issue has been automatically marked as stale because it has not had recent activity. This means this issue is resolved or nobody else has had this issue or feature request. It will be closed if no further activity occurs within 30 days, so if this is still relevant, please let us know! |
/applyMagicFreshness |
@hailwood Thanks for noting. Are you actually having a bug that prevents you from running with Docker, or do you need a way to change the command? If it''s the latter, this is a feature request and not a bug and you should make a new ticket. If it';s the first, please provide the docker container/dockerfile you are trying to run it on 😊 |
This issue has been automatically marked as stale because it has not had recent activity. This means this issue is resolved or nobody else has had this issue or feature request. It will be closed if no further activity occurs within 30 days, so if this is still relevant, please let us know! |
/applyMagicFreshness |
Hello, I encountered the same problem and fixed it by downgrading PhpStorm version from 2021.3.1 to 2021.2.4. I also tried 2021.3.2 (EAP) it too had this problem |
Hey guys,I think I understand now what is going on. This docker-compose.override file contains php code that will be executed. Both from plugin and user-input. Problem happens here. In versions of IDE where plugin works correctly, all variables (e.g. with $ sign) get prefixed by $ twice(so instead of Now, I tried to fix it by myself. But unfortunately, was unable to understand which IDE-specific files I should modify. |
@Roboroads if you don't know how to solve this problem, I can try to contact some guys from Jetbrains or make an issue on their youtrack page |
@Warmic That's a good find! I'm going to look into this when I get the time which I currently do not have a lot of. |
Hey, in a sail environment on Windows I seem to have a similar issue. Tinker is executed but no output shown and the command actually has no effect (adding something in DB for example doesn't work). I configured my cli interpreter to use docker, but to no avail. |
This PR got me thinking of something. I'll keep everyone posted. |
@Warmic I posted this issue and your findings in their slack channel, no response yet. I have no idea how to het this overrides dockerfile out so if you have time to explain it to me I can maybe add a bug to youtrack myself :) (or you do it, and I back you with "My plugin has this issue", also good 😄 ). |
JB sais it's fixed in PHPStorm 2022.2 EAP Can someone also test it? |
@Roboroads Testing PHPStorm 2022.2 EAP, not fixed :( |
I'm one step further, I'm certain it has something to do with functions. I rewrote tinker_run.php without declaring functions and it works. |
</proffessional> Ahum. Release is on its way :) This is a moment of pure joy for me 😄 |
Fix is ready and will be released in 2.3.4. Please let me know if you still have problems, but I hope I can close this one once and for all. It took be more than 40 hours to debug this :D |
Before reopening this bug again, please read this |
@Warmic @Roboroads If you have free time could you help me?
Php Cli Interpreter "Docker Compose" |
@JohnLeet Add me on Discord - same name as github, we'll look at it together :) |
Bug description
shows a progress but not output result in right window of tinker
To Reproduce
when running code via docker, it is just try up container that I set in settings of php interpretuere
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: