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

[BUG]: kcl library line() - docs and in-app syntax error message are out-of-sync with actual parameter naming #5355

Open
yeroca opened this issue Feb 12, 2025 · 1 comment
Assignees
Labels
bug Something isn't working kcl Language and compiler features

Comments

@yeroca
Copy link

yeroca commented Feb 12, 2025

Describe the bug

Notice the inconsistency between end_absolute and endAbsolute:

Image

Image

It took me a while to see the actual problem here.

Steps to Reproduce

Use the end_absolete parameter in a call to line() and observe the error you get.

Expected Behavior

I expected that the actual parameter, the docs, and the error message would by in sync.

Screenshots and Recordings

No response

Desktop OS

Fedora 41

Browser

No response

Version

V0.42.0

Additional Context

No response

@yeroca yeroca added the bug Something isn't working label Feb 12, 2025
@jessfraz jessfraz added the kcl Language and compiler features label Feb 12, 2025
@adamchalmers
Copy link
Collaborator

adamchalmers commented Feb 18, 2025

Thanks for filing this! All keyword arguments use camelCase, but some of our auto-generated docs are wrongly showing snake_case. I'll fix the doc generator.

@jessfraz @jtran @nrc I think I'm gonna change the derive-docs macro so that it uses camelCase for kw arguments.

adamchalmers added a commit that referenced this issue Feb 18, 2025
jessfraz pushed a commit that referenced this issue Feb 19, 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 kcl Language and compiler features
Projects
None yet
Development

No branches or pull requests

3 participants