Wails Dev Not Running on The New Version #1376
-
I have an app haven't run for awhile, since Wails CLI v2.0.0-beta.36
Executing: go mod tidy -compat=1.17
Executing: C:\Users\vho\go\bin\wails.exe generate module
panic: runtime error: index out of range [1] with length 1
goroutine 1 [running]:
github.com/wailsapp/wails/v2/internal/binding.(*Bindings).AddStructToGenerateTS(0xc0000523c0, {0x1530d99, 0x4}, {0x1530d9e, 0xf}, {0x156fa80, 0xc000014f62})
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/internal/binding/binding.go:161 +0x66a
github.com/wailsapp/wails/v2/internal/binding.(*Bindings).getMethods(0xc0000523c0, {0x15916a0, 0xc000009c00})
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/internal/binding/reflect.go:148 +0xf29
github.com/wailsapp/wails/v2/internal/binding.(*Bindings).Add(0xc0000523c0, {0x15916a0, 0xc000009c00})
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/internal/binding/binding.go:59 +0x35
github.com/wailsapp/wails/v2/internal/binding.NewBindings(0xc0000041e0, {0xc000044fc0, 0x1, 0x18}, {0xc000107ea8, 0x3, 0x0})
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/internal/binding/binding.go:47 +0x22b
github.com/wailsapp/wails/v2/internal/appng.(*App).Run(0x1acec0896e0)
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/internal/appng/app_bindings.go:29 +0xa5
github.com/wailsapp/wails/v2.Run(0xc000152000)
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/wails.go:24 +0xc5
main.main()
C:/MultiTech-Projects/GO Source Code Files/Web-Applications/Wails/xdot-controller-v2/main.go:25 +0x37b
ERROR:
panic: runtime error: index out of range [1] with length 1
goroutine 1 [running]:
github.com/wailsapp/wails/v2/internal/binding.(*Bindings).AddStructToGenerateTS(0xc0000523c0, {0x1530d99, 0x4}, {0x1530d9e, 0xf}, {0x156fa80, 0xc000014f62})
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/internal/binding/binding.go:161 +0x66a
github.com/wailsapp/wails/v2/internal/binding.(*Bindings).getMethods(0xc0000523c0, {0x15916a0, 0xc000009c00})
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/internal/binding/reflect.go:148 +0xf29
github.com/wailsapp/wails/v2/internal/binding.(*Bindings).Add(0xc0000523c0, {0x15916a0, 0xc000009c00})
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/internal/binding/binding.go:59 +0x35
github.com/wailsapp/wails/v2/internal/binding.NewBindings(0xc0000041e0, {0xc000044fc0, 0x1, 0x18}, {0xc000107ea8, 0x3, 0x0})
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/internal/binding/binding.go:47 +0x22b
github.com/wailsapp/wails/v2/internal/appng.(*App).Run(0x1acec0896e0)
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/internal/appng/app_bindings.go:29 +0xa5
github.com/wailsapp/wails/v2.Run(0xc000152000)
C:/Users/vho/go/pkg/mod/github.com/wailsapp/wails/v2@v2.0.0-beta.36/wails.go:24 +0xc5
main.main()
C:/MultiTech-Projects/GO Source Code Files/Web-Applications/Wails/xdot-controller-v2/main.go:25 +0x37b
exit status 2
If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony
exit status 1 Any idea what causing it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I put this line: replace github.com/wailsapp/wails/v2 v2.0.0-beta.36 => C:\Users\vho\go\pkg\mod\github.com\wailsapp\wails\v2@v2.0.0-beta.34 to the bottom of |
Beta Was this translation helpful? Give feedback.
-
I would suggest you isolate the scenario that caused this and raise a ticket. It's to do with the type of structs you are binding. |
Beta Was this translation helpful? Give feedback.
-
Fixed on master |
Beta Was this translation helpful? Give feedback.
Fixed on master