Giter VIP home page Giter VIP logo

Comments (13)

acastruc avatar acastruc commented on June 12, 2024 1

I could but as I mentioned it was a fresh VM with fresh Go install and fresh wails install.

from wails.

leaanthony avatar leaanthony commented on June 12, 2024

It could be a mismatch between a 1.21 built CLI and a 1.22 built project. I'm not sure how... perhaps an issue with the Go module cache? Could you please try 1.22 again but make sure you clean out the Go caches:

  • go clean -cache
  • go clean -modcache
  • Install Wails CLI using Go 1.22
  • Generate project
  • wails build

from wails.

leaanthony avatar leaanthony commented on June 12, 2024

I just reproduced it. Absolutely looks like an issue with Go itself. I'll try open an issue on the Go repo today

from wails.

acastruc avatar acastruc commented on June 12, 2024

Ohh (waves hand), I'm no hero...

from wails.

acastruc avatar acastruc commented on June 12, 2024

Been tinkering switching between go versions

so "go install wails" with 1.21 creates a good wails CLI (build works)
"go install wails" with 1.22 creates bad wails CLI (panic)

just fyi, not sure if this informs anything you didnt already know.

from wails.

leaanthony avatar leaanthony commented on June 12, 2024

Do you use Goland or VSC? Perhaps if we create a new project using the -ide flag and load it in the IDE, we could run it in debug mode and hopefully get some context about which Go command is causing this.

from wails.

acastruc avatar acastruc commented on June 12, 2024

@leaanthony both. We have multiple devs on our team, some use Goland on win, some VSCode.

from wails.

stffabi avatar stffabi commented on June 12, 2024

I was also able to reproduce it on macOS. Building wails cli with go1.22.0. It also happens with wails dev just after executing go mod tidy. Manually building the wails app directly with go works also.

The culprit seems to be golang.org/x/tools, after updating it to at least v0.13.0 the wails cli started to be working again, if the cli was built with go1.22.

It seems like the issue has already been reported at the go repo golang/go#64812

from wails.

stffabi avatar stffabi commented on June 12, 2024

PR to bump x/tools is up #3244

from wails.

stffabi avatar stffabi commented on June 12, 2024

@acastruc would it be possible for you to give the PR #3244 a try?

from wails.

acastruc avatar acastruc commented on June 12, 2024

@acastruc would it be possible for you to give the PR #3244 a try?

standby

from wails.

acastruc avatar acastruc commented on June 12, 2024

@stffabi fix verified, thanks

from wails.

leaanthony avatar leaanthony commented on June 12, 2024

Released as part of v2.8 👍

from wails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.