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

Error while editing a playground file without any active MongoDB connection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.4.1
    • Affects Version/s: None
    • Component/s: Playgrounds
    • None
    • Not Needed
    • Iteration Uglifruit, Iteration Vegetable

      The error occurs while editing a playground file without any active MongoDB connection. The language server logs the following error:

      Unable to find source-code formatter for language: log. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      [Error - 2:59:52 PM] Request textDocument/completion failed.
        Message: Request textDocument/completion failed with message: The "path" argument must be of type string. Received type undefined
        Code: -32603 
      

      Steps to reproduce:

      • restart VS Code to clean things up
      • Command palette, create mongodb playground (without connecting to any cluster first)
        Where it says $match: {date on line 30 of the default template, change it to $match: {datee
      • Observe the bahavior.

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

              Created:
              Updated:
              Resolved: