microsoft / Kusto-Query-Language

Kusto Query Language is a simple and productive language for querying Big Data.
Apache License 2.0
510 stars 97 forks source link

StackOverflowException when using Visual Studio 2022 debugger #107

Closed mkulisic closed 1 year ago

mkulisic commented 1 year ago

Visual Studio 2022 Framework: net6.0 Library version: 11.2.2

I've been building a utility to translate odata queries into kusto queries. The final step of this translation shouldbe using the KustoCode.Parse() function in order to verify that the query generated by my utility is valid. When I run the code below I don't get any issues, but when I run it with the debugger I get a StackoverflowException as shown in the image.

image

Not being able to use my debugger in the tester project is very inconvenient. Specially since I can't find documentation for the diagnostic settings outputted by the function.

mattwar commented 1 year ago

The overflow is inside the ValidateKustoQuery method. It calls itself.