Skip to content
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

[CRYPTIC]: Inline comment causes unexpected token error #5336

Open
r-barton opened this issue Feb 11, 2025 · 0 comments
Open

[CRYPTIC]: Inline comment causes unexpected token error #5336

r-barton opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working cryptic-error Source code produces a confusing error kcl Language and compiler features

Comments

@r-barton
Copy link
Contributor

Paste minimal KCL source that produces a cryptic error

@settings(defaultLengthUnit = in)

sketch000 = startSketchOn('XY')

circle({
  center = [0, 0], // Centered at the origin
  radius = 10 // Radius based on the central hole diameter
}, sketch000)

Expected Behavior

I expect that inline comments should not affect KCL execution. In this case the comment on the radius = 10 line causes the KCL to error resulting in a Unexpected token: (

Additional Context

No response

@r-barton r-barton added bug Something isn't working cryptic-error Source code produces a confusing error kcl Language and compiler features labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cryptic-error Source code produces a confusing error kcl Language and compiler features
Projects
None yet
Development

No branches or pull requests

1 participant