atom-gpp-compiler icon indicating copy to clipboard operation
atom-gpp-compiler copied to clipboard

Uncaught TypeError: Callback must be a function. Received undefined

Open Dopeasent opened this issue 3 years ago • 10 comments

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.58.0 x64 Electron: 9.4.4 OS: Linux Mint Thrown From: gpp-compiler package 3.0.7

Stack Trace

Uncaught TypeError: Callback must be a function. Received undefined

At fs.js:135

TypeError [ERR_INVALID_CALLBACK] [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
    at maybeCallback (fs.js:135:9)
    at Object.writeFile (fs.js:1234:14)
    at /packages/gpp-compiler/index.js:299:12)
    at ChildProcess.emit (events.js:223:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:223:5)
    at Pipe.<anonymous> (net.js:664:12)

Commands

     -6:35 gpp-compiler:compile (div.highlights)
     -4:42 pane:split-up-and-copy-active-item (code.)
     -4:34.4.0 pane:close (div.item-views)
 13x -2:47.6.0 gpp-compiler:gdb (input.hidden-input)
     -0:11.4.0 intentions:highlight (input.hidden-input)
     -0:11.2.0 editor:toggle-line-comments (input.hidden-input)
     -0:09.6.0 intentions:highlight (input.hidden-input)
     -0:09.3.0 core:save (input.hidden-input)
     -0:07.7.0 gpp-compiler:gdb (input.hidden-input)

Non-Core Packages

atom-beautify 0.33.4 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
busy-signal 2.0.1 
color-picker 2.3.0 
emmet 2.4.3 
eslint 0.15.0 
file-icons 2.1.47 
ftp-remote-edit 0.18.2 
gpp-compiler 3.0.7 
highlight-selected 0.17.0 
Hydrogen 2.16.3 
ide-c-cpp 0.1.0 
ide-cpp 0.1.0 
intentions 2.1.1 
kite 0.206.0 
linter 3.4.0 
linter-gcc 0.9.0 
linter-pycodestyle 2.1.3 
linter-ui-default 3.4.1 
minimap 4.40.0 
minimap-highlight-selected 4.6.6 
php-twig 4.0.0 
pigments 0.40.6 
platformio-ide-terminal 2.10.1 
script 3.32.2 
switch-header-source 0.34.5 

Dopeasent avatar Dec 03 '21 17:12 Dopeasent

How to solve this problem

pranavpandey48 avatar Jan 20 '22 17:01 pranavpandey48

How can i solve this problem :cc ?

Kxyda avatar Jan 21 '22 23:01 Kxyda

How Can I solve this Problem ???????

Blixer4 avatar Jan 22 '22 02:01 Blixer4

how to fix this one??

Harman-khurmi avatar Jan 23 '22 16:01 Harman-khurmi

I am facing same issue please help me to solve this @Harman-khurmi @Blixer4 @Kxyda

7bhainikhil avatar Jan 30 '22 07:01 7bhainikhil

How can I fix this problem?

rassicurato avatar Feb 08 '22 20:02 rassicurato

How to solve this issue???

Pratik900 avatar Feb 23 '22 21:02 Pratik900

Ok? So? How do we solve this??

Atom is useless if the compiler doesn't work. Why should I have 10 different programs for a few lines of codes?

Keymaker63 avatar Mar 04 '22 03:03 Keymaker63

For me adding -c -Wall -std=c++17 to "C++ Compiler Options" helps.

But I still can't start any file because my terminal says me: "There was an error creating the child process for this terminal. Failed to execute child process “/tmp/main”: Failed to execve: Permission denied"

vydramain avatar Mar 08 '22 15:03 vydramain

Hi everyone as an alternative, you can use this package. its working on my machine.

DariushMazlumi avatar Mar 11 '22 18:03 DariushMazlumi