Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Callback must be a function. Received undefined #400

Open
Dopeasent opened this issue Dec 3, 2021 · 10 comments
Open

Comments

@Dopeasent
Copy link

[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 
@pranavpandey48
Copy link

How to solve this problem

@Kxyda
Copy link

Kxyda commented Jan 21, 2022

How can i solve this problem :cc ?

@Blixer4
Copy link

Blixer4 commented Jan 22, 2022

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

@Harman-khurmi
Copy link

how to fix this one??

@7bhainikhil
Copy link

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

@rassicurato
Copy link

How can I fix this problem?

@Pratik900
Copy link

How to solve this issue???

@Keymaker63
Copy link

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?

@vydramain
Copy link

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"

@DariushMazlumi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests