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

skip adding diagnostic info for IW, guard against bad regex results #15440

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

amunger
Copy link
Contributor

@amunger amunger commented Mar 27, 2024

Fixes #15438

There is a mismatch between the cell contents sent to the kernel and what we add to the cell document when sending a # %% cell to the interactive window because of the # %% line.
We're not using the diagnostics for IW at this point anyway, so we can just skip this for interactive notebooks.
Also added a guard against bad line numbers from the regex, since that should not break the rest of the error rendering.

@amunger amunger marked this pull request as ready for review March 27, 2024 16:22
@vscodenpa vscodenpa added this to the March 2024 milestone Mar 27, 2024
@amunger amunger merged commit cd2ec9c into main Mar 27, 2024
28 checks passed
@amunger amunger deleted the aamunger/CellError branch March 27, 2024 16:26
@amunger amunger restored the aamunger/CellError branch April 15, 2024 18:53
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 this pull request may close these issues.

Iteractive window does not render error messages
3 participants