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

[0.43] Hugo extended (Windows) doesn't do anything #4919

Closed
Jos512 opened this issue Jul 9, 2018 · 9 comments
Closed

[0.43] Hugo extended (Windows) doesn't do anything #4919

Jos512 opened this issue Jul 9, 2018 · 9 comments
Labels

Comments

@Jos512
Copy link

Jos512 commented Jul 9, 2018

From the releases page I downloaded hugo_extended_0.43_Windows-64bit.zip, unzipped the file, and moved hugo.exe to my Hugo folder on PATH.

However, the hugo and hugo server command don't do anything -- no output nor errors show:

C:\site>hugo server

C:\site>hugo

C:\site>hugo env

C:\site>hugo --help

C:\site>hugo --verbose

C:\site>hugo check

C:\site>hugo config

The above is the literal output from the console. Since there's no error, Windows does succeed in finding the Hugo executable. But there's no output from the Hugo process.

Things I've tried myself:

  • Remove hugo.exe and downloaded zip file. Then download again.
  • Run the console as Administrator.
  • Tried to build other websites. All three websites I have on my PC show the same behaviour. That makes me thing there's not a theme issue or configuration setting that makes Hugo stop working.
  • The SHA-256 checksum of the downloaded zip file on my computer is identical as the one listed in hugo_extended_0.43_checksums.txt (from the releases page), so it doesn't seem the zip file is corrupt.

If I download the regular Hugo version (hugo_0.43_Windows-64bit.zip from the releases page) and put that hugo.exe on my PATH, everything seems fine:

C:\site>hugo server
Building sites …
                   | EN
+------------------+----+
  Pages            | 29
  Paginator pages  |  0
  Non-page files   |  0
  Static files     | 24
  Processed images |  0
  Aliases          |  0
  Sitemaps         |  1
  Cleaned          |  0

Total in 93 ms
Watching for changes in C:\site\{content,data,layouts,static,themes}
Watching for config changes in C:\site\config.toml
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

C:\site>hugo env
Hugo Static Site Generator v0.43 windows/amd64 BuildDate: 2018-07-09T10:01:11Z
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.10.1"

Perhaps I missed something obvious?

(Sorry to open an issue about Hugo 0.43 so soon after its release. I know how busy you've been. We can put the issue on hold until other Windows users report the same behaviour?)

@bep
Copy link
Member

bep commented Jul 9, 2018

So, I have tested that EXE file on Windows 10 (running Parallels on MacOS), so it's at least working for some (me). You can start by telling me what Windows version you are running.

Also, judging by havoc the build related troubles this release has given me this weekend and today, I would not hold my breath for a fix from me on this today ... :-)

@coliff
Copy link
Member

coliff commented Jul 9, 2018

Hi. I downloaded the hugo_extended_0.43_Windows-64bit.zip and am experiencing the same issues as @Jos512. It doesn't do anything. I'm using Windows 10 Professional (Build 1709)

@bep
Copy link
Member

bep commented Jul 9, 2018

It doesn't do anything.

But at least it's fast. OK, I will eventually look into it. I may ask one of you for some test help ...

@Jos512
Copy link
Author

Jos512 commented Jul 9, 2018

So, I have tested that EXE file on Windows 10 (running Parallels on MacOS), so it's at least working for some (me). You can start by telling me what Windows version you are running.

I'm running Windows 7 SP1 64-bit.

Also, judging by havoc the build related troubles this release has given me this weekend and today, I would not hold my breath for a fix from me on this today ... :-)

Oh that is totally fine for me. I wasn't expecting a fix today, this week, or even this month. So no problem. :)

I may ask one of you for some test help ...

I have a flexible schedule so can definitely help with that. Update: I can also loan a Windows 10 computer if needed, so I can test on there as well.

Thinking out loud: to isolate the variable that causes this issue, it would probably be more helpful if you (or another contributor) create the builds that we then test?

