Skip to content

Some lang names guessed by bblfsh has a different driver name #162

Description

@dpordomingo

When sending to bblfsh a code with a filename whatever.sh, it is tried to be parsed with shell driver, but this driver should be identified as bash; when it happens, the request fails because bblfsh is not able to route shell requests to bash driver.

As suggested by @juanjux (via Slack), it could be interesting to have language aliases defined in the driver's manifest and then bblfshd could read and route those names to the proper driver.

Activity

  1. assigned and unassigned on Apr 24, 2018
  2. smola commented on Jun 18, 2018

    @smola
    Member

    In enry/linguist there is just Shell, not Bash. Everything else are just aliases for Shell.
    The problem here is that our driver manifest asserts it supports "bash", but that is not a language that enry can output.

  3. dennwc commented on Aug 2, 2018

    @dennwc
    Member

    @juanjux Maybe we should rename the driver to shell?

  4. smola commented on Aug 3, 2018

    @smola
    Member

    The Bash driver should work with any valid Bash subset, it would even support most code for Zsh, which is not a subset but it's pretty similar. That covers most shells and most shell code. However, I think it will never support csh/tcsh syntax.

    Whatever solution you pick, I think it's safe to assume that the Bash driver is everything we'll need for shell language in the foreseeable future.

  5. juanjux commented on Aug 3, 2018

    @juanjux
    Contributor

    We spoke some time ago about supporting more language aliases in the manifest to cover drivers supporting more languages (like Python2/3, TypeScript/Javascript, etc). But while we do that I'm ok with renaming to Shell if we agree.

  6. dennwc commented on Aug 3, 2018

    @dennwc
    Member

    I think renaming to shell is the best option for now. And it seems like we all agree on this.

    @juanjux Can you please rename the driver and change the GitHub project tags to shell?

  7. juanjux commented on Aug 4, 2018

    @juanjux
    Contributor

    Will do.

  8. smola commented on Aug 7, 2018

    @smola
    Member

    @juanjux @dennwc I was discussing with Máximo, I'm cc'ing him (@mcuadros) to comment on the alternative of keeping the driver as bash-driver and defining an alias for the Shell language.

  9. mcuadros commented on Aug 7, 2018

    @mcuadros
    Contributor

    The name of the drivers are the name of a language, shell is not a language name, so we should keep the name of 'bash', what we can do... if worth it, is identify bash in Enry, but this is not a bblfsh issue

  10. smola commented on Aug 7, 2018

    @smola
    Member

    Opened a separate issue to decide what to do with the Bash/Shell case: bblfsh/bash-driver#39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions