-
Notifications
You must be signed in to change notification settings - Fork 75
should be able to edit/extrude sketch with no variable declaration #3238
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
Comments
The app is trying to go through this path: source range selection -> pathToNode -> call AST node -> variable declaration AST node -> variable name -> variable value in ProgramMemory (should be ExtrudeGroup or SketchGroup) -> face or plane Unfortunately, that's impossible unless the KCL has assigned the pipeline to a variable. If you add To fix this right, we need @Irev-Dev's changes from #3140 so that we can find the face or plane from an arbitrary UUID that the user has clicked. In the meantime, I thought we could require KCL authors to always use a variable. A parse error would hopefully guide users to fixing their code. Is it easy to make an auto-fix that can migrate users' code? That would be ideal. But also, the variable requirement would go away once the artifact graph was completed. |
id rather just disable the button on these? is that possible or we wait for kurts change because changing kcl is not going to work that will break everyone more |
@Irev-Dev can you get in your PR by our monday? |
It should be possible to disable the button until Kurt's change is in. |
The change is in! |
Temp fix to stop user from getting into a bad state is here: #3292 Screenshare.-.2024-08-06.3_01_07.PM.mp4 |
Maybe this needs to be a lint that adds a variable when users type this. |
This affects users who:
I think that's a vanishingly small group of users. I'm removing |
see video
Screenshare.-.2024-08-01.3_45_27.PM.mp4
more info here https://kittycadworkspace.slack.com/archives/C04KFV6NKL0/p1722552201055069
The text was updated successfully, but these errors were encountered: