Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode unable to resolve imports from secondary airflow namespace package in monorepo with duplicate package names #6649

Open
JDarDagran opened this issue Nov 6, 2024 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@JDarDagran
Copy link

Type: Bug

Behaviour

VSCode successfully recognizes and imports modules from the main airflow package but doesn’t detect imports from the secondary airflow namespace package.

Steps to reproduce:

  1. Clone the Apache Airflow repository: https://github.com/apache/airflow
  2. Install packages in editable mode (I've done it in multiple ways including:
  • uv sync
  • uv pip install -e . -e ./providers -e ./task_sdk
  • pip install -e . -e ./providers -e ./task_sdk --config-setting editable_mode=compat
  1. Open any file that tries to import from airflow.sdk or airflow.providers.

Diagnostic data

Extension version: 2024.18.0
VS Code version: Code 1.95.1 (Universal) (65edc4939843c90c34d61f4ce11704f09d3e5cb6, 2024-10-31T05:14:54.222Z)
OS version: Darwin arm64 23.4.0
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.17
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

 "python.analysis.extraPaths": [
            "${workspaceFolder}/airflow",
            "${workspaceFolder}/task_sdk/src"
            "${workspaceFolder}/providers/src"
        ]

System Info
Item Value
CPUs Apple M1 Pro (10 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 6, 6, 6
Memory (System) 16.00GB (0.03GB free)
Process Argv --crash-reporter-id 88217b29-6a1c-4f04-987d-351f65f1d656
Screen Reader no
VM 0%
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Nov 6, 2024
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants