< 182022-09-19⋎20 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
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:20FarmerEd[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:20FarmerEd[m]I've been using a basic text editor with syntax highlighting and a Drupal Devel module.
11:20FarmerEd[m]What tools do you recommended? PHP Storm? any alternatives? or other recommended tools?
11:22FarmerEd[m]I see Eclipse has a PHP IDE too.
11:22mstenta[m]That's a good start! (basic + devel)
11:22mstenta[m]Have you discovered the dpm() function?
11:23mstenta[m]Useful for printing variables out to the screen
11:23mstenta[m]I spent a long time developing with just those!
11:23FarmerEd[m]yes fairly recently
11:24mstenta[m]I use PHPStorm now and love it, but its not free :-/
11:24mstenta[m]I've heard good things about both Eclipse and VSCode but can't really speak to them
11:24FarmerEd[m]Had been posting variables to Node-Red previously :D
11:25FarmerEd[m]probably the bailing twine and pallets approach
11:25mstenta[m]The real power tool is XDebug though. If you can get that working (with whatever IDE) you'll be 🚀
11:25mstenta[m]The farmOS dev docker image comes with it
11:26mstenta[m]I wish I learned to use that a lot earlier than I did
11:26FarmerEd[m]I see that and have the PHP storm trial enabled
11:26mstenta[m]Oh cool!
11:26FarmerEd[m]but probably have a few gaps to fill to get working
11:26mstenta[m]You need to make a slight adjustment to your docker-compose.yml to get it connected
11:27mstenta[m]What OS are you using?
11:27FarmerEd[m]Windows and Linux
11:27FarmerEd[m]Comfortable with either
11:28mstenta[m]I've only set it up with linux, so I'm mostly familiar with that
11:29mstenta[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:29mstenta[m]I think we documented this... let me see...
11:29mstenta[m]farmos.org/development/environment/debug
11:31mstenta[m]Maybe we could get you set up on the dev call :-)
11:32FarmerEd[m]That would be cool if there is time
11:33FarmerEd[m]Think I'm OK with the docker configs.
11:33FarmerEd[m]Probably need more help on the correct configuration of the IDE itself
11:34mstenta[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:34FarmerEd[m]But I'll have a play with it over the next few days as well
11:34mstenta[m]to "listen for connections"
11:35mstenta[m](assuming you're on linux and running the docker dev environment per all the normal instructions)
11:35mstenta[m](haven't tested other setups)
11:35mstenta[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:36mstenta[m](or any line really)
11:36mstenta[m]then visit any page in your browser, and it should catch it
11:37mstenta[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:37mstenta[m]* the container)
11:38FarmerEd[m]Just installed the Windows version,
11:38FarmerEd[m]Need to install PHP interpreters for it apparently,
11:38FarmerEd[m]Presume I'll need 7.4 and 8
11:38mstenta[m]Ah hmm
11:38mstenta[m]Yea
11:40mstenta[m]are you using "Docker Desktop" in Windows? Or Windows Subsystem for Linux? (or both? I don't really understand how they relate)
11:42FarmerEd[m]I'm running farmOS on Ubuntu in a VM on my Windows laptop for development
11:42mstenta[m]Ah ok
11:42mstenta[m]So... that will probably add an additional layer to this...
11:42FarmerEd[m]So I can try the Linux version too
11:42mstenta[m]I'm sure it's possible, I just haven't done it that wya
11:43mstenta[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:43mstenta[m](maybe you already did that)
11:44FarmerEd[m]If I get it working on Linux I can always figure out any additional layers to work on Windows later.
11:44mstenta[m]cool yea that seems like a good approach - start with what we know works
11:45FarmerEd[m]But yea, I can share the docker folders with Windows and do for file transfer anyway.
11:45mstenta[m]Cool
11:46mstenta[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:46mstenta[m](I know that has been a snag in the past... Windows<=>Linux file permission issues)
11:46FarmerEd[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:48mstenta[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:48mstenta[m](after getting it working simply first haha)
11:48mstenta[m]I'm excited to show you some PHPStorm tricks though, once you're up and running 😄
11:49FarmerEd[m]Yea, I'll go with a simple all Linux approach first.
14:58evered[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…)

< 182022-09-19⋏20 >