kriscross07 / atom-gpp-compiler

An atom package that allows you to compile and run C++ and C within the editor.
https://atom.io/packages/gpp-compiler
80 stars 228 forks source link

Uncaught TypeError: "file" argument must be a non-empty string #246

Open deoudit opened 5 years ago

deoudit commented 5 years ago

Please help me with this

nkhaskho commented 5 years ago

To fix this issue you have to Install this package atom-python-run. Then enjoy.

CaOGaBi commented 5 years ago

That problem may arise from the user both install gpp-complier and other package, and they both use the keybindings of F5 & F6 to run the code. To solve that problem:

Go to Settings - Keybindings Searching F5 && F6 to check which two package are disturbed.

For example, I install atom-python-run, and it binding F5 & f6 To solve that problem:

  1. Go to Settings - Packages - (atom-pthon-run)
  2. In the settings, uncheck Keybindings' s "Enable" button
  3. Go to Settings - Keybindings In the top, you will see a blue link "your keymap file" click it, copy below code to the file:

'atom-text-editor':{ 'f7': 'Python run: run-f5' 'f8': 'Python run: run-f6' }

save and quit. Now you can run your C / C++ code with keystroke F5 & F6 run your python code with keystroke F7 & F8

I'd recommand that you searching in the Settings-Keybindings to check Atom not bind F7 & F8 before, or you should change the binding to other key which is not used.

CaOGaBi commented 5 years ago

@akashtadwai What kind of language you want to run, and what package causes the problem? I just give an"auto-python-run" example of package keybinding confliction.

CaOGaBi commented 5 years ago

@akashtadwai That seems the python folder is not add to your Windows Path.

akashtadwai commented 5 years ago

@caojiabinkillsc Thankyou it worked, I haven't added python folder to my path correctly.

CaOGaBi commented 5 years ago

You're welcome.

szafranski-pawel commented 5 years ago

I have the same problem with C++. I checked keybindings. F5 and F6 are bind only to atom-gpp-complier.

narazamsa commented 5 years ago

To fix this issue you have to Install this package atom-python-run. Then enjoy.

Thanks a lot!!!

narazamsa commented 5 years ago

That problem may arise from the user both install gpp-complier and other package, and they both use the keybindings of F5 & F6 to run the code. To solve that problem:

Go to Settings - Keybindings Searching F5 && F6 to check which two package are disturbed.

For example, I install atom-python-run, and it binding F5 & f6 To solve that problem:

  1. Go to Settings - Packages - (atom-pthon-run)
  2. In the settings, uncheck Keybindings' s "Enable" button
  3. Go to Settings - Keybindings In the top, you will see a blue link "your keymap file" click it, copy below code to the file:

'atom-text-editor':{ 'f7': 'Python run: run-f5' 'f8': 'Python run: run-f6' }

save and quit. Now you can run your C / C++ code with keystroke F5 & F6 run your python code with keystroke F7 & F8

I'd recommand that you searching in the Settings-Keybindings to check Atom not bind F7 & F8 before, or you should change the binding to other key which is not used.

Did this, but still same error, using Ubuntu 18.04 LTS. Anything you may wanna add?

Userkarf commented 5 years ago

Have the same error when trying to compile kotlin on Atom. Help me with this ploxx. I'm using MacOSX and language-kotlin 0.5.0 as my package

tiwari05 commented 5 years ago

i want solution java

JordonKoh commented 5 years ago

How do you run C#??

hungnguyen08 commented 5 years ago

Please help me with this

In June,2019, I fixed this error by rename my file to .cpp

occambomb commented 5 years ago

I have the same problem with C++. I checked keybindings. F5 and F6 are bind only to atom-gpp-complier.

I'm having this same issue @szafranski-pawel . If you find a solution (or have found one already), please do let me know; I too checked my keybindings, and F5 is assigned to Gpp Compiler solely as well, with the basic command "gpp-compiler:compile."

trhgquan commented 5 years ago

movie

Okay guys, I don't have problems with the keystrokes but the right-click panel. Using gcc-compiler, right clicked on the items, hit "Compile and Run" and whoala! Nothing happened but a red alert showing "Uncaught TypeError: "file" argument must be a non-empty string".

How can I fix this problem?