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

docpad "crash" #623

Closed
drguildo opened this issue Aug 29, 2013 · 14 comments
Closed

docpad "crash" #623

drguildo opened this issue Aug 29, 2013 · 14 comments

Comments

@drguildo
Copy link

Left out a ":" in the definition of an object I was exporting in docpad.coffee and got the following when I would have expected a syntax error.

PS C:\Users\Simon\Desktop\www> docpad run
info: Welcome to DocPad v6.51.4, local installation
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: eco, marked
info: Environment: development
info: DocPad listening to http://localhost:9778/ on directory C:\Users\Simon\Desktop\www\out
info: Generating...
info: Generated 13/13 files in 1.135 seconds
info: Watching setup starting...
info: Watching setup
info: The action completed successfully
info: Reload change detected at 22:26:22

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: A task's completion callback has fired when the task was already in a completed state, this is unexpected
    at Task.completionCallback (C:\Users\Simon\Desktop\www\node_modules\docpad\node_modules\taskgroup\out\lib\taskgroup.
js:90:13)
    at C:\Users\Simon\Desktop\www\node_modules\docpad\out\lib\docpad.js:1486:16
    at Object.CSON.parseFile (C:\Users\Simon\Desktop\www\node_modules\docpad\node_modules\cson\out\lib\cson.js:35:16)
    at C:\Users\Simon\Desktop\www\node_modules\docpad\out\lib\docpad.js:1543:21
    at C:\Users\Simon\Desktop\www\node_modules\docpad\node_modules\safefs\out\lib\safefs.js:185:16
    at Object.cb [as oncomplete] (fs.js:168:19)
An error occured in the child DocPad instance: Error: exited with a non-zero status code
    at ChildProcess.<anonymous> (C:\Users\Simon\AppData\Roaming\npm\node_modules\docpad\node_modules\safeps\out\lib\safe
ps.js:154:21)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Process.ChildProcess._handle.onexit (child_process.js:802:5)
balupton added a commit that referenced this issue Aug 30, 2013
- v6.51.5 August 30, 2013
	- Fixed syntax errors in docpad configuration file not being reported
correctly (regression since v6.49.0)
		- Thanks to [drguildo](https://github.com/drguildo) for [issue
#623](#623)
	- If a configuration file fails to load we will now tell you which one
it was
@balupton
Copy link
Member

Fixed in the just released v6.51.5. Awesome work catching that! 👍

@phaseOne
Copy link

phaseOne commented Sep 5, 2013

I'm still receiving this error and I'm on 6.51.6.

Evans-MacBook-Pro: evan$ docpad run

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: A task's completion callback has fired when the task was already in a completed state, this is unexpected
    at Task.completionCallback (/usr/local/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:90:13)
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/docpad/node_modules/safeps/out/lib/safeps.js:156:20)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.<anonymous> (child_process.js:948:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)

@balupton
Copy link
Member

balupton commented Sep 5, 2013

