Hey @Migueldeicaza I think in the last version of main of swiftgodot there is an error, I just updated one of my repos to the last commit, and generates this error:
I think is the callable macro

@eickot that looks like your code, you might need to cast to see if this error supports that method perhaps?

We can discuss on Slack in a couple of hours

@Migueldeicaza the error is in the proxy function generated by the macro callable. When I remove the @Callable everything works. If I go back on the commits, it works too.
@eickot can you paste the code for the function?
@Migueldeicaza I will try now to build it with swift 6, I'm still in swift 5.10
@Migueldeicaza Btw, in one of my pet projects, I steal 6 lines of one of you macro to create a macro for me, I hope is not a problem :)
@eickot you can take as much code as you want, it is all MIT licensed
@Migueldeicaza testing, the problem appears when the function has parameters, an empty function with callable works. but when parameters appears, then the error appears
@Migueldeicaza Interesting the code that generates, in swift playground says is correct:
https://swiftfiddle.com/tyldhdthxfdenfy2tfvlv2ljee
Swift Online Playground

SwiftFiddle is an online playground for creating, sharing and embedding Swift fiddles (little Swift programs that run directly in your browser).

SwiftFiddle - Swift Online Playground
@Migueldeicaza Hey, sorry for the lots of messages, I found the issue, I needed to import Foundation. Otherwise any Error doesn't have the localizedError. Is it fine if I create a P/R adding a comment on the line of the localized error?
@eickot oh we are trying to avoid depending on Foundation for now. For people that want small deps. If you show me the code I can fix it
SwiftGodot/Sources/SwiftGodotMacroLibrary/MacroCallable.swift at main ยท migueldeicaza/SwiftGodot

New Godot bindings for Swift. Contribute to migueldeicaza/SwiftGodot development by creating an account on GitHub.

GitHub
@Migueldeicaza I also think is not a good experience, to need any external dependencies, and also the error is really missleading
@eickot Yup, cooking a patch now.
@Migueldeicaza nice, just after finding the issue my laptop died :( i dont know when i will be able to continue