tinkerun-vscode icon indicating copy to clipboard operation
tinkerun-vscode copied to clipboard

Tinkerun not running inside the container

Open MarceloZapatta opened this issue 2 months ago • 2 comments

I configured a connection:

{
    "connections": [
        {
            "name": "dev",
            "command": "docker exec -it webserver php artisan tinker"
        }
    ]
}

If I run directly the command I can access the tinker inside the container, but If I hit play in VScode it is only returning the local php path instead accessing the container

MarceloZapatta avatar Sep 17 '25 17:09 MarceloZapatta

OK found it, it was not reading the connection file because it wasn't in the root of the project. I have the FE e BE in subfolders in the same project but it can't read from a subfolder, it would be nice to have a configuration in the extension for getting the right since this is a common case and since Tinkerun is only for backend it should go in the backend folder.

MarceloZapatta avatar Sep 17 '25 17:09 MarceloZapatta

Thanks for pointing this out! 🙏

I think instead of adding a custom path option, it would be better if the extension could automatically detect a tinkerun.json file even when it’s located in a subfolder (like a backend directory). This way the setup stays simple and consistent, without requiring extra configuration from the user.

I’ll consider adding autodetection in a future release. 🚀 Thanks again for the suggestion!

sensasi-delight avatar Sep 19 '25 09:09 sensasi-delight