-
Notifications
You must be signed in to change notification settings - Fork 33
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
"New not declared by package engine (compile)" (app.go:20:25) #45
Comments
Hello |
Thanks for your quick replay @melbahja. 🙏 No, my project's directory isn't inside # Project path
/Users/arnlen/dev/go_projects/guark_training
# echo $GOPATH
/Users/arnlen/go And here is my GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/arnlen/Library/Caches/go-build"
GOENV="/Users/arnlen/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/arnlen/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/arnlen/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.16.3/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.16.3/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang "
CGO_ENABLED="1"
GOMOD="/Users/arnlen/dev/go_projects/guark_training/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/v1/x95rv0r17xq46d1z0m0g98gh0000gn/T/go-build2348559153=/tmp/go-build -gno-record-gcc-switches -fno-common" |
Can you try to run: thanks |
$ go run -tags "dev webview" app.go
DEBU[0000] Init: dialog plugin. lebel=app
DEBU[0000] Init: notify plugin. lebel=app
DEBU[0000] Init: clipboard plugin. lebel=app And then... nothing. |
OK can you change |
Interestingly it was working fine the 1st time I use it (once I did the config change for cc&co, then without any code change, I get the same error. I think something is wrong in how the Engine is initialized or imported. The New method also seems not to be always associated with a selected engine. I would rather recommend to do it using Interface, which gets overridden in each specific engine if needed. Or maybe this is what it is done but it is failing here too. I hope I can take a deeper look at a later point :) |
I hope, the problem is I don't have a MacOS device to test it on, so when I developed guark I just did what I can to make it work on macOS |
Device:
Describe the bug
On a freshly generated app, when configured with "webview", the command
guark run
raises the error:To Reproduce
guark init --template vue -mod github.com/arnlen/guark_training
engineName
towebview
guark run
Expected behavior
Should run the app. 😄
Maybe a configuration related issue?
The text was updated successfully, but these errors were encountered: