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

Vim swap files cause hugo to fail #5646

Closed
dmitriy-serdyuk opened this Issue Jan 28, 2019 · 3 comments

Comments

Projects
None yet
4 participants
@dmitriy-serdyuk
Copy link

dmitriy-serdyuk commented Jan 28, 2019

Opening configuration in vim causes hugo development server to fail with

<...>config/_default/.menus.toml.swp" is not a valid configuration format

Possible solution would be to ignore hidden files.

@dmitriy-serdyuk dmitriy-serdyuk changed the title Vim swap files cause hugo fail Vim swap files cause hugo to fail Jan 28, 2019

@tryzniak

This comment has been minimized.

Copy link
Contributor

tryzniak commented Jan 30, 2019

Maybe we should just read files with extensions that config files support and ignore all others.

@fberrez

This comment has been minimized.

Copy link

fberrez commented Jan 30, 2019

Currently writing a fix for this issue.

I am not sure how you had that. Could you let us know how to reproduce this issue?

@tryzniak

This comment has been minimized.

Copy link
Contributor

tryzniak commented Jan 30, 2019

Clone this project, then cd into it, do mkdir -p config/_default && touch config/_default/blah.swp and run hugo server. You should see the error.

fberrez added a commit to fberrez/hugo that referenced this issue Jan 31, 2019

fberrez added a commit to fberrez/hugo that referenced this issue Jan 31, 2019

@bep bep added this to the v0.53.1 milestone Feb 1, 2019

@bep bep closed this in 3244cb3 Feb 1, 2019

@bep bep modified the milestones: v0.53.1, v0.54 Feb 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment