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

No update on RunScript() params from the component clicking #17

Open
9and3 opened this issue Jul 11, 2024 · 3 comments
Open

No update on RunScript() params from the component clicking #17

9and3 opened this issue Jul 11, 2024 · 3 comments
Assignees
Labels
bug Something isn't working high_priority wontfix This will not be worked on

Comments

@9and3
Copy link
Collaborator

9and3 commented Jul 11, 2024

Since (8.8.24170.13001, 2024-06-18) Rhino update the component is not updating the RunScript() params when clicking on the component.

image

@9and3 9and3 added the bug Something isn't working label Jul 11, 2024
@9and3 9and3 self-assigned this Jul 11, 2024
@9and3
Copy link
Collaborator Author

9and3 commented Jul 15, 2024

Possibly tracked the issue and posted in McNeel forum:

Hello there!

I wonder if this is a bug, while using a grasshopper python I noticed that if we dynamically add some inputs

862f347bcc2f1211a7c01cb1fb2038a0d2d891f5

But if the RunScript() def as columned parameters (it might be convinient sometimes to use it) it doesn't automatically update and throws an error 1. Error running script (ExecuteException): RunScript() takes 3 positional arguments but 4 were given:

ad95a3a29d32d12da305e49e9f1afbb0cda33ae6_2_1035x225

Hence, if you are using lists as datatype input the IDE will organize automatically the RunScrip()'s parameters in column resaulting the above mentioned error, see here:

9d6f840f9ddc3e5b5263b8d1851b82be272605c1_2_1035x432

it happens since 8.8.24170.13001, before this behavior didn't exist. I know we can live with it but I just reported it in case.. thanks! 🤲

@9and3
Copy link
Collaborator Author

9and3 commented Jul 20, 2024

as a temp fix you can add manually the inputs in the lines 412:

    def RunScript(self,
        select_file: bool,
        packages_2_reload : list,
        x : int <-- new entries
    ):

@9and3 9and3 added the wontfix This will not be worked on label Jul 20, 2024
@9and3
Copy link
Collaborator Author

9and3 commented Jul 20, 2024

Still keeping this one. On d72a542 we introduce a temporary fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high_priority wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant