Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Expose debug symbol start and end for the language server #289

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

alxkzmn
Copy link
Collaborator

@alxkzmn alxkzmn commented Aug 22, 2024

We have accidentally made the start and end of debug symbol private, so here's a fix for the language server. Also had to update the halo2 to the latest version because the language server didn't want to compile (there was a missing bound on a variable generic inside the halo2 middleware Expression, not sure why Chiquito itself compiled successfully).

Copy link
Contributor

@rutefig rutefig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -141,6 +141,22 @@ impl PartialEq for DebugSymRef {
}
}

/// Interface of the debug symbol reference to use with the Chiquito language server
pub trait LanguageServerInterface {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alxkzmn I don't think it is custom in Rust to call Interface to a trait. Also, the interface is used by the Language Server, not an interface to the Language Server.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be something like GetPos? or something refering to the actions that are allowed by the trait

@alxkzmn alxkzmn requested a review from leolara August 27, 2024 08:58
@alxkzmn alxkzmn merged commit 50ec990 into chiquito-2024 Aug 27, 2024
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants