I have been using atom code editor to write C code and run it using a gcc compiler, recently I started out on python code and have been trying to run python script using atom code editor but i keep on getting errors, is there a way to fix this?
-
1What error or errors are you getting specifically?trebleCode– trebleCode2018-01-24 18:26:55 +00:00Commented Jan 24, 2018 at 18:26
-
Uncaught TypeError: Bad argument internal/child_process.js:289 Show Stack Trace The error was thrown from the gpp-compiler package. This issue has already been reported.peeterX– peeterX2018-01-24 18:32:22 +00:00Commented Jan 24, 2018 at 18:32
-
1Possible you need to change the language selected in the bottom right corner, see here: user-images.githubusercontent.com/31619951/… If still no go, might need to uninstall C++ packages in atom and reinstall atom-gpp-compiler, based on a github support thread I was reading throughtrebleCode– trebleCode2018-01-24 18:47:21 +00:00Commented Jan 24, 2018 at 18:47
-
Thanks a lot, I uninstalled all the c++ packages, reinstalled gpp compiler and that fixed it.peeterX– peeterX2018-01-24 19:59:01 +00:00Commented Jan 24, 2018 at 19:59
-
Awesome, if I post my comment as the answer will you mark it?trebleCode– trebleCode2018-01-24 20:29:12 +00:00Commented Jan 24, 2018 at 20:29
3 Answers
Having run C on atom should not interfere with you running python. Make sure you've installed the python extension and you name your file with the py extension. Also, install the 'script' extension. Enter your script and hit command-I. The script extension should then run your script. Command-I is just a shortcut to run script. You can install these extensions (add-ons) by going to Preferences under the Atom menu item. This opens a window in Atom and you can install from a list of available extensions.
Comments
Possible you need to change the language selected in the bottom right corner, see here: https://user-images.githubusercontent.com/31619951/31304897-b0900c7e-ab4a-11e7-803c-b34168895ed3.PNGIf still no go, might need to uninstall C++ packages in atom and reinstall atom-gpp-compiler, based on a github support thread I was reading through
Comments
If you run atom-python-run and gpp-compiler at the same time it will show you this error.
So disabling gpp-compiler will not show this problem when you want to run Python. And when you run C then disabling atom-python-run and enable gpp-compiler will solve your problem.
I am a junior and this is the way I have solved my problem, please correct me if there is any mistake. And if anyone has an easier way, please share.