Wails: Windows 10: wails init does not work with Git Bash

Created on 24 Jul 2019  路  7Comments  路  Source: wailsapp/wails

Description
When running wails init with Git Bash (running on Windows 10), pressing the enter key does not work anymore after "Please select a template:". Running wails init with cmd.exe works, but it is not ideal.

image

System Details

| Name | Value |
| ----- | ----- |
| Wails Version | v0.17.0 |
| Go Version | go1.12.7 |
| Platform | windows |
| Arch | amd64 |
| GO111MODULE | (Not Set) |

Additional context
Go and NodeJS installed using Scoop:

scoop install go
scoop install nodejs
Windows bug

Most helpful comment

Excellent!

$ wails init
Wails v0.17.9-pre - Initialising project

The name of the project (My Project): x
Project Name: x
The output binary name (x):
Output binary Name: x.exe
Project directory name (x):
Project Directory: x
Please select a template:
  1: Angular - Angular 8 template (Requires node 10.8+)
  2: React JS - Create React App v3 template
  3: Vue2/Webpack Basic - A basic Vue2/WebPack4 template
  4: Vuetify Basic - Vuetify + Webpack
Please choose an option [1]: 3
Template: Vue2/Webpack Basic
> Generating project...
> Building project (this may take a while)...
Project 'x' built in directory 'x'!

All 7 comments

Thanks for opening this. There's a batch of Windows testing that will be happening this weekend so I'll include this and your other ticket in that.

I think I have a fairly trivial fix pushed to the latest pre-release for you. Please update to v0.17.9-pre using wails update -pre and test again.

Let us know how you get on 馃憤

Excellent!

$ wails init
Wails v0.17.9-pre - Initialising project

The name of the project (My Project): x
Project Name: x
The output binary name (x):
Output binary Name: x.exe
Project directory name (x):
Project Directory: x
Please select a template:
  1: Angular - Angular 8 template (Requires node 10.8+)
  2: React JS - Create React App v3 template
  3: Vue2/Webpack Basic - A basic Vue2/WebPack4 template
  4: Vuetify Basic - Vuetify + Webpack
Please choose an option [1]: 3
Template: Vue2/Webpack Basic
> Generating project...
> Building project (this may take a while)...
Project 'x' built in directory 'x'!

Unfortunately it seems that this issue has a regression in Wails v0.17.0.

Thanks for letting us know @pedzed - I'll look into it.

Never mind, apparently I forgot to upgrade to the pre-release (on a new setup). I mistakenly assumed there was a normal release by now.

Ah, hang on. The fix wasn't in v0.17.0. Reading back, the fix is in v0.17.9-pre. You could update to the latest prerelease using wails update -pre or if you really want that version wails update -version v0.17.9-pre.

Was this page helpful?
0 / 5 - 0 ratings