-
Notifications
You must be signed in to change notification settings - Fork 22
saga4/fix optimizable functions #452
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
what cause this fix to be needed? |
The LSP server was modifying shared state of the object -> server.optimizer.args, without actually restoring it. When one request set args.function to optimize a specific function, that filter remained active for all subsequent requests, causing them to return incorrect results and thats why we just starting each request with clean state right now. |
User description
PR Type
Enhancement, Bug fix
Description
Add logs around optimizable functions calls
Save and restore optimizer.args state
Handle missing current function errors
Disable PRs in LSP server initialization
Changes diagram
Changes walkthrough 📝
beta.py
Enhance logging and state safety in betacodeflash/lsp/beta.py
optimizer.argsto prevent corruptionserver.py
Disable PR creation in LSP servercodeflash/lsp/server.py
args.no_pr = Truein optimizer init