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

methodswith() does not work anymore #18

Open
Rhahi opened this issue Jun 12, 2023 · 4 comments
Open

methodswith() does not work anymore #18

Rhahi opened this issue Jun 12, 2023 · 4 comments

Comments

@Rhahi
Copy link
Contributor

Rhahi commented Jun 12, 2023

I don't know when this started, but I no longer can use methodswith to look for functions that use remote types.

julia> methodswith(KRPC.Interface.SpaceCenter.RemoteTypes.Part)
0-element Vector{Method}
@BenChung
Copy link
Owner

BenChung commented Jun 12, 2023

Which version of Julia are you using? Also try the two-argument version of methodswith like methodswith(KRPC.Interface.SpaceCenter.RemoteTypes.Part, KRPC.Interface.SpaceCenter.Helpers)

@Rhahi
Copy link
Contributor Author

Rhahi commented Jun 12, 2023

Thank you, the two method version works! This is good enough for me. Feel free to close the issue if there will be no action.

I am using version 1.9.0 (2023-05-07) at the moment. I just downloaded and tested 1.8.5, but it's also same there.

(@v1.8) pkg> add https://github.com/RhahiSpace/KRPC.jl#develop
# using the current PR version

julia> using KRPC

julia> methodswith(KRPC.Interface.SpaceCenter.RemoteTypes.Part)
# displays nothing

@Rhahi
Copy link
Contributor Author

Rhahi commented Jun 12, 2023

Ahh, wait. I need to generate stubs first. Disregard the "there is nothing in 1.8" comment for now

@Rhahi
Copy link
Contributor Author

Rhahi commented Jun 12, 2023

I was not able to save the generated stubs, due to permission error. Maybe juliaup doesn't like to have these packages alongside each other? I tried without save_file=true, and methodswith did not show any result here either.

I had to dev the package and I generated the stub, restarted Julia, and used methodswith. It gave me an empty result as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants