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

Running example command in image from README yields an error #36

Closed
capsulecorplab opened this issue Nov 14, 2023 · 4 comments · Fixed by #37
Closed

Running example command in image from README yields an error #36

capsulecorplab opened this issue Nov 14, 2023 · 4 comments · Fixed by #37

Comments

@capsulecorplab
Copy link
Contributor

Running the following example inside image from Defining and invoking commands yields a Instance of ClapCommand did not understand #runWith: error

Screenshot from 2023-11-14 15-02-31

@Bajger
Copy link
Contributor

Bajger commented Nov 19, 2023

Yes, this is purely outdated documentation. Will submit PR on this. You should use #activateWith: instead (see ClapCommand hiearchy).

Bajger added a commit to Bajger/clap-st that referenced this issue Nov 19, 2023
- updated status information about CLAP project
- fixed project references
- fixed example with command execution
- added Christophe as contributor
- fixes pharo-contributions#36
@capsulecorplab
Copy link
Contributor Author

Thanks @Bajger ! Using activateWith: seems to return an object I can inspect now. How would I go about previewing the stdout from inspecting this object? It looks like there's a stdio variable, but I'm not sure how to make sense of it
Screenshot from 2023-11-20 21-12-56

@Bajger
Copy link
Contributor

Bajger commented Nov 21, 2023

@capsulecorplab You can check stdout by evaluating (on context instance, which you hold inspector on screenshot): self stdio stdout contents asString

@capsulecorplab
Copy link
Contributor Author

@Bajger Ah, thank you!
Screenshot from 2023-11-21 12-04-00

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

Successfully merging a pull request may close this issue.

2 participants