nicosantangelo / sublime-gulp

Run Gulp tasks and use snippets from Sublime Text
https://sublime-gulp.nicosantangelo.com/
MIT License
155 stars 18 forks source link

Building Gulp list first time throws error #95

Closed jacobraccuia closed 6 years ago

jacobraccuia commented 6 years ago

I get this error whenever I build the gulp list for the first time after making changes. It works afterwards.

Gulp: There was an error running gulp, make sure gulp is running correctly in your project. For more info check the sublime-gulp.log file

I'm running sublime 3 build 3014

nicosantangelo commented 6 years ago

Hey! That's weird, do you have any info on your sublime-gulp.log file? on the root of your project

DiegoAz commented 6 years ago

Hi @NicoSantangelo I got this error too. The content of sublime-gulp.log file is:

Remember that you can report errors and get help in https://github.com/NicoSantangelo/sublime-gulp

04-26-2018 21:51: (node:1708) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

After that, if I run Gulp again, it works fine (List the possible tasks) Windows 7 ST 3143 Gulp local version 3.9.1 Node version 8.9.1

nicosantangelo commented 6 years ago

huh, I'll try to get a windows OS setup to see if I can reproduce it. One last question, which gulp version are you guys running?

jacobraccuia commented 6 years ago

I was actually running the latest OSX. I’m using a new macbook now so I have to reinstall everything. I’ll update if I have the issue still!

On May 4, 2018, at 8:58 AM, Nicolás Santángelo notifications@github.com wrote:

huh, I'll try to get a windows OS setup to see if I can reproduce it. One last question, which gulp version are you guys running?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

nicosantangelo commented 6 years ago

oh! interesting. OK I'll try to break it on my mac then, it's way easier than getting a VM working (:

I'm hoping it's related to the gulp/node version and not to a particular gulp task

jacobraccuia commented 6 years ago

I'm sorry this took forever to reply to.

brand new installation of gulp and node node v10.0 npm 5.6 gulp CLI version 2.0.1

This is definitely the error. I have gulp working and running!

05-09-2018 16:15:
fs.js:132
    throw new ERR_INVALID_CALLBACK();
    ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at makeCallback (fs.js:132:11)
    at Object.fs.unlink (fs.js:1002:14)
    at requireGulp (/Users/jacobraccuia/Library/Application Support/Sublime Text 3/Packages/Gulp/write_tasks_to_cache.js:30:12)
    at Object.<anonymous> (/Users/jacobraccuia/Library/Application Support/Sublime Text 3/Packages/Gulp/write_tasks_to_cache.js:83:12)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Module.load (internal/modules/cjs/loader.js:589:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
    at Function.Module._load (internal/modules/cjs/loader.js:520:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:719:10)
nicosantangelo commented 6 years ago

@DiegoAz @jacobraccuia thanks a lot for your help. I finally got some free time to fix this. I'll make a new release asap

jacobraccuia commented 6 years ago

Thank you, seems to be working perfectly in the latest release!