I could try and build Hugo myself, but I haven't done that earlier. So that might introduce more variables/noise than helpful. (Plus I'd be using a different operating system, C/C++ compiler, etc than Hugo's automated releaser uses.)

@bep
Copy link
Member

bep commented Jul 9, 2018

OK, I think I know what is happening. I tested the Win binary in Git bash on Windows, where it works. It fails (with an error) in Command. I think I need to compile this as a static binary to make sure everything is there, always. Will update this when you can try.

@Jos512
Copy link
Author

Jos512 commented Jul 9, 2018

I tested the Win binary in Git bash on Windows, where it works. It fails (with an error) in Command.

It seems you're on the right track.

With Git bash I get:

Jos@Jos-ownbuild MINGW32 /c/site (sassHugo)
$ hugo server
C:/Hugo/hugo.exe: error while loading shared libraries: ?: cannot open shared ob
ject file: No such file or directory

PowerShell gives:

PS C:\site> hugo server
PS C:\site>

(So nothing happens, a silent fail.)

And with command prompt (cmd.exe) I get:

C:\site>hugo server

And then this prompt pops up:

2018-07-09_18-59-56

(All these three console tests are with hugo_extended_0.43_Windows-64bit.zip.)

@bep
Copy link
Member

bep commented Jul 9, 2018

@Jos512 I have no pushed a set of new "extended" archives (only the Windows is actually different).

I have tested this OK in my "commands console" (where it failed before).

Let me know.

@Jos512
Copy link
Author

Jos512 commented Jul 9, 2018

pushed a set of new "extended" archives (only the Windows is actually different).

The new archive works for me! Running the Hugo commands in the consoles work (see below). The Sass features themselves also work (the toCSS function coupled with .scss files), so the LibSass library is also running fine.

Awesome, thank you very much! 👍


PowerShell:

PS C:\site> hugo env
Hugo Static Site Generator v0.44-DEV/extended windows/amd64 BuildDate: unknown
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.10.3"
PS C:\site> hugo server -DF
Building sites .
                   | EN
+------------------+----+
  Pages            | 29
  Paginator pages  |  0
  Non-page files   |  0
  Static files     | 19
  Processed images |  0
  Aliases          |  0
  Sitemaps         |  1
  Cleaned          |  0

Total in 81 ms
Watching for changes in C:\site\{content,data,layouts,static,themes}
Watching for config changes in C:\site\config.toml
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Git bash:

Jos@Jos-ownbuild MINGW32 /c/site (sassHugo)
$ hugo env
Hugo Static Site Generator v0.44-DEV/extended windows/amd64 BuildDate: unknown
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.10.3"

Jos@Jos-ownbuild MINGW32 /c/site (sassHugo)
$ hugo server -DF
Building sites .
                   | EN
+------------------+----+
  Pages            | 29
  Paginator pages  |  0
  Non-page files   |  0
  Static files     | 19
  Processed images |  0
  Aliases          |  0
  Sitemaps         |  1
  Cleaned          |  0

Total in 73 ms
Watching for changes in C:\site\{content,data,layouts,static,theme
s}
Watching for config changes in C:\site\config.toml
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

And the default command prompt (cmd.exe):

C:\site>hugo env
Hugo Static Site Generator v0.44-DEV/extended windows/amd64 BuildDate: unknown
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.10.3"

C:\site>hugo server -DF
Building sites .
                   | EN
+------------------+----+
  Pages            | 29
  Paginator pages  |  0
  Non-page files   |  0
  Static files     | 19
  Processed images |  0
  Aliases          |  0
  Sitemaps         |  1
  Cleaned          |  0

Total in 77 ms
Watching for changes in C:\site\{content,data,layouts,static,theme
s}
Watching for config changes in C:\site\config.toml
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

So 3 out of 3. Great fix, and very fast too! 🙂

(Tested with hugo_extended_0.43_Windows-64bit.zip on Windows 7 SP1.)

@bep bep closed this as completed Jul 9, 2018
@github-actions
Copy link

github-actions bot commented Mar 2, 2022

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 Mar 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants