TechnoDiver Posted June 22, 2021 Share Posted June 22, 2021 I hope this is the right place for this post, if not I apologize but it's not immediately obvious given my question. I 'm trying to set up VS Codium to be able to run PHP interactively. I've installed the Code Runner extension and applied the following JSON settings: { "editor.minimap.enabled": true, "window.menuBarVisibility": "toggle", "window.zoomLevel": 0, "window.titleBarStyle": "native", "workbench.colorTheme": "Default Dark+", "php.validate.executablePath": "/usr/bin/php" } When I go to test it I get the following error: [Running] php "/opt/lampp/htdocs/cms/test.php" /bin/sh: line 1: php: command not found [Done] exited with code=127 in 0.047 seconds It's just a simple echo so I didn't make any typos and I'm assuming it's a problem with the $PATH even though a 'which' query on the CLI gives the path I used above. I'm really reluctant to start messing around with $PATH related things without knowing more. Can someone give me some guidance on how to sort out this issue please?! TIA Quote Link to comment https://forums.phpfreaks.com/topic/312960-php-directly-in-vs-code/ Share on other sites More sharing options...
requinix Posted June 22, 2021 Share Posted June 22, 2021 Did you install the "FlatPak" version of VS Code? Quote Link to comment https://forums.phpfreaks.com/topic/312960-php-directly-in-vs-code/#findComment-1587468 Share on other sites More sharing options...
TechnoDiver Posted June 22, 2021 Author Share Posted June 22, 2021 I'm going to be honest with you, requinix, I don't remember. I'm sure it was from the linux mint Software Manager and then I updated after that. Is there a way I can check that? Quote Link to comment https://forums.phpfreaks.com/topic/312960-php-directly-in-vs-code/#findComment-1587471 Share on other sites More sharing options...
requinix Posted June 22, 2021 Share Posted June 22, 2021 Probably? It's a package manager. See if you have it installed, and if so if it thinks VS Code was installed through it. Quote Link to comment https://forums.phpfreaks.com/topic/312960-php-directly-in-vs-code/#findComment-1587472 Share on other sites More sharing options...
TechnoDiver Posted June 22, 2021 Author Share Posted June 22, 2021 (edited) I ran flatpak list from the CLI - Yes, it says that VSCodium is installed through it EDIT: apologies for how stupid my last comment sounded, I had just opened my eyes from napping, I should have waited until I could have put in more effort to the response. My negligence, my error, apologies Edited June 22, 2021 by TechnoDiver Quote Link to comment https://forums.phpfreaks.com/topic/312960-php-directly-in-vs-code/#findComment-1587473 Share on other sites More sharing options...
requinix Posted June 22, 2021 Share Posted June 22, 2021 Don't use the version from FlatPak: it's unofficial and apparently buggy. Install VS Code from an official source. 1 Quote Link to comment https://forums.phpfreaks.com/topic/312960-php-directly-in-vs-code/#findComment-1587477 Share on other sites More sharing options...
TechnoDiver Posted June 23, 2021 Author Share Posted June 23, 2021 Yea, that works better, thanks for your time, requinix Quote Link to comment https://forums.phpfreaks.com/topic/312960-php-directly-in-vs-code/#findComment-1587491 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.