sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.1k stars 1.29k forks source link

Tree-sitter: syntax highlighting times out for a very large file #32137

Closed olafurpg closed 2 years ago

olafurpg commented 2 years ago

Following up from https://sourcegraph.slack.com/archives/CHXHX7XAS/p1646226793659029

Loading a 20k loc C# file with the new tree-sitter highlighter currently times out https://sourcegraph.com/github.com/dotnet/sdk/-/blob/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/ComputeBlazorPublishAssetsTest.cs

I tried to reproduce locally and hit on a 413 error

  <h1>413: Payload Too Large</h1>
        <p>The request is larger than the server is willing or able to process.</p>
        <hr />
github-actions[bot] commented 2 years ago

Heads up @macraig - the "team/code-intelligence" label was applied to this issue.

olafurpg commented 2 years ago

Closing as wontfix because we show the text contents as soon as possible now, regardless of highlighting progress.