-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Show error icon near cursor on inline completion errors #1197
Show error icon near cursor on inline completion errors #1197
Conversation
ce9bb53
to
8784c56
Compare
I think you could override |
I think you will also need to bump the version of jupyterlab/completer to 4.3.0 if the main branch of jupyter-ai isn't on that version yet. It wasn't when I looked at this issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Darshan808 Welcome to Jupyter AI! I love seeing new contributors. Thank you for getting started on this feature request.
I've left a few suggestions below. In addition, I have a couple of questions:
- Could you add a screenshot to this PR?
- The original issue (Show error animation in code cell when error is triggered #1144) shows an icon when the completer fails. How is the icon being added?
packages/jupyter-ai-magics/jupyter_ai_magics/models/completion.py
Outdated
Show resolved
Hide resolved
packages/jupyter-ai/jupyter_ai/tests/completions/test_handlers.py
Outdated
Show resolved
Hide resolved
Thank you for your feedback and suggestions, @dlqqq
Yes, this was redundant, so I dropped
Whenever we return an item with the
Sure, I am adding a clip.
This worked perfectly. |
A custom error can be raised here before sending the reply. |
The newly added test passes locally but fails on CI. Looking into it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Darshan808 Thank you for revising this PR! Apologies for the late review, I just got back from seeing my family overseas for Chinese New Year.
I left one minor comment below. In addition, it looks like the unit test you've added is failing in CI. Can you address both of these issues so I can approve & merge your PR?
The unit test is passing locally and also passing in CI on my PR of my fork of jupyter-ai. Not sure what's causing it to fail here. |
It looks like there are significant differences in packages installed in runs on CI on this repo vs on your fork, especially around
@Darshan808 maybe your local installation also predates the merge of #1201? This seems plausible as both this PR and #1201 were opened around 3 weeks ago. @dlqqq any idea why langchain upgrade would lead to the test failures? |
@krassowski Thanks for doing the research. Not sure about what's going on yet. Let me rebase and investigate further if CI still fails. |
61231c4
to
4e02a05
Compare
packages/jupyter-ai/jupyter_ai/tests/completions/test_handlers.py
Outdated
Show resolved
Hide resolved
The E2E test failure is not related. CI issue is being tracked in #1227 and will be fixed shortly. |
@Darshan808 Hey Darshan, I took the liberty of checking out your branch locally. I was able to reproduce the unit test failure. The issue is that I've taken the liberty of committing these changes on this branch for you to help get this PR merged. See this commit to review my changes: 28eac5e Thank you for contributing this! 🎉 |
Co-authored-by: Andrew Fulton [email protected]
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
28eac5e
to
67cea10
Compare
@meeseeksdev please backport to 2.x |
…mpletion errors
…rrors (#1230) Co-authored-by: Darshan Poudel <[email protected]>
Description
This PR introduces the error animation functionality to code cells for jupyter-ai. It aligns jupyter-ai's error reporting with JupyterLab's completer error animation feature.
Testing
error
field emission.Feedback on the testing approach is appreciated, particularly on methods to programmatically raise errors during tests.
Screencast
Simulated by raising custom exception from server side
ai-error.mp4