Syntax highlighting not working for c#
Created by: IljaKroonen
- Sourcegraph version: sourcegraph/server:3.43.1
- Docker version 18.09.3, build 774a1f4eee
Steps to reproduce:
I am not sure if this is reproducible with a different set of sources.
- Run sourcegraph (in an environment with no internet)
docker run -d --restart=always --publish 7080:7080 --publish 127.0.0.1:3370:3370 --publish 7443:7443 \
--mount "type=volume,src=sourcegraph-config,dst=/etc/sourcegraph" \
--mount "type=volume,src=sourcegraph-data,dst=/var/opt/sourcegraph" \
sourcegraph/server:3.43.1
- Connect to a github enterprise instance with many repositories, and a lot of c# code
- Open some C# sources and notice there is no syntax highlighting
Expected behavior:
Syntax highlighting
Actual behavior:
No syntax highlighting
This message appears in logs (redacted)
07:48:05 frontend | t=2022-09-08T07:48:05+0000 lvl=eror msg="syntax highlighting failed (this is a bug, please report it)" filepath=src/XXX.A.B/C/Something.cs filetype=c_sharp repo_name=ghe.xx.xx/XY/xxx revision=ada0ee40ade592fa129320d1afa5a12e14897a5d snippet="\"using XXX.Something.SomethingElse.Model;\\n\\nnamespace XXX.Something.SomethingElse.Servic\"…" error="http://127.0.0.1:9238: gosyntect internal error: resource_not_found"
07:48:05 frontend | t=2022-09-08T07:48:05+0000 lvl=eror msg="syntax highlighting failed (this is a bug, please report it)" filepath=src/XXX.A.B/C/SomethingSomething.cs filetype=c_sharp repo_name=ghe.xx.xx//XY/xxx revision=ada0ee40ade592fa129320d1afa5a12e14897a5d snippet="\"using XYZ.Core;\\nusing System;\\nusing System.Collections.Generic;\\nusi\"…" error="http://127.0.0.1:9238: gosyntect internal error: resource_not_found"
07:48:05 syntect_server | Error: No matching routes for POST /lsif application/json.
07:48:05 syntect_server | Warning: Responding with 404 Not Found catcher.
If would like immediate help on this, please email [email protected] (you can still create the issue, but there are not SLAs on issues like there are for support requests).