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

Sublime 3180 is reporting an error at startup #96

Open
macrohard opened this issue Nov 30, 2018 · 4 comments
Open

Sublime 3180 is reporting an error at startup #96

macrohard opened this issue Nov 30, 2018 · 4 comments

Comments

@macrohard
Copy link

Building ...
fs.js:136
throw new ERR_INVALID_CALLBACK();
^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:136:9)
at Object.writeFile (fs.js:1182:14)
at saveCompletion (/Users/admin/Library/Application Support/Sublime Text 3/Packages/Nodejs/tools/doc_builder.js:22:6)
at createCompletions (/Users/admin/Library/Application Support/Sublime Text 3/Packages/Nodejs/tools/doc_builder.js:381:3)
at /Users/admin/Library/Application Support/Sublime Text 3/Packages/Nodejs/tools/doc_builder.js:228:5
at Object. (/Users/admin/Library/Application Support/Sublime Text 3/Packages/Nodejs/tools/default_build.js:8:1)
at Module._compile (internal/modules/cjs/loader.js:722:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)

@macrohard
Copy link
Author

This bug has been fixed, but a warning will still pop up when Sublime starts:

Building ...
(node:12047) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
Done!

My Node.js version is 11.3.0

@varp
Copy link
Collaborator

varp commented Dec 11, 2018

@macrohard I'm planning to work on this project on New Year's Holidays

@uran1980
Copy link

uran1980 commented Jan 5, 2019

Has may be the same error

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:129:9)
    at Object.writeFile (fs.js:1159:14)
    at saveCompletion (/home/uran1980/.config/sublime-text-3/Packages/Nodejs/tools/doc_builder.js:22:6)
    at createCompletions (/home/uran1980/.config/sublime-text-3/Packages/Nodejs/tools/doc_builder.js:381:3)
    at exports.doc_builder (/home/uran1980/.config/sublime-text-3/Packages/Nodejs/tools/doc_builder.js:228:5)
    at Object.<anonymous> (/home/uran1980/.config/sublime-text-3/Packages/Nodejs/tools/default_build.js:8:1)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

my node version is v10.15.0

@tgentet-obrien
Copy link

tgentet-obrien commented Jan 22, 2019

Under Tools > Command Palette I ran this command:

Package Control: Upgrade/Overwrite All Packages

It seems to have rectified the issue for me!

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

4 participants