When generating code with generate_stubs, resulting generated.jl includes some structs that look like following:
struct RoboticController_AddAxis <: Request{:SpaceCenter, :RoboticController_AddAxis, Bool}
RoboticController_AddAxis(this::RemoteTypes.RoboticController, module::RemoteTypes.Module, fieldName::String) = begin
new(this, module, fieldName)
end
this::RemoteTypes.RoboticController
module::RemoteTypes.Module
fieldName::String
end
However, since module is an existing Julia keyword, it will not compile.
Workaround
After code generation, manually edit all parameters with module into something else, like _module.
(I also had to remove the conditional include in KRPC.jl after generation to make the include work. Not sure why.)
Hello, awesome repository!
Julia version: 1.8.0 (2022-08-17)
When generating code with
generate_stubs
, resultinggenerated.jl
includes some structs that look like following:However, since module is an existing Julia keyword, it will not compile.
Workaround
After code generation, manually edit all parameters with
module
into something else, like_module
. (I also had to remove the conditional include in KRPC.jl after generation to make the include work. Not sure why.)