Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38338

Add default "mongo" shell helper method to inform user of error

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
    • Server Tooling & Methods
    • Dev Tools 2018-12-17, Dev Tools 2018-12-31, Dev Tools 2019-01-14, Dev Tools 2019-01-28, Dev Tools 2019-02-11

      Currently, new users who may not be very familiar with a shell environment can easily find themselves in a mongo shell, such as verifying they've correctly added it to their path. Then, they may not exit the mongo shell but instead try to launch a new shell or connect to a database. This results in the following errors.

      MongoDB Enterprise > mongo
      2018-11-30T13:42:15.701-0500 E QUERY [js] ReferenceError: mongo is not defined :
      @(shell):1:1
      MongoDB Enterprise > mongo localhost
      2018-11-30T13:45:37.703-0500 E QUERY    [js] SyntaxError: missing ; before statement @(shell):1:6
      

      There are currently 22 threads in Education's new forums that show users encountering this situation, and countless more in our old forums. Adding a default to shellHelper would help ameliorate this and provide better feedback to our newer users.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            nathan.leniz@mongodb.com Nathan Leniz
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: