Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-412

Exclude driver syntax by default for languages that do not support it

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 3

      Problem Statement/Rationale

      The "Include Driver Syntax" feature is not implemented by the BSON Transpiler for some languages. For example, C# does not have the driver syntax implementation. If it was enabled from the previous export for a different language, the transpiler tries to apply it to C# and throws the "Unable to export to sharp language: Generating driver syntax not implemented for current language" error.

      We could improve this behavior by switching off driver syntax in such cases.

      Steps to Reproduce

      • Select an aggregation or query in a playground.
      • Export selected code to Java
      • Include driver syntax in the Result Pane
      • Export the same code to C#

      Expected Results

      C# code displayed in the Result pane without the driver syntax.

      Actual Results

      The "Unable to export to sharp language: Generating driver syntax not implemented for current language" error is thrown.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: