-
Notifications
You must be signed in to change notification settings - Fork 3
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
Panic when rendering Label documentation #41
Comments
Although the problem is in |
cameron-martin
added a commit
that referenced
this issue
Jun 29, 2024
starlark-rust panics if a DocString is given that contains an empty summary. In response, we filter out empty summaries and don't generate any DocString for these. Fixes #41
cameron-martin
added a commit
that referenced
this issue
Jun 29, 2024
starlark-rust panics if a DocString is given that contains an empty summary. In response, we filter out empty summaries and don't generate any DocString for these. Fixes #41
cameron-martin
added a commit
that referenced
this issue
Jun 29, 2024
🤖 I have created a release *beep* *boop* --- ## [0.6.1](v0.6.0...v0.6.1) (2024-06-29) ### Bug Fixes * Don't give empty documentation to starlark-rust ([#44](#44)) ([355ceed](355ceed)), closes [#41](#41) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
facebook-github-bot
pushed a commit
to facebook/buck2
that referenced
this issue
Jul 1, 2024
Summary: Fix for cameron-martin/bazel-lsp#41 - Panic when rendering Label documentation Looks like documentation may contain no lines (in case of bazel-lsp at least), and this quick fix makes it work. Not sure whether it's the best solution, or the assumption that docs should contain non-empty text should be enforced somewhere, but it is not at this point so making it not panic seems like good solution. X-link: facebook/starlark-rust#121 Reviewed By: perehonchuk Differential Revision: D59208773 Pulled By: ndmitchell fbshipit-source-id: 00708614a9e4fb53e1eaf4f41bedcae1fd4176f9
facebook-github-bot
pushed a commit
to facebook/starlark-rust
that referenced
this issue
Jul 1, 2024
Summary: Fix for cameron-martin/bazel-lsp#41 - Panic when rendering Label documentation Looks like documentation may contain no lines (in case of bazel-lsp at least), and this quick fix makes it work. Not sure whether it's the best solution, or the assumption that docs should contain non-empty text should be enforced somewhere, but it is not at this point so making it not panic seems like good solution. Pull Request resolved: #121 Reviewed By: perehonchuk Differential Revision: D59208773 Pulled By: ndmitchell fbshipit-source-id: 00708614a9e4fb53e1eaf4f41bedcae1fd4176f9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting following stack trace in bazel-lsp, after some auto-completion suggestion are being loaded. Looks like the Label symbol is global and when documentation for it is being loaded the server fails.
Not sure why it does not occur for others though, for me it happens with each usage of bazel-lsp, making it unusable.
Created provisional fix:facebook/starlark-rust#121
With the fix I get following documentation, note that input parameter has no documentation:
bazel version: 7.1.0, --noenable_bzlmod
os: WSL2, Ubuntu 22.04
Using neovim lsp integration
The text was updated successfully, but these errors were encountered: