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

Pylance/Cursor not indexing all the class objects in django project #6644

Open
cmkishore opened this issue Nov 6, 2024 · 4 comments
Open
Assignees
Labels
needs repro Issue has not been reproduced yet waiting for user response Requires more information from user

Comments

@cmkishore
Copy link

Environment data

  • Language Server version: 2024.8.1
  • OS and version: linux x64
  • Python version (and distribution if applicable, e.g. Anaconda):
  • python.analysis.indexing: true
  • python.analysis.typeCheckingMode: off

Code Snippet

XXX

Repro Steps

  1. Added pylance to Cursor.ai

  2. Open Django project

  3. Search for all model classes using symbol search

  4. XXX

Expected behavior

All the django class models show up in symbol search

Actual behavior

Only some/ partial django model classes come up, and it is not alphabetical. So no order or relation found so far in the symbols that are indexed and not

Logs


2024-11-06 13:59:34.562 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.564 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.566 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.567 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.568 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.569 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.570 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.571 [info] [Info  - 13:59:34] (142562) Could not resolve source for 'django.contrib.auth.models' in file '/home/cmkishores/Code/entrime/entrime/entri/api_v7/question_reports_dashboard/views.py'
2024-11-06 13:59:34.572 [info] [Info  - 13:59:34] (142562)   Looking in root directory of execution environment 'file:///home/cmkishores/Code/entrime/entrime'
2024-11-06 13:59:34.573 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/Code/entrime/entrime'
2024-11-06 13:59:34.573 [info] [Info  - 13:59:34] (142562)   Finding python search paths
2024-11-06 13:59:34.574 [info] [Info  - 13:59:34] (142562)   Executing interpreter: '/bin/python3'
2024-11-06 13:59:34.575 [info] [Info  - 13:59:34] (142562)   Skipping '/usr/lib/python310.zip' because it is not a valid directory
2024-11-06 13:59:34.575 [info] [Info  - 13:59:34] (142562)   Received 6 paths from interpreter
2024-11-06 13:59:34.576 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10
2024-11-06 13:59:34.576 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10/lib-dynload
2024-11-06 13:59:34.577 [info] [Info  - 13:59:34] (142562)     file:///home/cmkishores/.local/lib/python3.10/site-packages
2024-11-06 13:59:34.577 [info] [Info  - 13:59:34] (142562)     file:///usr/local/lib/python3.10/dist-packages
2024-11-06 13:59:34.577 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3/dist-packages
2024-11-06 13:59:34.578 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10/dist-packages
2024-11-06 13:59:34.578 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10'
2024-11-06 13:59:34.579 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10'
2024-11-06 13:59:34.579 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/lib-dynload'
2024-11-06 13:59:34.579 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/lib-dynload'
2024-11-06 13:59:34.579 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.580 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.580 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.580 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.580 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.581 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.581 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.581 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.581 [info] [Info  - 13:59:34] (142562) Could not resolve source for 'django.http' in file '/home/cmkishores/Code/entrime/entrime/entri/api_v7/question_reports_dashboard/views.py'
2024-11-06 13:59:34.582 [info] [Info  - 13:59:34] (142562)   Looking in root directory of execution environment 'file:///home/cmkishores/Code/entrime/entrime'
2024-11-06 13:59:34.582 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/Code/entrime/entrime'
2024-11-06 13:59:34.582 [info] [Info  - 13:59:34] (142562)   Finding python search paths
2024-11-06 13:59:34.583 [info] [Info  - 13:59:34] (142562)   Executing interpreter: '/bin/python3'
2024-11-06 13:59:34.583 [info] [Info  - 13:59:34] (142562)   Skipping '/usr/lib/python310.zip' because it is not a valid directory
2024-11-06 13:59:34.583 [info] [Info  - 13:59:34] (142562)   Received 6 paths from interpreter
2024-11-06 13:59:34.584 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10
2024-11-06 13:59:34.584 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10/lib-dynload
2024-11-06 13:59:34.585 [info] [Info  - 13:59:34] (142562)     file:///home/cmkishores/.local/lib/python3.10/site-packages
2024-11-06 13:59:34.586 [info] [Info  - 13:59:34] (142562)     file:///usr/local/lib/python3.10/dist-packages
2024-11-06 13:59:34.587 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3/dist-packages
2024-11-06 13:59:34.588 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10/dist-packages
2024-11-06 13:59:34.588 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10'
2024-11-06 13:59:34.589 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10'
2024-11-06 13:59:34.590 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/lib-dynload'
2024-11-06 13:59:34.591 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/lib-dynload'
2024-11-06 13:59:34.592 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.595 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.598 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.607 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.610 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.613 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.616 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.619 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.622 [info] [Info  - 13:59:34] (142562) Could not resolve source for 'django.db.models' in file '/home/cmkishores/Code/entrime/entrime/entri/api_v7/question_reports_dashboard/views.py'
2024-11-06 13:59:34.625 [info] [Info  - 13:59:34] (142562)   Looking in root directory of execution environment 'file:///home/cmkishores/Code/entrime/entrime'
2024-11-06 13:59:34.628 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/Code/entrime/entrime'
2024-11-06 13:59:34.630 [info] [Info  - 13:59:34] (142562)   Finding python search paths
2024-11-06 13:59:34.633 [info] [Info  - 13:59:34] (142562)   Executing interpreter: '/bin/python3'
2024-11-06 13:59:34.636 [info] [Info  - 13:59:34] (142562)   Skipping '/usr/lib/python310.zip' because it is not a valid directory
2024-11-06 13:59:34.639 [info] [Info  - 13:59:34] (142562)   Received 6 paths from interpreter
2024-11-06 13:59:34.642 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10
2024-11-06 13:59:34.644 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10/lib-dynload
2024-11-06 13:59:34.647 [info] [Info  - 13:59:34] (142562)     file:///home/cmkishores/.local/lib/python3.10/site-packages
2024-11-06 13:59:34.650 [info] [Info  - 13:59:34] (142562)     file:///usr/local/lib/python3.10/dist-packages
2024-11-06 13:59:34.653 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3/dist-packages
2024-11-06 13:59:34.655 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10/dist-packages
2024-11-06 13:59:34.658 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10'
2024-11-06 13:59:34.661 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10'
2024-11-06 13:59:34.664 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/lib-dynload'
2024-11-06 13:59:34.667 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/lib-dynload'
2024-11-06 13:59:34.668 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.670 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.672 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.673 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.674 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.675 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.675 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.676 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.677 [info] (142562) [BG(2)]   binding: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/question_reports_dashboard/views.py (3ms)
2024-11-06 13:59:34.677 [info] (142562) [BG(2)] indexing: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/question_reports_dashboard/views.py [found 2] (17ms)
2024-11-06 13:59:34.678 [info] (142562) Indexing Done: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/question_reports_dashboard/views.py
2024-11-06 13:59:34.678 [info] (142562) Attempting to resolve using local imports: __builtins__
2024-11-06 13:59:34.678 [info] (142562) Attempting to resolve using root path 'file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz'
2024-11-06 13:59:34.679 [info] (142562) Attempting to resolve using root path 'file:///home/cmkishores/Code/entrime/entrime/entri/api_v7'
2024-11-06 13:59:34.679 [info] (142562) Attempting to resolve using root path 'file:///home/cmkishores/Code/entrime/entrime/entri'
2024-11-06 13:59:34.680 [info] (142562) [BG(2)] indexing: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/__init__.py ...
2024-11-06 13:59:34.680 [info] (142562) [BG(2)]   parsing: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/__init__.py [fs read 0ms] (0ms)
2024-11-06 13:59:34.680 [info] (142562) [BG(2)]   binding: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/__init__.py (1ms)
2024-11-06 13:59:34.681 [info] (142562) [BG(2)] indexing: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/__init__.py [found 0] (1ms)
2024-11-06 13:59:34.687 [info] (142562) Indexing Done: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/__init__.py
2024-11-06 13:59:34.688 [info] (142562) [BG(2)] indexing: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/burst_mode.py ...
2024-11-06 13:59:34.691 [info] (142562) [BG(2)]   parsing: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/burst_mode.py [fs read 0ms] (3ms)
2024-11-06 13:59:34.694 [info] (142562) [BG(2)]   binding: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/burst_mode.py (1ms)
2024-11-06 13:59:34.697 [info] (142562) [BG(2)] indexing: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/burst_mode.py [found 3] (6ms)
2024-11-06 13:59:34.700 [info] (142562) Indexing Done: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/burst_mode.py
2024-11-06 13:59:34.703 [info] (142562) [BG(2)] indexing: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/hourly_test.py ...
2024-11-06 13:59:34.706 [info] (142562) [BG(2)]   parsing: file:///home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/hourly_test.py [fs read 0ms] (4ms)
2024-11-06 13:59:34.708 [info] [Info  - 13:59:34] (142562) Could not resolve source for 'django.utils' in file '/home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/hourly_test.py'
2024-11-06 13:59:34.711 [info] [Info  - 13:59:34] (142562)   Looking in root directory of execution environment 'file:///home/cmkishores/Code/entrime/entrime'
2024-11-06 13:59:34.714 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/Code/entrime/entrime'
2024-11-06 13:59:34.716 [info] [Info  - 13:59:34] (142562)   Finding python search paths
2024-11-06 13:59:34.719 [info] [Info  - 13:59:34] (142562)   Executing interpreter: '/bin/python3'
2024-11-06 13:59:34.722 [info] [Info  - 13:59:34] (142562)   Skipping '/usr/lib/python310.zip' because it is not a valid directory
2024-11-06 13:59:34.725 [info] [Info  - 13:59:34] (142562)   Received 6 paths from interpreter
2024-11-06 13:59:34.728 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10
2024-11-06 13:59:34.731 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10/lib-dynload
2024-11-06 13:59:34.733 [info] [Info  - 13:59:34] (142562)     file:///home/cmkishores/.local/lib/python3.10/site-packages
2024-11-06 13:59:34.737 [info] [Info  - 13:59:34] (142562)     file:///usr/local/lib/python3.10/dist-packages
2024-11-06 13:59:34.740 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3/dist-packages
2024-11-06 13:59:34.743 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10/dist-packages
2024-11-06 13:59:34.745 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10'
2024-11-06 13:59:34.748 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10'
2024-11-06 13:59:34.750 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/lib-dynload'
2024-11-06 13:59:34.752 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/lib-dynload'
2024-11-06 13:59:34.754 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.755 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.756 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.757 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.758 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.759 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.759 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.760 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.761 [info] [Info  - 13:59:34] (142562) Could not resolve source for 'django.conf' in file '/home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/hourly_test.py'
2024-11-06 13:59:34.761 [info] [Info  - 13:59:34] (142562)   Looking in root directory of execution environment 'file:///home/cmkishores/Code/entrime/entrime'
2024-11-06 13:59:34.761 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/Code/entrime/entrime'
2024-11-06 13:59:34.767 [info] [Info  - 13:59:34] (142562)   Finding python search paths
2024-11-06 13:59:34.770 [info] [Info  - 13:59:34] (142562)   Executing interpreter: '/bin/python3'
2024-11-06 13:59:34.773 [info] [Info  - 13:59:34] (142562)   Skipping '/usr/lib/python310.zip' because it is not a valid directory
2024-11-06 13:59:34.776 [info] [Info  - 13:59:34] (142562)   Received 6 paths from interpreter
2024-11-06 13:59:34.778 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10
2024-11-06 13:59:34.781 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10/lib-dynload
2024-11-06 13:59:34.784 [info] [Info  - 13:59:34] (142562)     file:///home/cmkishores/.local/lib/python3.10/site-packages
2024-11-06 13:59:34.787 [info] [Info  - 13:59:34] (142562)     file:///usr/local/lib/python3.10/dist-packages
2024-11-06 13:59:34.791 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3/dist-packages
2024-11-06 13:59:34.793 [info] [Info  - 13:59:34] (142562)     file:///usr/lib/python3.10/dist-packages
2024-11-06 13:59:34.796 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10'
2024-11-06 13:59:34.799 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10'
2024-11-06 13:59:34.800 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/lib-dynload'
2024-11-06 13:59:34.801 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/lib-dynload'
2024-11-06 13:59:34.803 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.804 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///home/cmkishores/.local/lib/python3.10/site-packages'
2024-11-06 13:59:34.806 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.807 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/local/lib/python3.10/dist-packages'
2024-11-06 13:59:34.808 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.808 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3/dist-packages'
2024-11-06 13:59:34.809 [info] [Info  - 13:59:34] (142562)   Looking in python search path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.810 [info] [Info  - 13:59:34] (142562)   Attempting to resolve using root path 'file:///usr/lib/python3.10/dist-packages'
2024-11-06 13:59:34.810 [info] [Info  - 13:59:34] (142562) Could not resolve source for 'django.db.models' in file '/home/cmkishores/Code/entrime/entrime/entri/api_v7/quiz/hourly_test.py'
2024-11-06 13:59:34.810 [info] [Error - 13:59:34] Stopping server timed out
2024-11-06 13:59:42.729 [info] (Client) Pylance async client (2024.8.1) started with python extension (2024.12.3)
2024-11-06 13:59:44.003 [info] [Info  - 13:59:44] (147760) Pylance language server 2024.8.1 (pyright version 1.1.373, commit ee424479) starting
2024-11-06 13:59:44.004 [info] [Info  - 13:59:44] (147760) Server root directory: file:///home/cmkishores/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist
2024-11-06 13:59:44.005 [info] [Info  - 13:59:44] (147760) Starting service instance "entri"
2024-11-06 13:59:44.024 [info] [Info  - 13:59:44] (147760) Starting service instance "entrime"
2024-11-06 13:59:44.266 [info] (147760) No configuration file found.
2024-11-06 13:59:44.272 [info] (147760) No pyproject.toml file found.
2024-11-06 13:59:44.302 [info] [Info  - 13:59:44] (147760) Setting pythonPath for service "entri": "/home/cmkishores/.virtualenvs/entri/bin/python"
2024-11-06 13:59:44.315 [info] [Info  - 13:59:44] (147760) Setting environmentName for service "entri": "3.10.12 (entri venv)"
2024-11-06 13:59:44.336 [info] [Info  - 13:59:44] (147760) No include entries specified; assuming /home/cmkishores/Code/entrime/entrime/entri
2024-11-06 13:59:44.350 [info] [Info  - 13:59:44] (147760) Assuming Python version 3.10.12.final.0
2024-11-06 13:59:44.414 [info] (147760) Assuming Python platform Linux
2024-11-06 13:59:44.449 [info] [Info  - 13:59:44] (147760) Search paths for file:///home/cmkishores/Code/entrime/entrime/entri
2024-11-06 13:59:44.504 [info] [Info  - 13:59:44] (147760)   /home/cmkishores/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist/typeshed-fallback/stdlib
2024-11-06 13:59:44.509 [info] [Info  - 13:59:44] (147760)   /home/cmkishores/Code/entrime/entrime/entri
2024-11-06 13:59:44.526 [info] [Info  - 13:59:44] (147760)   /home/cmkishores/Code/entrime/entrime/entri/typings
2024-11-06 13:59:44.602 [info] [Info  - 13:59:44] (147760)   /home/cmkishores/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist/typeshed-fallback/stubs/...
2024-11-06 13:59:44.622 [info] [Info  - 13:59:44] (147760)   /home/cmkishores/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist/bundled/stubs
2024-11-06 13:59:44.623 [info] [Info  - 13:59:44] (147760)   /usr/lib/python3.10
2024-11-06 13:59:44.624 [info] [Info  - 13:59:44] (147760)   /usr/lib/python3.10/lib-dynload
2024-11-06 13:59:44.644 [info] [Info  - 13:59:44] (147760)   /home/cmkishores/.virtualenvs/entri/lib/python3.10/site-packages
2024-11-06 13:59:44.657 [info] [Info  - 13:59:44] (147760) Adding fs watcher for library directories:
 file:///usr/lib/python3.10
