engine-deprecated: Parsing csharp files does not recognize the language

discovered at https://github.com/src-d/empathy-sessions/issues/37#issuecomment-470045137

Running parse over a .cs file is not working

$ srcd parse uast examples/example.cs
INFO[0000] detected language: c#                        
Error: language c# is not supported
Usage:
  srcd parse uast [file-path] [flags]
...

Workaround

Until this is fixed, csharp needs to be passed explicitly to bblfshd. For example:

srcd parse uast csharp.cs --lang csharp

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 21 (21 by maintainers)

Most upvoted comments

It also fails for cpp (c++ is not supported) and bash (shell is not supported).

I would propose to return this issue to backlog and wait for the fix from LA team instead of implementing work around on our side due to:

  • we can work around only parse command, not gitbase
  • there is a chance we will remove parse command completely from engine

@carlosms wdyt?

My understanding was that the fix from https://github.com/bblfsh/bblfshd/pull/251 was supposed to address this without requiring a change to Engine. To really fix this we will need a solution for aliasing, for which we don’t have a timeline yet (@bzz has started an RFC for the question, but we have had higher-priority work so far).

Is the above workaround not working for you?