Open mgentyala opened 4 years ago
I'm experiencing the same issue as well hope a good solution pops up!
I had this issue It appears I can only have one command window open at a time or else I receive this error. Currently using GCC with MinGW 32 bit.
I had this issue It appears I can only have one command window open at a time or else I receive this error. Currently using GCC with MinGW 32 bit.
I am having this issue as well with MinGW 32 bit. What do you mean that it works with only one command window open at a time?
Sorry about being vague with the first response. With all of the above steps mentioned by MadhubabuGentyala completed ( I had a similar install ) however did not have any of the java compiler packages and instead had some linter ones as I was using C .
While this is not exactly the issue described above I found that I was calling the wrong version of my compiler.
Brief Explanation: As I followed a tutorial installing clang I installed it using msys64 where I also installed 64 bit mingw. Since I had just installed clang using its msys64 directory and I tried to run gpp-compiler doing the same thing. C:\msys64\mingw64\bin\gcc.exe not in Environment Variables and does not work. -I believe it was above what was giving me the error but was not able to recreate it just now. ERR_INVALID_CALLBACK Instead of C:\MinGW\bin\gcc.exe which is where my 32 bit version of MinGW I installed earlier and is an environment variable. Type path into cmd and see which you have installed.
In gpp-compiler settings type gcc, g++ what ever version you are using if it is in the EV directory. After this mine worked so I believe my error was just from an incorrect install.
Here are the packages I have installed:
PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\coope\AppData\Local\Microsoft\WindowsApps;C:\Users\coope\AppData\Local\atom\bin;C:\Users\coope\Downloads\Atom\bin;D:\source\bin;
[Enter steps to reproduce:]
Atom: 1.43.0 x64 Electron: 4.2.7 OS: Microsoft Windows 10 Pro Thrown From: gpp-compiler package 3.0.7
Uncaught Callback must be a function
At fs.js:129
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:129:9)
at Object.writeFile (fs.js:1137:14)
at ChildProcess.child.on (/packages/gpp-compiler/index.js:299:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:606:12)
2x -5:58.2.0 core:backspace (input.hidden-input)
2x -0:58.7.0 gpp-compiler:compile (input.hidden-input)
gpp-compiler 3.0.7
linter 2.3.1
linter-gcc 0.9.0
I have this issue and am completely new to Atom. I could really use some help.
Typing path into cmd gives me this:
PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\coope\AppData\Local\Microsoft\WindowsApps;C:\Users\coope\AppData\Local\atom\bin;C:\Users\coope\Downloads\Atom\bin;D:\source\bin;
This is my error message:
[Enter steps to reproduce:]
- ...
- ...
Atom: 1.43.0 x64 Electron: 4.2.7 OS: Microsoft Windows 10 Pro Thrown From: gpp-compiler package 3.0.7
Stack Trace
Uncaught Callback must be a function
At fs.js:129 TypeError [ERR_INVALID_CALLBACK]: Callback must be a function at maybeCallback (fs.js:129:9) at Object.writeFile (fs.js:1137:14) at ChildProcess.child.on (/packages/gpp-compiler/index.js:299:12) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16) at Socket.stream.socket.on (internal/child_process.js:381:11) at Socket.emit (events.js:182:13) at Pipe._handle.close (net.js:606:12)
Commands
2x -5:58.2.0 core:backspace (input.hidden-input) 2x -0:58.7.0 gpp-compiler:compile (input.hidden-input)
Non-Core Packages
gpp-compiler 3.0.7 linter 2.3.1 linter-gcc 0.9.0
Hey you haven't installed MinGW at all and or have not added it to your path look this up online but after that it should work make sure you have all the packages required for linter such as clang after this it should work.
I have this issue and am completely new to Atom. I could really use some help.
Typing path into cmd gives me this:
PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\coope\AppData\Local\Microsoft\WindowsApps;C:\Users\coope\AppData\Local\atom\bin;C:\Users\coope\Downloads\Atom\bin;D:\source\bin;
This is my error message:
[Enter steps to reproduce:]
- ...
- ...
Atom: 1.43.0 x64 Electron: 4.2.7 OS: Microsoft Windows 10 Pro Thrown From: gpp-compiler package 3.0.7
Stack Trace
Uncaught Callback must be a function
At fs.js:129 TypeError [ERR_INVALID_CALLBACK]: Callback must be a function at maybeCallback (fs.js:129:9) at Object.writeFile (fs.js:1137:14) at ChildProcess.child.on (/packages/gpp-compiler/index.js:299:12) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16) at Socket.stream.socket.on (internal/child_process.js:381:11) at Socket.emit (events.js:182:13) at Pipe._handle.close (net.js:606:12)
Commands
2x -5:58.2.0 core:backspace (input.hidden-input) 2x -0:58.7.0 gpp-compiler:compile (input.hidden-input)
Non-Core Packages
gpp-compiler 3.0.7 linter 2.3.1 linter-gcc 0.9.0
Hey you haven't installed MinGW at all and or have not added it to your path look this up online but after that it should work make sure you have all the packages required for linter such as clang after this it should work.
This is incorrect. It has been added to path and everything for me and I have clang installed and included in the path and nothing works.
Is there any update on this yet?
I had this issue It appears I can only have one command window open at a time or else I receive this error. Currently using GCC with MinGW 32 bit.
I am having this issue as well with MinGW 32 bit. What do you mean that it works with only one command window open at a time?
Sorry about being vague with the first response. With all of the above steps mentioned by MadhubabuGentyala completed ( I had a similar install ) however did not have any of the java compiler packages and instead had some linter ones as I was using C .
While this is not exactly the issue described above I found that I was calling the wrong version of my compiler.
Brief Explanation: As I followed a tutorial installing clang I installed it using msys64 where I also installed 64 bit mingw. Since I had just installed clang using its msys64 directory and I tried to run gpp-compiler doing the same thing. C:\msys64\mingw64\bin\gcc.exe not in Environment Variables and does not work. -I believe it was above what was giving me the error but was not able to recreate it just now. ERR_INVALID_CALLBACK Instead of C:\MinGW\bin\gcc.exe which is where my 32 bit version of MinGW I installed earlier and is an environment variable. Type path into cmd and see which you have installed.
In gpp-compiler settings type gcc, g++ what ever version you are using if it is in the EV directory. After this mine worked so I believe my error was just from an incorrect install.
Here are the packages I have installed:
i followed what you said, and now i get "'gcc, g++' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process."
update for all. if you are trying to compile multiple files at once you have to select all of them and then run the program. if you do this it will work (right click > compile and run)
[Enter steps to reproduce:]
Atom: 1.44.0 x64 Electron: 4.2.7 OS: Unknown Windows version Thrown From: gpp-compiler package 3.0.7
Uncaught Callback must be a function
At fs.js:137
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at makeCallback (fs.js:137:11)
at Object.unlink (fs.js:917:14)
at fs.stat (/packages/gpp-compiler/index.js:427:14)
at FSReqWrap.oncomplete (fs.js:155:5)
-0:06.7.0 gpp-compiler:compile (div.highlights)
busy-signal 2.0.1
gpp-compiler 3.0.7
intentions 1.1.5
linter 2.3.1
linter-clang 4.1.2
linter-ui-default 1.8.1
script 3.25.0
Hmm such a strange thing. If i compile file in folder i have an error but it still compiles successfully but if i create a new folder and put that file there i dont get any error.
[Enter steps to reproduce:]
- ...
- ...
Atom: 1.44.0 x64 Electron: 4.2.7 OS: Unknown Windows version Thrown From: gpp-compiler package 3.0.7
Stack Trace
Uncaught Callback must be a function
At fs.js:137 TypeError [ERR_INVALID_CALLBACK]: Callback must be a function at makeCallback (fs.js:137:11) at Object.unlink (fs.js:917:14) at fs.stat (/packages/gpp-compiler/index.js:427:14) at FSReqWrap.oncomplete (fs.js:155:5)
Commands
-0:06.7.0 gpp-compiler:compile (div.highlights)
Non-Core Packages
busy-signal 2.0.1 gpp-compiler 3.0.7 intentions 1.1.5 linter 2.3.1 linter-clang 4.1.2 linter-ui-default 1.8.1 script 3.25.0
Hmm such a strange thing. If i compile file in folder i have an error but it still compiles successfully but if i create a new folder and put that file there i dont get any error.
Yep that would appear to fix it for me. I ended up just putting my other C++ class practice programs in another sub folder and this made the error go away when running. Thank you!
If You keep the cmd (command module)window open then this error occurs.
Today, I found a way to fix that #319
[Enter steps to reproduce:]
Atom: 1.43.0 x64 Electron: 4.2.7 OS: Microsoft Windows 10 Home Thrown From: gpp-compiler package 3.0.7
Stack Trace
Uncaught Callback must be a function
Commands
Non-Core Packages