title: `SyntaxError: invalid syntax` when starting Python script in VS Code on macOS
body: <p>I'm trying to run a Python script from Visual Studio code, but the script fails to run and crashes with a <code>SyntaxError</code> pointing to the comment at the beginning of <code>launch.json</code>.</p>
  <p><code>launch.json</code>:</p>
  <pre><code>{
      // Use IntelliSense to learn about possible attributes.
      // Hover to view descriptions of existing attributes.
      // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
      &quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [
          {
              &quot;name&quot;: &quot;Python | Default&quot;,
              &quot;type&quot;: &quot;python&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;stopOnEntry&quot;: false,
              &quot;pythonPath&quot;: &quot;${config:python.pythonPath}&quot;,
              &quot;program&quot;: &quot;${file}&quot;,
              &quot;cwd&quot;: &quot;${workspaceFolder}&quot;,
              &quot;env&quot;: {},
              &quot;envFile&quot;: &quot;${workspaceFolder}/.env&quot;,
              &quot;debugOptions&quot;: [
                  &quot;RedirectOutput&quot;
              ]
          }
      ]
  }
  </code></pre>
  <hr />
  <p>Terminal Output:</p>
  <pre><code>File &quot;.../.vscode/launch.json&quot;, line 2
      // Use IntelliSense to learn about possible attributes.
       ^
  SyntaxError: invalid syntax
  </code></pre>
  <hr />
  <p><code>settings.json</code>:</p>
  <pre><code>{
      &quot;python.pythonPath&quot;: &quot;${workspaceFolder}/venv/bin/python&quot;
  }
  </code></pre>
  <hr />
  <p>I was working on my Windows machine earlier and all of this worked perfectly fine. For some reason, VSCode is trying to run the <code>launch.json</code> file through Python and <code>//</code> is an invalid comment syntax in Python. If I remove the comments, I get this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;.../.vscode/launch.json&quot;, line 8, in &lt;module&gt;
      &quot;stopOnEntry&quot;: false,
  NameError: name 'false' is not defined
  </code></pre>
  <p>If I use Python's <code>False</code>, I don't crash but nothing happens and my script does not run. It seems very much like <code>launch.json</code> is being parsed by Python erroneously. Any fix for this?</p>