feat: add issues property to CodeEditor for Python-side analysis#6407
Open
FeodorFitsner wants to merge 5 commits intorelease/v0.85.0from
Open
feat: add issues property to CodeEditor for Python-side analysis#6407FeodorFitsner wants to merge 5 commits intorelease/v0.85.0from
FeodorFitsner wants to merge 5 commits intorelease/v0.85.0from
Conversation
When expand=True, use LayoutBuilder to measure available height and ConstrainedBox to ensure CodeField stretches to fill the entire area.
Add Issue/IssueType types and an issues property that lets Python code push error markers to the editor gutter. The built-in Dart analyzer is disabled in favor of user-controlled analysis via on_change handlers. Add JSON and Python analyzer examples.
Deploying flet-website-v2 with
|
| Latest commit: |
17bc9ba
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://488e6f91.flet-website-v2.pages.dev |
| Branch Preview URL: | https://code-editor-analyze.flet-website-v2.pages.dev |
Deploying flet-examples with
|
| Latest commit: |
17bc9ba
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://81712c1a.flet-examples.pages.dev |
| Branch Preview URL: | https://code-editor-analyze.flet-examples.pages.dev |
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IssueandIssueTypetypes plus anissuesproperty onCodeEditorso Python code can push error markers into the gutteron_change) is the source of truthCodeEditorbackground not filling the expanded area whenexpand=Trueexample_4,example_5)Test plan
examples/controls/code_editor/example_4and verify JSON error markers appear, update on edit, and clear when JSON becomes validexamples/controls/code_editor/example_5and verify Python syntax error markers appear, update on edit, and clear when syntax becomes validexamples/controls/code_editor/example_2and verify the editor background fills the entire expanded areaSummary by Sourcery
Expose Python-driven analysis issues in CodeEditor and update examples and layout to showcase gutter error markers and correct expansion behavior.
New Features:
Bug Fixes:
Enhancements: