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

Tooltip error when using .create-or-alter: Cannot read properties of undefined (reading: 'IsOptional') #104

Open
johndog opened this issue Feb 10, 2023 · 2 comments
Labels
bug Something isn't working help wanted Contribution requested

Comments

@johndog
Copy link

johndog commented Feb 10, 2023

With the following code, hovering over any keyword results in a tooltip Cannot read properties of undefined (reading: 'IsOptional')

.create-or-alter function 
BytesInMB(bytes: long) {
   round(bytes / 1024.0 / 1024.0, 2)
}

It doesn't seem to matter what's in the function body. In fact, it seems to happen with any dot commands (e.g. .show table).

Changing the function above to use let BytesInMB=() syntax, the tooltips work correctly.

@johndog
Copy link
Author

johndog commented Feb 10, 2023

It also reproduces with the example at https://github.com/rosshamish/kuskus/blob/master/kusto-syntax-highlighting/test/snapshots/create-or-alter-function/create-or-alter-function.csl.

Syntax coloring works, tooltips don't (for me).

@rosshamish
Copy link
Owner

hi @johndog , thanks for the report. I'm not actively maintaining this extension anymore but I'm open to facilitating contributions. I see a similar report at #102 , probably related.

@rosshamish rosshamish added bug Something isn't working help wanted Contribution requested labels Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Contribution requested
Projects
None yet
Development

No branches or pull requests

2 participants