file:///usr/lib/python3.10/lib-dynload
file:///home/cmkishores/.virtualenvs/entri/lib/python3.10/site-packages
2024-11-06 13:59:44.664 [info] [Info  - 13:59:44] (147760) Adding fs watcher for directories:
 file:///home/cmkishores/Code/entrime/entrime/entri
2024-11-06 13:59:44.684 [info] (147760) Searching for source files
2024-11-06 13:59:45.409 [info] [Info  - 13:59:45] (147760) Found 1582 source files
2024-11-06 13:59:45.420 [info] (147760) pytest configurations: {"message":"request cancelled","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-11-06 13:59:45.421 [info] (147760) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-11-06 13:59:45.423 [info] (147760) Server settings returned for workspace: file:///home/cmkishores/Code/entrime/entrime: {
  "autoSearchPaths": true,
  "disableLanguageServices": false,
  "openFilesOnly": true,
  "useLibraryCodeForTypes": true,
  "watchForSourceChanges": true,
  "watchForLibraryChanges": true,
  "watchForConfigChanges": true,
  "typeCheckingMode": "off",
  "diagnosticSeverityOverrides": {
    "reportShadowedImports": "warning"
  },
  "logLevel": "log",
  "autoImportCompletions": false,
  "indexing": true,
  "completeFunctionParens": false,
  "enableExtractCodeAction": true,
  "indexOptions": {
    "packageDepths": [
      [
        "django",
        10,
        true
      ]
    ],
    "regenerateStdLibIndices": false,
    "localStorageUri": {
      "_key": "/home/cmkishores/Code/entrime/entrime",
      "_filePath": "/home/cmkishores/Code/entrime/entrime",
      "_query": "",
      "_fragment": "",
      "_originalString": "file:///home/cmkishores/Code/entrime/entrime",
      "_isCaseSensitive": true,
      "_formattedString": "file:///home/cmkishores/Code/entrime/entrime",
      "_normalizedPath": "/home/cmkishores/Code/entrime/entrime"
    },
    "userFileIndexingLimit": 10000
  },
  "variableInlayTypeHints": false,
  "callArgumentNameInlayHints": "all",
  "functionReturnInlayTypeHints": true,
  "pytestParametersInlayTypeHints": false,
  "importFormat": "absolute",
  "includeFileSpecs": [],
  "excludeFileSpecs": [],
  "ignoreFileSpecs": [],
  "formatOnType": true,
  "taskListTokens": [],
  "enablePytestSupport": true,
  "gotoDefinitionInStringLiteral": true,
  "remapDiagnostics": false,
  "intelliCodeEnabled": true,
  "pythonPath": {
    "_key": "/bin/python3",
    "_filePath": "/bin/python3",
    "_query": "",
    "_fragment": "",
    "_isCaseSensitive": true
  },
  "pythonEnvironmentName": "3.10.12 (global)",
  "disableTaggedHints": false,
  "fixAll": [],
  "extraCommitChars": false,
  "autoFormatStrings": false,
  "autoIndent": true,
  "supportRestructuredText": false,
  "cacheLSPData": false,
  "reportExtraTelemetry": false,
  "nodeExecutable": "",
  "editorIndentConfig": {
    "defaultTabSequence": "    ",
    "tabSize": 4
  }
}
2024-11-06 13:59:45.426 [info] (147760) No configuration file found.
2024-11-06 13:59:45.427 [info] (147760) No pyproject.toml file found.
2024-11-06 13:59:45.428 [info] [Info  - 13:59:45] (147760) Setting pythonPath for service "entrime": "/bin/python3"
2024-11-06 13:59:45.428 [info] [Info  - 13:59:45] (147760) Setting environmentName for service "entrime": "3.10.12 (global)"
2024-11-06 13:59:45.429 [info] [Info  - 13:59:45] (147760) No include entries specified; assuming /home/cmkishores/Code/entrime/entrime
2024-11-06 13:59:45.430 [info] [Info  - 13:59:45] (147760) Auto-excluding **/node_modules
2024-11-06 13:59:45.430 [info] [Info  - 13:59:45] (147760) Auto-excluding **/__pycache__
2024-11-06 13:59:45.431 [info] [Info  - 13:59:45] (147760) Auto-excluding **/.*
2024-11-06 13:59:45.550 [info] [Info  - 13:59:45] (147760) Assuming Python version 3.10.12.final.0
2024-11-06 13:59:45.551 [info] (147760) Assuming Python platform Linux
2024-11-06 13:59:45.741 [info] [Info  - 13:59:45] (147760) Search paths for file:///home/cmkishores/Code/entrime/entrime
2024-11-06 13:59:45.742 [info] [Info  - 13:59:45] (147760)   /home/cmkishores/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist/typeshed-fallback/stdlib
2024-11-06 13:59:45.742 [info] [Info  - 13:59:45] (147760)   /home/cmkishores/Code/entrime/entrime
2024-11-06 13:59:45.743 [info] [Info  - 13:59:45] (147760)   /home/cmkishores/Code/entrime/entrime/typings
2024-11-06 13:59:45.744 [info] [Info  - 13:59:45] (147760)   /home/cmkishores/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist/typeshed-fallback/stubs/...
2024-11-06 13:59:45.744 [info] [Info  - 13:59:45] (147760)   /home/cmkishores/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist/bundled/stubs
2024-11-06 13:59:45.745 [info] [Info  - 13:59:45] (147760)   /usr/lib/python3.10
2024-11-06 13:59:45.745 [info] [Info  - 13:59:45] (147760)   /usr/lib/python3.10/lib-dynload
2024-11-06 13:59:45.746 [info] [Info  - 13:59:45] (147760)   /home/cmkishores/.local/lib/python3.10/site-packages
2024-11-06 13:59:45.746 [info] [Info  - 13:59:45] (147760)   /usr/local/lib/python3.10/dist-packages
2024-11-06 13:59:45.747 [info] [Info  - 13:59:45] (147760)   /usr/lib/python3/dist-packages
2024-11-06 13:59:45.748 [info] [Info  - 13:59:45] (147760)   /usr/lib/python3.10/dist-packages
2024-11-06 13:59:45.748 [info] [Info  - 13:59:45] (147760) Adding fs watcher for library directories:
 file:///usr/lib/python3.10
