firebase / firebase/firebase-tools

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

Open
#8,507 0 comments 0 reactions 1 assignee Claimed by @taeold View on GitHub
emulators: functions integration: python type: bug
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### [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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.