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

File does not exist error with mounts #6165

Closed
XhmikosR opened this issue Aug 5, 2019 · 9 comments · Fixed by #6185
Closed

File does not exist error with mounts #6165

XhmikosR opened this issue Aug 5, 2019 · 9 comments · Fixed by #6185
Milestone

Comments

@XhmikosR
Copy link
Contributor

XhmikosR commented Aug 5, 2019

While trying to make use of the new mount features, I can consistently reproduce the "file does not exist" errors.

Steps to reproduce:

  1. git clone https://github.com/twbs/bootstrap.git -b master-xmr-hugo-2
  2. npm i
  3. npm run docs-serve
  4. Modify any file from the dist folder like dist/css/bootstrap.css

Result:

Change of Static files detected, rebuilding site.
2019-08-05 10:38:34.775 +0300
Syncing \css\bootstrap.css to C:\Users\xmr\Desktop\bootstrap\
ERROR 2019/08/05 10:38:34 file does not exist
ERROR 2019/08/05 10:38:34 file does not exist

This is with Hugo 0.56.3 on Windows 10 64-bit, but it seems to happen on macOS too.

If I modify any non-static file and Hugo rebuilds, then the error goes away.

@XhmikosR
Copy link
Contributor Author

XhmikosR commented Aug 5, 2019

Just reproduced on Linux Mint 19.2 so it must not be related to the operating system.

xmr@xmr-VirtualBox:~/Desktop/bootstrap$ npm run docs-serve

> [email protected] docs-serve /home/xmr/Desktop/bootstrap
> hugo server --port 9001 --disableFastRender


                   | EN   
+------------------+-----+
  Pages            | 105  
  Paginator pages  |   0  
  Non-page files   |  20  
  Static files     | 125  
  Processed images |   0  
  Aliases          |  16  
  Sitemaps         |   1  
  Cleaned          |   0  

Total in 395 ms
Watching for changes in /home/xmr/Desktop/bootstrap/{dist,site}
Watching for config changes in /home/xmr/Desktop/bootstrap/config.yml
Environment: "development"
Serving pages from memory
Web Server is available at http://localhost:9001/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Change of Static files detected, rebuilding site.
2019-08-05 14:52:26.810 +0300
Syncing /css/bootstrap.css to /
ERROR 2019/08/05 14:52:26 file does not exist

@bep bep added this to the v0.57 milestone Aug 6, 2019
@bep
Copy link
Member

bep commented Aug 8, 2019

Just reproduced on Linux Mint 19.2 so it must not be related to the operating system.

I was just about to say that it's probably a "Windows slash issue" ... I will have a look at it.

@bep bep added Bug and removed NeedsInvestigation labels Aug 8, 2019
@bep
Copy link
Member

bep commented Aug 8, 2019

OK, I see what's happening. I will ponder a little on what the simplest fix is.

@XhmikosR
Copy link
Contributor Author

XhmikosR commented Aug 8, 2019 via email

bep added a commit to bep/hugo that referenced this issue Aug 9, 2019
@bep bep closed this as completed in #6185 Aug 9, 2019
bep added a commit that referenced this issue Aug 9, 2019
@XhmikosR
Copy link
Contributor Author

XhmikosR commented Aug 14, 2019

@bep: I just tried v0.57.0 (Hugo Static Site Generator v0.57.0-9B00E647 windows/amd64 BuildDate: 2019-08-14T08:05:40Z) and I still get the same error on Windows.

C:\Users\xmr\Desktop\bootstrap>npm run docs-serve

> [email protected] docs-serve C:\Users\xmr\Desktop\bootstrap
> hugo server --port 9001 --disableFastRender

Building sites …
                   | EN
+------------------+-----+
  Pages            | 105
  Paginator pages  |   0
  Non-page files   |  20
  Static files     | 125
  Processed images |   0
  Aliases          |  16
  Sitemaps         |   1
  Cleaned          |   0

Total in 1246 ms
Watching for changes in C:\Users\xmr\Desktop\bootstrap\{dist,site}
Watching for config changes in C:\Users\xmr\Desktop\bootstrap\config.yml
Environment: "development"
Serving pages from memory
Web Server is available at http://localhost:9001/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Change of Static files detected, rebuilding site.
2019-08-14 11:40:33.799 +0300
Syncing \css\bootstrap.css to C:\Users\xmr\Desktop\bootstrap\
ERROR 2019/08/14 11:40:33 file does not exist
ERROR 2019/08/14 11:40:33 file does not exist

I will try on Linux later.

@XhmikosR
Copy link
Contributor Author

@bep: confirmed, still happens on Linux Mint too:

xmr@xmr-VirtualBox:~/Desktop/bootstrap$ npm run docs-serve

> [email protected] docs-serve /home/xmr/Desktop/bootstrap
> hugo server --port 9001 --disableFastRender


                   | EN   
+------------------+-----+
  Pages            | 105  
  Paginator pages  |   0  
  Non-page files   |  20  
  Static files     | 125  
  Processed images |   0  
  Aliases          |  16  
  Sitemaps         |   1  
  Cleaned          |   0  

Total in 418 ms
Watching for changes in /home/xmr/Desktop/bootstrap/{dist,site}
Watching for config changes in /home/xmr/Desktop/bootstrap/config.yml
Environment: "development"
Serving pages from memory
Web Server is available at http://localhost:9001/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Change of Static files detected, rebuilding site.
2019-08-14 13:41:05.912 +0300
Syncing /css/bootstrap.css to /
ERROR 2019/08/14 13:41:05 file does not exist

@bep
Copy link
Member

bep commented Aug 14, 2019

@XhmikosR a closed issue is a... closed issue. If you think this still is an issue => open a new issue. But before doing so, please confirm that you are on the correct version. I have confirmed this fixed on MacOS and I would be surprised if Linux should behave differently.

@XhmikosR
Copy link
Contributor Author

I just didn't want to make a new issue about the same thing, but I'll create a new one now. The issue is definitely there for me.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants