Skip to content

new diagnostics context generating errors #1200

@gennaro-tedesco

Description

@gennaro-tedesco

I am using the new #diagnostics context as per the latest PR

BREAKING CHANGE: diagnostics moved to separate tool call, selection and buffer calls no longer include them by default

As you can see they are stickied correctly to the buffer

Image

However, upon invoking #diagnostics (say to list or correct the actual errors) I get

error
attempt to index field 'severity' (a nil value)

independent of the model I choose - different models then go ahead and explain why such error occurs, however it seems to be an underlying implementation bug, or does it work correctly in your case? This by the way shows also if one includes the new "diagnostics" in any custom prompt, namely it excepts with the aforementioned error.

P. S. If I lock the repository back to commit d0537a7 then all works as intended if I specify diagnostics myself like in here

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions