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

Unable To Init Project #77

Closed
intelwalk-zz opened this issue May 7, 2019 · 5 comments
Closed

Unable To Init Project #77

intelwalk-zz opened this issue May 7, 2019 · 5 comments
Assignees
Labels
awaiting feedback More information is required from the requestor Bug Something isn't working

Comments

@intelwalk-zz
Copy link

intelwalk-zz commented May 7, 2019

Description

When running wails Init I get a slice out of bounds error

To Reproduce
Steps to reproduce the behaviour:

  1. run wails init from command line
  2. Input project name
  3. It then produces the error below

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

Name Value
Wails Version v0.12.3
Go Version go1.11.1
Platform windows
Arch amd64
GO111MODULE (Not Set)
@leaanthony leaanthony added Bug Something isn't working Windows labels May 8, 2019
@leaanthony leaanthony self-assigned this May 8, 2019
@leaanthony
Copy link
Member

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:

  • Project creation
  • Colours in Windows 10

Todo:

  • Fix build command

@intelwalk-zz
Copy link
Author

Thanks! Please let me know if you need any logs or testing done.

@leaanthony
Copy link
Member

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 go install. I can't find a way that you can just go get a branch but if you do, please share it. Let me know how you get on.

@leaanthony leaanthony added the awaiting feedback More information is required from the requestor label May 9, 2019
@leaanthony
Copy link
Member

leaanthony commented May 9, 2019

Meant to say, this works for me on my windows machine and got a .exe built. The one thing I did notice was that it wasn't responding to HiDPI any more. I was going to experiment with the the details in this page but if it's a concern for you, feel free to play with the settings in this file.

image

@leaanthony
Copy link
Member

Confirmed as fixed in #81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback More information is required from the requestor Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants