Closed REscobar closed 11 months ago
Oh geeze. I'll take a look.
I'm going to increase the max depth for now. But, long term, I would much rather have a different format for the cache file. The JSON thing was just the easiest solution available at the time.
Can this be made configurable with the same current default, so the current behavior is not changed and also allow to tune it for other unforeseen scenarios?
I don't see why. There's a legit max depth for this use case. As long as this isn't a circular dependency or something.
Ya know that's probably a thing to check. Make sure this isn't a circular dependency.
The cache file does get saved to disk, the exception occurs when it's read back.
I can upload the generated file if it helps
Naw that's fine.
I'm also taking this chance to convert this to System.Text.Json.
Alright, new commit to main, will release shortly after testing.
Changes:
When adding some maven references with big dependencies graphs a
JsonReaderException
is thrownSteps to reproduce:
Create a new .net8 blank console app
Install IKVM.Maven.Sdk 1.6.3
Add this reference
Attempt build
An exception similar to this one will be thrown:
Other notes: adding this dependency creates a ~72MB cache file, I don't know if this is relevant