godot-admob-plugin icon indicating copy to clipboard operation
godot-admob-plugin copied to clipboard

Import error

Open wozpi opened this issue 1 year ago • 11 comments

Godot version

v4.2.1

Plugin version

v3.1.0

System information

MacOS 14.1.2 (23B92)

Phone information, if applicable

No response

Issue description

Parser Error: Invalid argument for "new()" function: argument 2 should be "State" but is "AdapterStatus.State".

Steps to reproduce

Download and import from github or asset have error Parser Error: Invalid argument for "new()" function: argument 2 should be "State" but is "AdapterStatus.State". Screenshot 2023-12-31 at 22 03 13

Additional context

No response

wozpi avatar Dec 31 '23 15:12 wozpi

Thank you for opening this issue, we will investigate

gumaciel avatar Dec 31 '23 15:12 gumaciel

i fixed for temp 🧛
Screenshot 2023-12-31 at 22 07 58

wozpi avatar Dec 31 '23 15:12 wozpi

i fixed for temp 🧛 Screenshot 2023-12-31 at 22 07 58

image

I am getting an error when trying to use your fix. Using the latest version of Godot.

ZachBeauchamp avatar May 21 '24 20:05 ZachBeauchamp

hi @ZachBeauchamp are you trying on iOS or Android?

gumaciel avatar May 21 '24 21:05 gumaciel

hi @ZachBeauchamp are you trying on iOS or Android?

Hi, I am trying to use it for Android.

ZachBeauchamp avatar May 21 '24 21:05 ZachBeauchamp

I was able to fix it. I removed the ": AdapterStatues.State" assertion. Thanks to user "Arcana" on the godot discord server. image

ZachBeauchamp avatar May 21 '24 23:05 ZachBeauchamp

@ZachBeauchamp and @wozpi were you guys testing on iOS or Android?

gumaciel avatar May 29 '24 23:05 gumaciel

@ZachBeauchamp @wozpi I can't reproduce either in Android or iOS :(

  • The change in @wozpi is more appropriate but it's the "same thing" as before and shouldn't break the code.

Can you guys please try again in Godot 4.2.2?

gumaciel avatar May 30 '24 20:05 gumaciel

@ZachBeauchamp @wozpi I can't reproduce either in Android or iOS :(

  • The change in @wozpi is more appropriate but it's the "same thing" as before and shouldn't break the code.

Can you guys please try again in Godot 4.2.2?

Check to see if the the fix I offered is just automatically in your version. For some other people I have talked to it was.

ZachBeauchamp avatar May 30 '24 20:05 ZachBeauchamp

I will close this issue since I did not reproduce it and it seems fixed by you.

If someone still has this problem please re-open it.

gumaciel avatar May 31 '24 00:05 gumaciel

Stills happens when some class in the project has the same name as State

gumaciel avatar Sep 06 '24 00:09 gumaciel