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

Only one example created #139

Closed
lars-reimann opened this issue May 16, 2024 · 0 comments · Fixed by #152
Closed

Only one example created #139

lars-reimann opened this issue May 16, 2024 · 0 comments · Fixed by #152
Assignees
Labels
bug 🪲 Something isn't working

Comments

@lars-reimann
Copy link
Member

lars-reimann commented May 16, 2024

Describe the bug

For declarations with multiple examples, only the first one seems to be created.

Example (correlation_with):

/**
 * ...
 *
 * @example
 * pipeline example {
 *     // from safeds.data.tabular.containers import Column
 *     // column1 = Column("test", [1, 2, 3])
 *     // column2 = Column("test", [2, 4, 6])
 *     // column1.correlation_with(column2)
 * }
 */
@Pure
@PythonName("correlation_with")
fun correlationWith(
    other: Column<Any>
) -> correlation: Float

To Reproduce

Generate stubs for safe-ds.

Expected behavior

All examples should be created.

Screenshots (optional)

No response

Additional Context (optional)

No response

@lars-reimann lars-reimann added the bug 🪲 Something isn't working label May 16, 2024
@Masara Masara linked a pull request Jun 15, 2024 that will close this issue
@Masara Masara moved this from Backlog to Ready for Review in Library Analysis Jun 15, 2024
lars-reimann pushed a commit that referenced this issue Jun 20, 2024
Closes #139

### Summary of Changes
Multiple example docstrings ~~are now combined to one big example
docstrings~~ will now each have an example block in Safe-DS docstrings.
Previously only the first docstring was saved and others where ignored.
@github-project-automation github-project-automation bot moved this from Ready for Review to ✔️ Done in Library Analysis Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
Status: ✔️ Done
Development

Successfully merging a pull request may close this issue.

2 participants