| 01:55 | * | Guest4559 has joined |
| 01:55 | * | Guest4559 is now known as Guest4559 |
| 03:01 | * | ChinchillaWashin has left |
| 03:18 | * | owsley has quit (Quit: Textual IRC Client: www.textualapp.com) |
| 03:19 | * | Guest2602 has joined |
| 03:33 | * | Guest2602 has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 04:58 | * | polo__ has joined |
| 05:10 | * | polo__ has quit (Ping timeout: 252 seconds) |
| 05:11 | * | polo has joined |
| 05:31 | * | polo has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 05:36 | * | polo has joined |
| 05:36 | * | polo has quit (Client Quit) |
| 11:20 | FarmerEd[m] | I keep falling a bit further down the Drupal/PHP rabbit hole lately, but think I'm a bit ill-equipped tools wise. |
| 11:20 | FarmerEd[m] | I've been using a basic text editor with syntax highlighting and a Drupal Devel module. |
| 11:20 | FarmerEd[m] | What tools do you recommended? PHP Storm? any alternatives? or other recommended tools? |
| 11:22 | FarmerEd[m] | I see Eclipse has a PHP IDE too. |
| 11:22 | mstenta[m] | That's a good start! (basic + devel) |
| 11:22 | mstenta[m] | Have you discovered the dpm() function? |
| 11:23 | mstenta[m] | Useful for printing variables out to the screen |
| 11:23 | mstenta[m] | I spent a long time developing with just those! |
| 11:23 | FarmerEd[m] | yes fairly recently |
| 11:24 | mstenta[m] | I use PHPStorm now and love it, but its not free :-/ |
| 11:24 | mstenta[m] | I've heard good things about both Eclipse and VSCode but can't really speak to them |
| 11:24 | FarmerEd[m] | Had been posting variables to Node-Red previously :D |
| 11:25 | FarmerEd[m] | probably the bailing twine and pallets approach |
| 11:25 | mstenta[m] | The real power tool is XDebug though. If you can get that working (with whatever IDE) you'll be 🚀 |
| 11:25 | mstenta[m] | The farmOS dev docker image comes with it |
| 11:26 | mstenta[m] | I wish I learned to use that a lot earlier than I did |
| 11:26 | FarmerEd[m] | I see that and have the PHP storm trial enabled |
| 11:26 | mstenta[m] | Oh cool! |
| 11:26 | FarmerEd[m] | but probably have a few gaps to fill to get working |
| 11:26 | mstenta[m] | You need to make a slight adjustment to your docker-compose.yml to get it connected |
| 11:27 | mstenta[m] | What OS are you using? |
| 11:27 | FarmerEd[m] | Windows and Linux |
| 11:27 | FarmerEd[m] | Comfortable with either |
| 11:28 | mstenta[m] | I've only set it up with linux, so I'm mostly familiar with that |
| 11:29 | mstenta[m] | There is one small annoyance with linux: you need to update the IP address in docker-compose.yml every time it changes in the docker container |
| 11:29 | mstenta[m] | I think we documented this... let me see... |
| 11:29 | mstenta[m] | farmos.org/development/environment/debug |
| 11:31 | mstenta[m] | Maybe we could get you set up on the dev call :-) |
| 11:32 | FarmerEd[m] | That would be cool if there is time |
| 11:33 | FarmerEd[m] | Think I'm OK with the docker configs. |
| 11:33 | FarmerEd[m] | Probably need more help on the correct configuration of the IDE itself |
| 11:34 | mstenta[m] | The IDE *should* "just work" with that config... you just need to click the little phone icon in the top right of the IDE |
| 11:34 | FarmerEd[m] | But I'll have a play with it over the next few days as well |
| 11:34 | mstenta[m] | to "listen for connections" |
| 11:35 | mstenta[m] | (assuming you're on linux and running the docker dev environment per all the normal instructions) |
| 11:35 | mstenta[m] | (haven't tested other setups) |
| 11:35 | mstenta[m] | a good way to test it is to open Drupal's `web/index.php` and put a breakpoint on the `$response->send();` line |
| 11:36 | mstenta[m] | (or any line really) |
| 11:36 | mstenta[m] | then visit any page in your browser, and it should catch it |
| 11:37 | mstenta[m] | you MAY need to set up a mapping... i forget (basically telling PHPStorm how your local `www/web/index.php` maps to `/opt/drupal/web/index.php` in the container |
| 11:37 | mstenta[m] | * the container) |
| 11:38 | FarmerEd[m] | Just installed the Windows version, |
| 11:38 | FarmerEd[m] | Need to install PHP interpreters for it apparently, |
| 11:38 | FarmerEd[m] | Presume I'll need 7.4 and 8 |
| 11:38 | mstenta[m] | Ah hmm |
| 11:38 | mstenta[m] | Yea |
| 11:40 | mstenta[m] | are you using "Docker Desktop" in Windows? Or Windows Subsystem for Linux? (or both? I don't really understand how they relate) |
| 11:42 | FarmerEd[m] | I'm running farmOS on Ubuntu in a VM on my Windows laptop for development |
| 11:42 | mstenta[m] | Ah ok |
| 11:42 | mstenta[m] | So... that will probably add an additional layer to this... |
| 11:42 | FarmerEd[m] | So I can try the Linux version too |
| 11:42 | mstenta[m] | I'm sure it's possible, I just haven't done it that wya |
| 11:43 | mstenta[m] | But I imagine you would need to have a docker volume for the `www` directory AND then also have that in a shared folder so that PHPStorm in Windows can use it |
| 11:43 | mstenta[m] | (maybe you already did that) |
| 11:44 | FarmerEd[m] | If I get it working on Linux I can always figure out any additional layers to work on Windows later. |
| 11:44 | mstenta[m] | cool yea that seems like a good approach - start with what we know works |
| 11:45 | FarmerEd[m] | But yea, I can share the docker folders with Windows and do for file transfer anyway. |
| 11:45 | mstenta[m] | Cool |
| 11:46 | mstenta[m] | (the other curiosity I would have is how file permissions are affected by that... and whether or not any issues would arise from that) |
| 11:46 | mstenta[m] | (I know that has been a snag in the past... Windows<=>Linux file permission issues) |
| 11:46 | FarmerEd[m] | Think maybe I should build a dedicated machine here for development, Laptops drives a bit small and getting choked with VM images. Maybe use a hyperviser. |
| 11:48 | mstenta[m] | I know PHPStorm can work with remote code too... so maybe you could set something up on a server and use your laptop w/ PHPStorm to connect to it |
| 11:48 | mstenta[m] | (after getting it working simply first haha) |
| 11:48 | mstenta[m] | I'm excited to show you some PHPStorm tricks though, once you're up and running 😄 |
| 11:49 | FarmerEd[m] | Yea, I'll go with a simple all Linux approach first. |
| 14:58 | evered[m] | I love my penguins |
| 19:02 | * | Guest4415 has joined |
| 19:03 | * | Guest4415 has quit (Changing host) |
| 19:03 | * | Guest4415 has joined |
| 19:03 | * | Guest4415 is now known as Guest4415 |
| 19:03 | * | money is now known as money |
| 19:06 | * | polo has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |