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 Callback must be a function #322

Open
primesupra opened this issue May 17, 2020 · 2 comments
Open

Uncaught Callback must be a function #322

primesupra opened this issue May 17, 2020 · 2 comments

Comments

@primesupra
Copy link

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.45.0 x64
Electron: 4.2.7
OS: Microsoft Windows 10 Home Single Language
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

     -4:12.6.0 application:open-file (div.panels-item)
     -3:29.3.0 gpp-compiler:compile (input.hidden-input)
  8x -2:58.4.0 core:backspace (input.hidden-input)
     -2:55.6.0 core:save (input.hidden-input)
  2x -2:37.5.0 core:backspace (input.hidden-input)
  2x -2:29.1.0 editor:newline (input.hidden-input)
     -2:26.3.0 autocomplete-plus:confirm (input.hidden-input)
     -2:26.3.0 snippets:expand (atom-text-editor.editor.is-focused.autocomplete-active)
 10x -2:23.2.0 core:backspace (input.hidden-input)
     -1:58.5.0 core:save (input.hidden-input)
     -1:56.8.0 gpp-compiler:compile (input.hidden-input)
     -0:56.9.0 core:save-as (input.hidden-input)
     -0:46.2.0 gpp-compiler:compile (input.hidden-input)

Non-Core Packages

gpp-compiler 3.0.7 
@anshttg
Copy link

anshttg commented May 17, 2020

I was having the same error, because I forget to close stop the already running program

@ztyreg
Copy link

ztyreg commented May 17, 2020

I fixed this by following this link gruntjs/grunt-contrib-jasmine#262. I.e. changing fs.unlink to fs.unlinkSync at index.js line 427 and restarting Atom.

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

3 participants