ShadowApex / godot-go

Go language bindings for the Godot Engine's GDNative API.
MIT License
363 stars 31 forks source link

Path Error on Windows & gofmt error due to error generating type. #45

Open vaiktorg opened 5 years ago

vaiktorg commented 5 years ago

Description

  1. When generating wrappers in windows, go confuses "\" depending on the method used for getting the file name. This can be fixed with: preHeader := filepath.ToSlash(headerName) on line 361 of types/generate.go
  2. As soon as this fix was done, gofmt throws an error saying it expects a symbol and found newline. Output as attachment. output.txt

Details

Go version go1.11.5
Godot version based on the output: /c/Users/*****/scoop/shims/godot (3.0.6
Godot-Go version/commit hash 1746202a2001f65ff7eb635b8cd7fc2a6ea64ca2
OS windows/amd64