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
Unable To Init Project #77
Comments
Thanks for opening this ticket and thanks for your patience. Windows has had the least love during development and so it's the area that needs the most testing so thanks for opening the ticket. I've tracked down this issue and fixed it, however there is another bug I need to fix before it will become usable again on Windows so it'll get fixed with this ticket. Fixes so far:
Todo:
|
Thanks! Please let me know if you need any logs or testing done. |
Hi. I've pushed some changes to the v0.13.0-pre branch. Could you possibly check out the source for that version, go into cmd/wails and run |
Confirmed as fixed in #81 |
Description
When running wails Init I get a slice out of bounds error
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Project Generation Successful
Screenshots
C:\Users\dwalker>wails init
�[33mWails�[0m �[31mv0.12.3�[0m - Initialising project
The name of the project (My Project): mp1
Project Name: mp1
The output binary name (mp1):
Output binary Name: mp1.exe
Project directory name (mp1):
Project Directory: mp1
panic: runtime error: slice bounds out of range
goroutine 1 [running]:
github.com/wailsapp/wails/cmd.(*TemplateHelper).InstallTemplate.func2(0x7c253d, 0x16)
C:/Users/dwalker/go/src/github.com/wailsapp/wails/cmd/templates.go:117 +0x5d5
github.com/leaanthony/slicer.(*StringSlicer).Each(0xc000300200, 0xc000069cb0)
C:/Users/dwalker/go/src/github.com/leaanthony/slicer/string.go:51 +0x74
github.com/wailsapp/wails/cmd.(*TemplateHelper).InstallTemplate(0xc0000330e0, 0xc0002da4a0, 0x14, 0xc000078420, 0x0, 0x0)
C:/Users/dwalker/go/src/github.com/wailsapp/wails/cmd/templates.go:114 +0x29c
github.com/wailsapp/wails/cmd.(*ProjectHelper).GenerateProject(0xc0000051c0, 0xc000078420, 0x0, 0x0)
C:/Users/dwalker/go/src/github.com/wailsapp/wails/cmd/project.go:83 +0x126
main.init.1.func1(0x412379, 0x411b43)
C:/Users/dwalker/go/src/github.com/wailsapp/wails/cmd/wails/2_init.go:54 +0x11f
github.com/wailsapp/wails/cmd.(*Command).Run(0xc0000784d0, 0xc000004450, 0x0, 0x0, 0xc0000491a0, 0xc000078790)
C:/Users/dwalker/go/src/github.com/wailsapp/wails/cmd/cli.go:168 +0xd7
github.com/wailsapp/wails/cmd.(*Command).Run(0xc0000782c0, 0xc000004450, 0x1, 0x1, 0xc000069f88, 0x4054b7)
C:/Users/dwalker/go/src/github.com/wailsapp/wails/cmd/cli.go:148 +0x2da
github.com/wailsapp/wails/cmd.(*Cli).Run(0xc000004920, 0x0, 0x0, 0x0, 0x2b, 0xc000040058)
C:/Users/dwalker/go/src/github.com/wailsapp/wails/cmd/cli.go:47 +0x95
main.main()
C:/Users/dwalker/go/src/github.com/wailsapp/wails/cmd/wails/main.go:15 +0x45
System Details
OS - Windows 10
The text was updated successfully, but these errors were encountered: