Skip to content

Vscode is auto launching morse beacuse of shebang in python file #11687

Closed
@aleksglo

Description

@aleksglo

Environment data

  • VS Code version: 1.45.0
  • Extension version (available under the Extensions sidebar): 2020.4.76186
  • OS and version: Ubuntu 18.04.04
  • Python version : 3.6.9
  • Type of virtual environment used: no environment

Expected behavior

After editing and saving a python file with a shebang no external application should be launched.

Actual behavior

After saving a python file with the shebang "#! /usr/bin/env morseexec" Morse/Blender is executed.
It should not be executed automatically, vscode should just save the file.

This behavior is happening with this file for example
https://github.com/morse-simulator/morse/blob/master/examples/tutorials/ros_navigation/default.py

Steps to reproduce:

You can reproduce this by running the tutorial from here
https://www.openrobots.org/morse/doc/stable/user/installation.html
and try to edit https://github.com/morse-simulator/morse/blob/master/examples/tutorials/ros_navigation/default.py in vscode.

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions