scry icon indicating copy to clipboard operation
scry copied to clipboard

Make scry resilient to compiler errors

Open faustinoaq opened this issue 6 years ago • 2 comments

After discussing with @RX14 on #104 I got the idea of modify the crystal compiler to ignore build errors and get implementations, symbols, hover even if you have a diagnostic with 200+ problems.

This way we can work pretty much like C# and Java IDEs :tada:

See: https://github.com/crystal-lang-tools/scry/issues/104#issuecomment-386895054

faustinoaq avatar May 06 '18 17:05 faustinoaq

As I said on https://github.com/crystal-lang-tools/scry/issues/104#issuecomment-386895054. I guess ignoring build errors inside crystal compiler is a bit complex. So I think we can try to fix the analyzed code or comment out the lines with errors to ensure crystal tool to return some non-diagnostic response.

faustinoaq avatar May 06 '18 17:05 faustinoaq

This is still an issue:

[Error - 10:14:56 AM] A error was found while searching implementations
Unexpected char 'W' at 1:1
Warning: Gzip is deprecated, use Compress::Gzip

kingsleyh avatar Sep 17 '20 09:09 kingsleyh