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

Solved : Uncaught Callback must be a function #282 #285

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Vinit023
Copy link

Solved : Uncaught Callback must be a function #282

@Vinit023 Vinit023 changed the title Update index.js Solved : Uncaught Callback must be a function #282 Oct 27, 2019
@DevelopersFreelanceTI
Copy link

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.42.0 x64
Electron: 4.2.7
OS: Ubuntu 19.04
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

     -2:51 core:save-as (input.hidden-input)
  2x -1:48.6.0 editor:newline (input.hidden-input)
     -1:42.2.0 autocomplete-plus:confirm (input.hidden-input)
     -1:42.2.0 snippets:expand (atom-text-editor.editor.is-focused.autocomplete-active)
     -1:28.2.0 autocomplete-plus:confirm (input.hidden-input)
     -1:28.2.0 snippets:expand (atom-text-editor.editor.is-focused.autocomplete-active)
  3x -1:20 core:delete (input.hidden-input)
  3x -1:14.9.0 core:move-right (input.hidden-input)
 30x -1:13.8.0 core:backspace (input.hidden-input)
     -0:40 intentions:highlight (input.hidden-input)
     -0:39.8.0 core:save (input.hidden-input)
     -0:35.7.0 gpp-compiler:compile (input.hidden-input)

Non-Core Packages

autocomplete-python 1.16.0 
busy-signal 2.0.1 
file-icons 2.1.36 
fonts 3.9.0 
gpp-compiler 3.0.7 
intentions 1.1.5 
linter 2.3.1 
linter-flake8 2.4.0 
linter-ui-default 1.8.0 
minimap 4.29.9 
predawn-syntax 1.0.4 
python-autopep8 0.1.3 
script 3.25.0 

Copy link

@BlobbyCode BlobbyCode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what to do, can you tell me? I am completely new to programming and atom. All of this makes no sense to me...

@Vinit023
Copy link
Author

I don't know what to do, can you tell me? I am completely new to programming and atom. All of this makes no sense to me...

change your index.js with my branch's index.js. and you are good to go.

@kukkieman
Copy link

I don't know what to do, can you tell me? I am completely new to programming and atom. All of this makes no sense to me...

change your index.js with my branch's index.js. and you are good to go.

Tried this but got an empty error message. So now I don't even know what the error is.

@Vinit023
Copy link
Author

I don't know what to do, can you tell me? I am completely new to programming and atom. All of this makes no sense to me...

change your index.js with my branch's index.js. and you are good to go.

Tried this but got an empty error message. So now I don't even know what the error is.

Could you send as screenshot of that.. I can't get what you are taking about.

@TarunKaran
Copy link

fs.js:129
Hide Stack Trace
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 (C:\Users\Rodger.atom\packages\gpp-compiler\index.js:299:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

getting this error while running a c code in atom.

@Vinit023
Copy link
Author

fs.js:129
Hide Stack Trace
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 (C:\Users\Rodger.atom\packages\gpp-compiler\index.js:299:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

getting this error while running a c code in atom.

Could you check again with my file?
I have updated on my repo download and change that "index.js" with existing "index.js".

@pan-pixel
Copy link

I don't know what to do, can you tell me? I am completely new to programming and atom. All of this makes no sense to me...

change your index.js with my branch's index.js. and you are good to go.

Yes, this worked. Thank you so much!!

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

Successfully merging this pull request may close these issues.

7 participants