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

Error with: docpad install serve #1124

Open
EloFran opened this issue Oct 21, 2020 · 9 comments
Open

Error with: docpad install serve #1124

EloFran opened this issue Oct 21, 2020 · 9 comments

Comments

@EloFran
Copy link

EloFran commented Oct 21, 2020

  1. docpad init
  2. docpad install serve return:
notice: Set the exit code from unset to 1 because of fatal from: A fatal error occured within DocPad       
critical: Error: A fatal error occured within DocPad
    at new Errlop (C:\Users\eloyf\AppData\Roaming\npm\node_modules\docpad\node_modules\errlop\edition-es5\index.js:61:18)
    at DocPad.fatal (C:\Users\eloyf\AppData\Roaming\npm\node_modules\docpad\edition-esnext\lib\docpad.js:2677:13)
    at process.emit (events.js:326:22)
    at process.EventEmitter.emit (domain.js:483:12)
    at process._fatalException (internal/process/execution.js:165:25)
↳ ReferenceError: input is not defined
    at CAC.<anonymous> (C:\Users\eloyf\AppData\Roaming\npm\node_modules\docpad\edition-esnext\lib\cli.js:107:15)
    at CAC.runMatchedCommand (C:\Users\eloyf\AppData\Roaming\npm\node_modules\docpad\node_modules\cac\dist\index.js:597:34)
    at CAC.parse (C:\Users\eloyf\AppData\Roaming\npm\node_modules\docpad\node_modules\cac\dist\index.js:526:12)
    at C:\Users\eloyf\AppData\Roaming\npm\node_modules\docpad\edition-esnext\lib\cli.js:157:18
    at TaskGroup.<anonymous> (C:\Users\eloyf\AppData\Roaming\npm\node_modules\docpad\edition-esnext\lib\docpad.js:1358:16)
    at Object.onceWrapper (events.js:421:26)
    at TaskGroup.emit (events.js:314:20)
    at TaskGroup.EventEmitter.emit (domain.js:506:15)
    at TaskGroup.listener (C:\Users\eloyf\AppData\Roaming\npm\node_modules\docpad\node_modules\taskgroup\source\interface.js:45:10)
    at TaskGroup.emit (events.js:314:20)
Please report it using this guide: https://docpad.bevry.me/bug
@balupton
Copy link
Member

Thanks, I'll look into it next week

@balupton
Copy link
Member

balupton commented Oct 28, 2020

@EloFran which DocPad version are you using? And can you share the generated log file when using the --debug flag.

@balupton
Copy link
Member

balupton commented Nov 2, 2020

nvm, I suspect I know what the issue is: https://github.com/docpad/docpad/blob/master/source/lib/cli.coffee#L104-L106

will have a fix out this week or next

@balupton
Copy link
Member

Still in the roadworks. Had a long delay to sort out travis ci making open-source paid, so had to move everything to github actions.

@balupton
Copy link
Member

balupton commented Jul 22, 2021

Still wrestling with the port from Travis CI to GitHub Actions - streaming the progress on Twitch - as there is a large backlog of items, if you wish for this to be a priority then please sponsor, otherwise I have other issues that I need to focus my limited unpaid time on.

@RichardBray
Copy link

This issue still seems to exist for me. Does anyone know if any progress has been made on it?

@balupton
Copy link
Member

No progress has been made, however the fix should just be to change action(-> in the lines before to action((input) ->

@RichardBray
Copy link

No progress has been made, however the fix should just be to change action(-> in the lines before to action((input) ->

Nice, this works 👍

@holiveira79
Copy link

No progress has been made, however the fix should just be to change action(-> in the lines before to action((input) ->

I also have this issue.
Tried editing the file cli.coffee and applying the fix and nothing seemed to change.
Can you please help a bit more?

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