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

v2.9.2 cannot find type for func (CheckRedirect/) #3755

Closed
cnsilvan opened this issue Sep 19, 2024 · 4 comments · Fixed by #3978
Closed

v2.9.2 cannot find type for func (CheckRedirect/) #3755

cnsilvan opened this issue Sep 19, 2024 · 4 comments · Fixed by #3978
Labels
Bug Something isn't working

Comments

@cnsilvan
Copy link

Description

After upgrading v2.9.2, when running wails dev, the following error is reported. v2.9.1 is normal.

  • Generating bindings: 
          Converting type internal.Response
          - simple field Response.Code
          - simple field Response.Msg
          - simple field Response.Data
          Converting type http.Client
          - simple field Client.Transport
          - simple field Client.CheckRedirect
          2024/09/19 22:38:10 cannot find type for func (CheckRedirect/)

To Reproduce

wails dev
func (t *App)  any() *http.Client {
        ...................
	client := &http.Client{
		Transport:     transport,
		Timeout:       10 * time.Second,
		CheckRedirect: http.DefaultClient.CheckRedirect,
	}
	return client
}

Expected behaviour

everything is running normally

Screenshots

No response

Attempted Fixes

No response

System Details

Wails Doctor          
                                


# Wails
Version | v2.9.2

# System
┌──────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Pro                                                                |
| Version      | 2009 (Build: 22631)                                                           |
| ID           | 23H2                                                                          |
| Go Version   | go1.22.7                                                                      |
| Platform     | windows                                                                       |
| Architecture | amd64                                                                         |
| CPU          | AMD Ryzen 9 7950X 16-Core Processor                                           |
| GPU          | AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.) - Driver: 32.0.11016.3 |
| Memory       | 64GB                                                                          |
└──────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 128.0.2739.79 |
| Nodejs     | N/A          | Installed | 20.17.0       |
| npm        | N/A          | Installed | 10.8.2        |
| *upx       | N/A          | Available |               |
| *nsis      | N/A          | Available |               |
└─────────────── * - Optional Dependency ───────────────┘

# Diagnosis
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 SUCCESS  Your system is ready for Wails development!

 ♥   If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony


### Additional context

_No response_
@cnsilvan cnsilvan added the Bug Something isn't working label Sep 19, 2024
@CoffeeSwt
Copy link

CoffeeSwt commented Nov 15, 2024

I also got the same problem.Here's my project https://github.com/CoffeeSwt/dayz-tool

Error: cannot find type for func (Cancel/)

Similar issues: #3442

@mycodebroken
Copy link

mycodebroken commented Nov 29, 2024

v2.9.2 same using github.com/hashicorp/go-retryablehttp
panic: cannot find type for func (RequestLogHook/RequestLogHook)
v2.9.1 works

@mycodebroken
Copy link

@leaanthony

@BenoitBotton
Copy link
Contributor

I wonder whether this is linked to #3809

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants