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

Jekyll server not updating and crashing on exit (Windows) #211

Open
jpanneton opened this issue Nov 29, 2020 · 1 comment
Open

Jekyll server not updating and crashing on exit (Windows) #211

jpanneton opened this issue Nov 29, 2020 · 1 comment

Comments

@jpanneton
Copy link

jpanneton commented Nov 29, 2020

Whenever I start the server with 'npm run local', there is no way to exit it cleanly. Ctrl-C doesn't work in the standard Windows terminal and in Git Bash it makes the whole console freeze. In both case, I need to force close them and the execution exits with code 1. Also, it seems like the server doesn't see any file updates. I have tried with --force_polling option, to no avail. Sometimes it will detect a change, but it's extremely rare and random. Note that I don't experience these issues on a vanilla Jekyll setup.

@jpanneton
Copy link
Author

jpanneton commented Nov 29, 2020

I did not investigate much yet, but with a debugger it seems like the 'npm run local' command is generating multiple exceptions in nodejs. I'm using the following launch.json file in vscode in case someone would like to try (be sure the Caught Exceptions checkbox is checked too in the bottom Breakpoints section before running):

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Run Website",
            "type": "node",
            "request": "launch",
            "runtimeExecutable": "npm",
            "runtimeArgs": [
                "run-script", "local"
            ]
        }
    ]
}

@jpanneton jpanneton changed the title Windows: Jekyll server not updating and crashing on exit Jekyll server not updating and crashing on exit (Windows) Nov 29, 2020
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

1 participant