file:///usr/lib/python3.10/lib-dynload
file:///home/cmkishores/.local/lib/python3.10/site-packages
file:///usr/local/lib/python3.10/dist-packages
file:///usr/lib/python3/dist-packages
file:///usr/lib/python3.10/dist-packages
2024-11-06 13:59:45.749 [info] [Info  - 13:59:45] (147760) Adding fs watcher for directories:
 file:///home/cmkishores/Code/entrime/entrime
2024-11-06 13:59:45.749 [info] (147760) Searching for source files
2024-11-06 13:59:47.194 [info] [Info  - 13:59:47] (147760) Found 3811 source files
2024-11-06 13:59:47.196 [info] (147760) pytest configurations: {"message":"request cancelled","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-11-06 13:59:47.201 [info] (147760) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-11-06 13:59:47.201 [info] [Info  - 13:59:47] (147760) Background analysis(1) root directory: file:///home/cmkishores/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist
2024-11-06 13:59:47.202 [info] [Info  - 13:59:47] (147760) Background analysis(1) started
2024-11-06 13:59:47.202 [info] (147760) pytest configurations: {"message":"request cancelled","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-11-06 13:59:47.203 [info] (147760) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-11-06 13:59:47.204 [info] [Info  - 13:59:47] (147760) Background analysis(2) root directory: file:///home/cmkishores/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist
2024-11-06 13:59:47.205 [info] [Info  - 13:59:47] (147760) Background analysis(2) started
2024-11-06 13:59:47.291 [info] (147760) pytest configurations: {"message":"request cancelled","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-11-06 13:59:47.505 [info] (147760) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Nov 6, 2024
@cmkishore
Copy link
Author

First time posting a report like this so excuse if any details are missing, ready to provide as need arises.

@rchiodo
Copy link
Contributor

rchiodo commented Nov 6, 2024

Your pylance looks to be 3 months out of date, but if this is for Cursor, Pylance isn't licensed to run there.

@cmkishore
Copy link
Author

Hi @rchiodo ,
Thanks for the information.
I only checked now to find that the publisher for Cursor is different and the version is also really old. Can you help me debug my issue her by any chance? What I'm looking for is why the pylance is failing to register all my classes during indexing.

@rchiodo
Copy link
Contributor

rchiodo commented Nov 8, 2024

Can you reproduce your problem in VS code? The first step is to update to the latest and see if it reproduces there too.

@KacieKK KacieKK added the waiting for user response Requires more information from user label Nov 14, 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 waiting for user response Requires more information from user
Projects
None yet
Development

No branches or pull requests

3 participants