Skip to content

#6300 Fix wrong Feature Tree when switching to kcl file with errors #6922

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

andrewvarga
Copy link
Contributor

@andrewvarga andrewvarga commented May 14, 2025

Fixes #6300

Copy link

vercel bot commented May 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 2:14pm


await toolbar.openFile('error.kcl')

// Ensure filetree is populate
Copy link
Contributor

Choose a reason for hiding this comment

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

There appears to be a typo in the comment: Ensure filetree is populate should be Ensure filetree is populated for grammatical correctness.

Suggested change
// Ensure filetree is populate
// Ensure filetree is populated

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

Copy link
Contributor

@pierremtb pierremtb left a comment

Choose a reason for hiding this comment

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

Works beautifully locally. Tysm!

await toolbar.openFile('error.kcl')

// Ensure filetree is populate
await page.waitForTimeout(1000)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this again here?

Suggested change
await page.waitForTimeout(1000)
await scene.settled(cmdBar)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, that seems to work too and much better!

Comment on lines +150 to +153

// These belonged to the previous file
this.lastSuccessfulOperations = []
this.lastSuccessfulVariables = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Ooooh so clean

@pierremtb pierremtb enabled auto-merge (squash) May 14, 2025 14:07
@pierremtb pierremtb merged commit 550d8b3 into main May 14, 2025
47 checks passed
@pierremtb pierremtb deleted the andrewvarga/6300/wrong-feature-tree-when-switching-to-file-with-kcl-errors branch May 14, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature tree is wrong when switching to a file with KCL errors
2 participants