Can you add me on skype (username balupton) or google hangouts (balupton@gmail.com) and ping me sometime (I'm in Sydney), and I'll remote in and debug. In the meantime, try downgrading minor versions until you find one that works - sorry I can't be of more help, but don't know what the issue is yet!

@phaseOne
Copy link

phaseOne commented Sep 5, 2013

I added you on g+. I'll ping you later tonight around 11:00AM your time if that works. On 6.50.1 I receive a different error (still looking for the regression):

Evans-MacBook-Pro: evan$ docpad run

/usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/out/lib/event-emitter-grouped.js:26
    tasks = new TaskGroup().once('complete', next);
            ^
TypeError: undefined is not a function
    at DocPad.EventEmitterGrouped.getListenerGroup (/usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/out/lib/event-emitter-grouped.js:26:13)
    at DocPad.EventEmitterGrouped.emitSerial (/usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/out/lib/event-emitter-grouped.js:52:34)
    at DocPad.emitSerial (/usr/local/lib/node_modules/docpad/out/lib/docpad.js:1100:33)
    at new ConsoleInterface (/usr/local/lib/node_modules/docpad/out/lib/interfaces/console.js:78:12)
    at /usr/local/lib/node_modules/docpad/out/bin/docpad.js:16:10
    at new DocPad (/usr/local/lib/node_modules/docpad/out/lib/docpad.js:1065:9)
    at /usr/local/lib/node_modules/docpad/out/lib/docpad.js:4119:43
    at Object.module.exports.createInstance (/usr/local/lib/node_modules/docpad/out/lib/docpad.js:4121:7)
    at Object.<anonymous> (/usr/local/lib/node_modules/docpad/out/bin/docpad.js:10:8)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/docpad/bin/docpad:2:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

@phaseOne
Copy link

phaseOne commented Sep 5, 2013

Regression occurs at 6.50.1. Still works on 6.50.0.

Errors from 6.51.0:

Evans-MacBook-Pro:[redacted] evan$ docpad run --global
warning: Failed to load the plugin: docpad-plugin-jade at /Library/WebServer/Documents/[redacted]/node_modules/docpad-plugin-jade 
The error follows:
warning: An error occured: 
Error: Cannot find module 'promise'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Library/WebServer/Documents/[redacted]/node_modules/docpad-plugin-jade/node_modules/jade/node_modules/transformers/lib/shared.js:1:77)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (/usr/local/lib/node_modules/docpad/node_modules/cson/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Library/WebServer/Documents/[redacted]/node_modules/docpad-plugin-jade/node_modules/jade/node_modules/transformers/lib/transformers.js:2:19)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (/usr/local/lib/node_modules/docpad/node_modules/cson/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Library/WebServer/Documents/[redacted]/node_modules/docpad-plugin-jade/node_modules/jade/lib/filters.js:7:20)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (/usr/local/lib/node_modules/docpad/node_modules/cson/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Library/WebServer/Documents/[redacted]/node_modules/docpad-plugin-jade/node_modules/jade/lib/parser.js:14:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (/usr/local/lib/node_modules/docpad/node_modules/cson/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Library/WebServer/Documents/[redacted]/node_modules/docpad-plugin-jade/node_modules/jade/lib/jade.js:11:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (/usr/local/lib/node_modules/docpad/node_modules/cson/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Library/WebServer/Documents/[redacted]/node_modules/docpad-plugin-jade/node_modules/jade/index.js:4:5)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (/usr/local/lib/node_modules/docpad/node_modules/cson/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at new JadePlugin (/Library/WebServer/Documents/[redacted]/node_modules/docpad-plugin-jade/out/jade.plugin.js:27:19)
    at PluginLoader.create (/usr/local/lib/node_modules/docpad/out/lib/plugin-loader.js:153:24)
    at /usr/local/lib/node_modules/docpad/out/lib/docpad.js:2469:27
    at PluginLoader.load (/usr/local/lib/node_modules/docpad/out/lib/plugin-loader.js:145:5)
    at /usr/local/lib/node_modules/docpad/out/lib/docpad.js:2465:25
    at PluginLoader.unsupported (/usr/local/lib/node_modules/docpad/out/lib/plugin-loader.js:101:5)
    at /usr/local/lib/node_modules/docpad/out/lib/docpad.js:2449:23
    at success (/usr/local/lib/node_modules/docpad/out/lib/plugin-loader.js:54:14)
    at /usr/local/lib/node_modules/docpad/out/lib/plugin-loader.js:86:16
    at /usr/local/lib/node_modules/docpad/node_modules/safefs/out/lib/safefs.js:77:16
    at fs.js:266:14
    at Object.oncomplete (fs.js:107:15)
info: Welcome to DocPad v6.51.0
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: less
info: Environment: development
info: DocPad listening to http://localhost:9778/ on directory /Library/WebServer/Documents/[redacted]/out
info: Generating...
error: Something went wrong with the action
error: An error occured: 
TypeError: Cannot read property 'filters' of undefined
    at JadePlugin.generateBefore (/Library/WebServer/Documents/[redacted]/node_modules/docpad-plugin-jade/out/jade.plugin.js:34:26)
    at ambi (/usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/node_modules/ambi/out/lib/ambi.js:36:27)
    at Task.<anonymous> (/usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/out/lib/event-emitter-grouped.js:37:21)
    at ambi (/usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/node_modules/ambi/out/lib/ambi.js:21:27)
    at /usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/node_modules/taskgroup/out/lib/taskgroup.js:82:19
    at process._tickDomainCallback (node.js:459:13)
info: Shutting down... cya next time!

@bitmage
Copy link

bitmage commented Sep 8, 2013

Thanks @phaseOne for narrowing down the version. I am having this problem as well. Using 6.50.0 for now, but let me know if you need another hand to troubleshoot or verify the fix.

@ashyadav
Copy link

ashyadav commented Sep 9, 2013

Getting this error in 6.52.1

events.js:72
throw er; // Unhandled 'error' event
^
Error: A task's completion callback has fired when the task was already in a completed state, this is unexpected
at Task.completionCallback (/usr/local/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:90:13)
at ChildProcess. (/usr/local/lib/node_modules/docpad/node_modules/safeps/out/lib/safeps.js:156:20)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket. (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)

@balupton
Copy link
Member

balupton commented Sep 9, 2013

@phaseOne @bitmage and @ashyadav can you also add me on skype (balupton) or google hangouts (balupton@gmail.com) and we'll get to the bottom of this

balupton added a commit that referenced this issue Sep 16, 2013
- v6.52.2 September 16, 2013
	- Possible fix for `Error: A task's completion callback has fired when
the task was already in a completed state, this is unexpected` error
		- Thanks to [Ryan Fitzer](https://github.com/ryanfitzer) for [issue
#643](#643) thanks to
		- Thanks to [drguildo](https://github.com/drguildo), [Evan
Bovie](https://github.com/phaseOne), [Brandon
Mason](https://github.com/bitmage),
[ashyadav](https://github.com/ashyadav) for [issue
#623](#623)
	- Will now output the progress of `iconv` install if `detectEncoding`
is true and `iconv` isn't installed
	- Updated dependencies
@balupton
Copy link
Member

Please try v6.52.2 and post back if it works. If not, please add me on skype (username balupton) or google hangouts (balupton@gmail.com) and ping me sometime, so we can debug.

@bitmage
Copy link

bitmage commented Sep 18, 2013

Hey, I'll try this tomorrow morning and get back to you. Thanks!

@bitmage
Copy link

bitmage commented Sep 18, 2013

I just ran v6.53.0 and it works great. Hope that helps!

@ashyadav
Copy link

Works with v6.53.0 thanks Benjamin.

On Wed, Sep 18, 2013 at 7:01 PM, Brandon Mason notifications@github.comwrote:

I just ran v6.53.0 and it works great. Hope that helps!


Reply to this email directly or view it on GitHubhttps://github.com//issues/623#issuecomment-24706316
.

ashyadav@gmail.com
Founder
DACS TECH LLC
732-837-2354

@balupton
Copy link
Member

:)

@tornie
Copy link

tornie commented Sep 29, 2013

D:\Dropbox\workspace\h5bp>docpad run
info: Welcome to DocPad v6.53.0, local installation
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: coffeescript, eco, livereload, marked, partials, stylus, text
info: Environment: development
info: DocPad listening to http://localhost:9778/ on directory D:\Dropbox\workspace\h5bp\out
info: LiveReload listening to new socket on channel /docpad-livereload
Currently on writeFiles at 18/18 100% =================================================
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)
An error occured within the child DocPad instance: exited with a non-zero status code

Just created new directory, typed 'docpad run' and selected option 2...

balupton added a commit that referenced this issue Oct 23, 2013
- v6.51.5 August 30, 2013
	- Fixed syntax errors in docpad configuration file not being reported
correctly (regression since v6.49.0)
		- Thanks to [drguildo](https://github.com/drguildo) for [issue
#623](#623)
	- If a configuration file fails to load we will now tell you which one
it was
balupton added a commit that referenced this issue Oct 23, 2013
- v6.52.2 September 16, 2013
	- Possible fix for `Error: A task's completion callback has fired when
the task was already in a completed state, this is unexpected` error
		- Thanks to [Ryan Fitzer](https://github.com/ryanfitzer) for [issue
#643](#643) thanks to
		- Thanks to [drguildo](https://github.com/drguildo), [Evan
Bovie](https://github.com/phaseOne), [Brandon
Mason](https://github.com/bitmage),
[ashyadav](https://github.com/ashyadav) for [issue
#623](#623)
	- Will now output the progress of `iconv` install if `detectEncoding`
is true and `iconv` isn't installed
	- Updated dependencies
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

6 participants