Skip to content

Python execution blocked by firebase emulator with Python functions since it is used by Flask server #8507

@dreinon

Description

@dreinon

[REQUIRED] Environment info

firebase-tools: 14.2.2

Platform: Ubuntu (Windows with WSL2)

[REQUIRED] Test case

Any code in a python file in a python Firebase cloud functions codebase

[REQUIRED] Steps to reproduce

  1. Use VSCode with Python language official extension to open a python Firebase Cloud Functions project.
  2. Open a python code file.
  3. Make sure the project venv is selected as the VSCode Python executable (the one used by the Language Server).
  4. Run the functions emulator

[REQUIRED] Expected behavior

The functions emulator should be able to run without blocking the Python venv execution since it is also used by the VSCode Language Server in order to have intellisense and other features without crashing.

[REQUIRED] Actual behavior

Pylance Language Server crashes when emulator is executed and the code becomes unhighlighted and white, with no help when hovering. This stops when emulator is stopped, since apparently Pylance is restarted automatically.

This does not allow to keep working on the code while the emulator is running, which is a problem.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions