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

Semantic coloring is not correct for imports and variables #6379

Open
rchiodo opened this issue Sep 11, 2024 · 13 comments
Open

Semantic coloring is not correct for imports and variables #6379

rchiodo opened this issue Sep 11, 2024 · 13 comments
Assignees
Labels
needs repro Issue has not been reproduced yet user responded Was "waiting for user response" and they responded

Comments

@rchiodo
Copy link
Contributor

rchiodo commented Sep 11, 2024

@rchiodo I have similar bug:

As you can see, all libraries and variables are used:

x

y

Originally posted by @IamRezaMousavi in #6358

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Sep 11, 2024
@rchiodo
Copy link
Contributor Author

rchiodo commented Sep 11, 2024

@IamRezaMousavi, can you include the contents of an output log as described here:
https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue

I can't reproduce this problem myself.

Recording.2024-09-11.091309.mp4

@rchiodo rchiodo added the waiting for user response Requires more information from user label Sep 11, 2024
@IamRezaMousavi
Copy link

this is the log:

2024-09-14 12:00:31.913 [info] (Client) Pylance async client (2024.9.1) started with python extension (2024.14.1)
2024-09-14 12:00:32.229 [info] [Info  - 12:00:32 PM] (13135) Server root directory: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist
2024-09-14 12:00:32.230 [info] [Info  - 12:00:32 PM] (13135) Pylance language server 2024.9.1 (pyright version 1.1.378, commit ce64adc1) starting
2024-09-14 12:00:32.230 [info] [Info  - 12:00:32 PM] (13135) Starting service instance "a"
2024-09-14 12:00:32.293 [info] [Info  - 12:00:32 PM] (13135) Setting environmentName for service "a": "3.12.3 (venv venv)"
2024-09-14 12:00:32.293 [info] [Info  - 12:00:32 PM] (13135) Setting pythonPath for service "a": "/home/reza/Desktop/a/venv/bin/python"
2024-09-14 12:00:32.295 [info] [Info  - 12:00:32 PM] (13135) No include entries specified; assuming /home/reza/Desktop/a
2024-09-14 12:00:32.296 [info] [Info  - 12:00:32 PM] (13135) Auto-excluding **/node_modules
2024-09-14 12:00:32.296 [info] [Info  - 12:00:32 PM] (13135) Auto-excluding **/__pycache__
2024-09-14 12:00:32.296 [info] [Info  - 12:00:32 PM] (13135) Auto-excluding **/.*
2024-09-14 12:00:32.377 [info] [Info  - 12:00:32 PM] (13135) Assuming Python version 3.12.3.final.0
2024-09-14 12:00:32.505 [info] [Info  - 12:00:32 PM] (13135) Auto-excluding /home/reza/Desktop/a/venv
2024-09-14 12:00:32.514 [info] [Info  - 12:00:32 PM] (13135) Found 7 source files
2024-09-14 12:00:33.328 [info] [Info  - 12:00:33 PM] (13135) Background analysis(1) root directory: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist
2024-09-14 12:00:33.328 [info] [Info  - 12:00:33 PM] (13135) Background analysis(1) started
2024-09-14 12:00:33.629 [info] [Info  - 12:00:33 PM] (13135) Indexer background runner(2) root directory: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist (index)
2024-09-14 12:00:33.629 [info] [Info  - 12:00:33 PM] (13135) Indexing(2) started
2024-09-14 12:00:34.236 [info] [Info  - 12:00:34 PM] (13135) scanned(2) 72 files over 1 exec env
2024-09-14 12:00:34.534 [info] [Info  - 12:00:34 PM] (13135) indexed(2) 60 files over 1 exec env
2024-09-14 12:00:34.609 [info] [Info  - 12:00:34 PM] (13135) Indexing finished(2).

Screenshot from 2024-09-14 12-04-28

@IamRezaMousavi
Copy link

log with trace level:

2024-09-14 12:05:44.585 [info] (13135) No configuration file found.
2024-09-14 12:05:44.585 [info] (13135) No pyproject.toml file found.
2024-09-14 12:05:44.585 [info] [Info  - 12:05:44 PM] (13135) Setting environmentName for service "a": "3.12.3 (venv venv)"
2024-09-14 12:05:44.585 [info] [Info  - 12:05:44 PM] (13135) Setting pythonPath for service "a": "/home/reza/Desktop/a/venv/bin/python"
2024-09-14 12:05:44.585 [info] [Info  - 12:05:44 PM] (13135) No include entries specified; assuming /home/reza/Desktop/a
2024-09-14 12:05:44.586 [info] [Info  - 12:05:44 PM] (13135) Auto-excluding **/node_modules
2024-09-14 12:05:44.586 [info] [Info  - 12:05:44 PM] (13135) Auto-excluding **/__pycache__
2024-09-14 12:05:44.586 [info] [Info  - 12:05:44 PM] (13135) Auto-excluding **/.*
2024-09-14 12:05:44.619 [info] [Info  - 12:05:44 PM] (13135) Assuming Python version 3.12.3.final.0
2024-09-14 12:05:44.619 [info] (13135) Assuming Python platform Linux
2024-09-14 12:05:44.666 [info] [Info  - 12:05:44 PM] (13135) Search paths for file:///home/reza/Desktop/a
2024-09-14 12:05:44.667 [info] [Info  - 12:05:44 PM] (13135)   /home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib
2024-09-14 12:05:44.667 [info] [Info  - 12:05:44 PM] (13135)   /home/reza/Desktop/a
2024-09-14 12:05:44.667 [info] [Info  - 12:05:44 PM] (13135)   /home/reza/Desktop/a/typings
2024-09-14 12:05:44.667 [info] [Info  - 12:05:44 PM] (13135)   /home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stubs/...
2024-09-14 12:05:44.667 [info] [Info  - 12:05:44 PM] (13135)   /home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs
2024-09-14 12:05:44.667 [info] [Info  - 12:05:44 PM] (13135)   /usr/lib/python3.12
2024-09-14 12:05:44.668 [info] [Info  - 12:05:44 PM] (13135)   /usr/lib/python3.12/lib-dynload
2024-09-14 12:05:44.668 [info] [Info  - 12:05:44 PM] (13135)   /home/reza/Desktop/a/venv/lib/python3.12/site-packages
2024-09-14 12:05:44.668 [info] [Info  - 12:05:44 PM] (13135) Adding fs watcher for library directories:
 file:///usr/lib/python3.12
file:///usr/lib/python3.12/lib-dynload
file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages
2024-09-14 12:05:44.668 [info] [Info  - 12:05:44 PM] (13135) Adding fs watcher for directories:
 file:///home/reza/Desktop/a
2024-09-14 12:05:44.668 [info] (13135) Searching for source files
2024-09-14 12:05:44.668 [info] [Info  - 12:05:44 PM] (13135) Auto-excluding /home/reza/Desktop/a/venv
2024-09-14 12:05:44.670 [info] [Info  - 12:05:44 PM] (13135) Found 7 source files
2024-09-14 12:05:44.748 [info] (13135) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-09-14 12:05:44.749 [info] (13135) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-09-14 12:05:44.790 [info] (13135) Attempting to resolve using local imports: __builtins__
2024-09-14 12:05:44.793 [info] (13135) [BG(1)] analyzing: file:///home/reza/Desktop/a/udp_handler.py ...
2024-09-14 12:05:44.793 [info] (13135) [BG(1)]   parsing: file:///home/reza/Desktop/a/udp_handler.py (47ms)
2024-09-14 12:05:44.877 [info] (13135) [BG(1)]   parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 0ms] (81ms)
2024-09-14 12:05:44.909 [info] (13135) [BG(1)]   binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/builtins.pyi (34ms)
2024-09-14 12:05:44.931 [info] (13135) [BG(1)]   binding: file:///home/reza/Desktop/a/udp_handler.py (21ms)
2024-09-14 12:05:44.973 [info] (13135) [BG(1)]   checking: file:///home/reza/Desktop/a/udp_handler.py ...
2024-09-14 12:05:44.974 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/typing.pyi [fs read 0ms] (36ms)
2024-09-14 12:05:44.984 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/typing.pyi (9ms)
2024-09-14 12:05:44.997 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/types.pyi [fs read 1ms] (13ms)
2024-09-14 12:05:45.004 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/types.pyi (7ms)
2024-09-14 12:05:45.012 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (6ms)
2024-09-14 12:05:45.019 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (2ms)
2024-09-14 12:05:45.023 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (1ms)
2024-09-14 12:05:45.025 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/abc.pyi (2ms)
2024-09-14 12:05:45.040 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/ipaddress.pyi [fs read 0ms] (13ms)
2024-09-14 12:05:45.042 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/ipaddress.pyi (2ms)
2024-09-14 12:05:45.099 [info] (13135) [BG(1)]     parsing: file:///usr/lib/python3.12/ipaddress.py [fs read 0ms] (56ms)
2024-09-14 12:05:45.130 [info] (13135) [BG(1)]     binding: file:///usr/lib/python3.12/ipaddress.py (29ms)
2024-09-14 12:05:45.136 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/pprint.pyi [fs read 0ms] (1ms)
2024-09-14 12:05:45.136 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/pprint.pyi (1ms)
2024-09-14 12:05:45.167 [info] (13135) [BG(1)]     parsing: file:///usr/lib/python3.12/pprint.py [fs read 3ms] (28ms)
2024-09-14 12:05:45.174 [info] (13135) [BG(1)]     binding: file:///usr/lib/python3.12/pprint.py (7ms)
2024-09-14 12:05:45.204 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/socket.pyi [fs read 1ms] (28ms)
2024-09-14 12:05:45.214 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/socket.pyi (10ms)
2024-09-14 12:05:45.267 [info] (13135) [BG(1)]     parsing: file:///usr/lib/python3.12/socket.py [fs read 0ms] (48ms)
2024-09-14 12:05:45.286 [info] (13135) [BG(1)]     binding: file:///usr/lib/python3.12/socket.py ...
2024-09-14 12:05:45.286 [info] (13135) [BG(1)]       parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_socket.pyi [fs read 1ms] (21ms)
2024-09-14 12:05:45.307 [info] (13135) [BG(1)]       binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_socket.pyi (20ms)
2024-09-14 12:05:45.325 [info] (13135) [BG(1)]     binding: file:///usr/lib/python3.12/socket.py (60ms)
2024-09-14 12:05:45.332 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/datetime.pyi [fs read 0ms] (6ms)
2024-09-14 12:05:45.340 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/datetime.pyi (7ms)
2024-09-14 12:05:45.344 [info] (13135) [BG(1)]     parsing: file:///usr/lib/python3.12/datetime.py [fs read 0ms] (2ms)
2024-09-14 12:05:45.345 [info] [Info  - 12:05:45 PM] (13135) Could not import '_datetime' in file '/usr/lib/python3.12/datetime.py'
2024-09-14 12:05:45.346 [info] [Info  - 12:05:45 PM] (13135)   Looking in stubPath 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:05:45.346 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:05:45.347 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:05:45.347 [info] [Info  - 12:05:45 PM] (13135)   Looking in root directory of execution environment 'file:///home/reza/Desktop/a'
2024-09-14 12:05:45.355 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a'
2024-09-14 12:05:45.355 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///home/reza/Desktop/a'
2024-09-14 12:05:45.355 [info] [Info  - 12:05:45 PM] (13135)   Looking for typeshed stdlib path
2024-09-14 12:05:45.355 [info] [Info  - 12:05:45 PM] (13135)   Looking for typeshed stdlib path
2024-09-14 12:05:45.355 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib'
2024-09-14 12:05:45.357 [info] [Info  - 12:05:45 PM] (13135)   Typeshed path not found
2024-09-14 12:05:45.358 [info] [Info  - 12:05:45 PM] (13135)   Finding python search paths
2024-09-14 12:05:45.358 [info] [Info  - 12:05:45 PM] (13135)   Executing interpreter: '/home/reza/Desktop/a/venv/bin/python'
2024-09-14 12:05:45.358 [info] [Info  - 12:05:45 PM] (13135)   Skipping '/usr/lib/python312.zip' because it is not a valid directory
2024-09-14 12:05:45.359 [info] [Info  - 12:05:45 PM] (13135)   Received 3 paths from interpreter
2024-09-14 12:05:45.359 [info] [Info  - 12:05:45 PM] (13135)     file:///usr/lib/python3.12
2024-09-14 12:05:45.361 [info] [Info  - 12:05:45 PM] (13135)     file:///usr/lib/python3.12/lib-dynload
2024-09-14 12:05:45.361 [info] [Info  - 12:05:45 PM] (13135)     file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages
2024-09-14 12:05:45.361 [info] [Info  - 12:05:45 PM] (13135)   Looking in python search path 'file:///usr/lib/python3.12'
2024-09-14 12:05:45.361 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///usr/lib/python3.12'
2024-09-14 12:05:45.361 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///usr/lib/python3.12'
2024-09-14 12:05:45.361 [info] [Info  - 12:05:45 PM] (13135)   Looking in python search path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:05:45.361 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:05:45.361 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:05:45.361 [info] [Info  - 12:05:45 PM] (13135)   Looking in python search path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:05:45.363 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:05:45.364 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:05:45.364 [info] [Info  - 12:05:45 PM] (13135)   Looking in bundled stubs path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:05:45.364 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:05:45.364 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:05:45.364 [info] [Info  - 12:05:45 PM] (13135)   Looking for typeshed third-party path
2024-09-14 12:05:45.364 [info] [Info  - 12:05:45 PM] (13135)   Looking for typeshed stubs path
2024-09-14 12:05:45.365 [info] [Info  - 12:05:45 PM] (13135)   Typeshed path not found
2024-09-14 12:05:45.365 [info] [Info  - 12:05:45 PM] (13135) Could not import '_datetime' in file '/usr/lib/python3.12/datetime.py'
2024-09-14 12:05:45.365 [info] [Info  - 12:05:45 PM] (13135)   Looking in stubPath 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:05:45.365 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:05:45.365 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:05:45.365 [info] [Info  - 12:05:45 PM] (13135)   Looking in root directory of execution environment 'file:///home/reza/Desktop/a'
2024-09-14 12:05:45.365 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a'
2024-09-14 12:05:45.365 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///home/reza/Desktop/a'
2024-09-14 12:05:45.365 [info] [Info  - 12:05:45 PM] (13135)   Looking for typeshed stdlib path
2024-09-14 12:05:45.366 [info] [Info  - 12:05:45 PM] (13135)   Looking for typeshed stdlib path
2024-09-14 12:05:45.366 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib'
2024-09-14 12:05:45.366 [info] [Info  - 12:05:45 PM] (13135)   Typeshed path not found
2024-09-14 12:05:45.366 [info] [Info  - 12:05:45 PM] (13135)   Finding python search paths
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Executing interpreter: '/home/reza/Desktop/a/venv/bin/python'
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Skipping '/usr/lib/python312.zip' because it is not a valid directory
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Received 3 paths from interpreter
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)     file:///usr/lib/python3.12
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)     file:///usr/lib/python3.12/lib-dynload
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)     file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Looking in python search path 'file:///usr/lib/python3.12'
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///usr/lib/python3.12'
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///usr/lib/python3.12'
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Looking in python search path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Looking in python search path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:05:45.367 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:05:45.368 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:05:45.368 [info] [Info  - 12:05:45 PM] (13135)   Looking in bundled stubs path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:05:45.368 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve stub package using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:05:45.368 [info] [Info  - 12:05:45 PM] (13135)   Attempting to resolve using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:05:45.368 [info] [Info  - 12:05:45 PM] (13135)   Looking for typeshed third-party path
2024-09-14 12:05:45.368 [info] [Info  - 12:05:45 PM] (13135)   Looking for typeshed stubs path
2024-09-14 12:05:45.368 [info] [Info  - 12:05:45 PM] (13135)   Typeshed path not found
2024-09-14 12:05:45.403 [info] (13135) [BG(1)]     binding: file:///usr/lib/python3.12/datetime.py ...
2024-09-14 12:05:45.403 [info] (13135) [BG(1)]       parsing: file:///usr/lib/python3.12/_pydatetime.py [fs read 1ms] (45ms)
2024-09-14 12:05:45.428 [info] (13135) [BG(1)]       binding: file:///usr/lib/python3.12/_pydatetime.py (32ms)
2024-09-14 12:05:45.429 [info] (13135) [BG(1)]     binding: file:///usr/lib/python3.12/datetime.py (81ms)
2024-09-14 12:05:45.433 [info] (13135) [BG(1)]     parsing: file:///home/reza/Desktop/a/logger.py [fs read 0ms] (3ms)
2024-09-14 12:05:45.433 [info] (13135) [BG(1)]     binding: file:///home/reza/Desktop/a/logger.py (1ms)
2024-09-14 12:05:45.439 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/logging/__init__.pyi [fs read 0ms] (6ms)
2024-09-14 12:05:45.442 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/logging/__init__.pyi (3ms)
2024-09-14 12:05:45.443 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stubs/colorama/colorama/__init__.pyi [fs read 1ms] (1ms)
2024-09-14 12:05:45.444 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stubs/colorama/colorama/__init__.pyi (0ms)
2024-09-14 12:05:45.445 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stubs/colorama/colorama/initialise.pyi [fs read 0ms] (1ms)
2024-09-14 12:05:45.445 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stubs/colorama/colorama/initialise.pyi (1ms)
2024-09-14 12:05:45.449 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (3ms)
2024-09-14 12:05:45.451 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/typing_extensions.pyi (2ms)
2024-09-14 12:05:45.454 [info] (13135) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/collections/abc.pyi [fs read 0ms] (1ms)
2024-09-14 12:05:45.458 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/collections/abc.pyi ...
2024-09-14 12:05:45.459 [info] (13135) [BG(1)]       parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_collections_abc.pyi [fs read 0ms] (1ms)
2024-09-14 12:05:45.460 [info] (13135) [BG(1)]       binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_collections_abc.pyi (1ms)
2024-09-14 12:05:45.462 [info] (13135) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/collections/abc.pyi (2ms)
2024-09-14 12:05:45.467 [info] (13135) [BG(1)]     parsing: file:///home/reza/Desktop/a/storage.py [fs read 0ms] (2ms)
2024-09-14 12:05:45.467 [info] (13135) [BG(1)]     binding: file:///home/reza/Desktop/a/storage.py (1ms)
2024-09-14 12:05:45.478 [info] (13135) [BG(1)]   checking: file:///home/reza/Desktop/a/udp_handler.py (547ms)
2024-09-14 12:05:45.478 [info] [Info  - 12:05:45 PM] (13135) Heap stats: total_memory_size=15865MB, total_free_size=11678MB, total_heap_size=81MB, used_heap_size=58MB, cross_worker_used_heap_size=58MB, total_physical_size=80MB, total_available_size=4035MB, heap_size_limit=4096MB
2024-09-14 12:05:45.478 [info] (13135) [BG(1)] analyzing: file:///home/reza/Desktop/a/udp_handler.py (732ms)
2024-09-14 12:05:45.502 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/consts.py ...
2024-09-14 12:05:45.502 [info] (13135) [BG(1)]   parsing: file:///home/reza/Desktop/a/consts.py [fs read 0ms] (1ms)
2024-09-14 12:05:45.504 [info] (13135) [BG(1)]   binding: file:///home/reza/Desktop/a/consts.py (1ms)
2024-09-14 12:05:45.504 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/consts.py [found 5] (3ms)
2024-09-14 12:05:45.504 [info] (13135) Indexing Done: file:///home/reza/Desktop/a/consts.py
2024-09-14 12:05:45.504 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/logger.py [found 5] (0ms)
2024-09-14 12:05:45.504 [info] (13135) Indexing Done: file:///home/reza/Desktop/a/logger.py
2024-09-14 12:05:45.507 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/main.py ...
2024-09-14 12:05:45.507 [info] (13135) [BG(1)]   parsing: file:///home/reza/Desktop/a/main.py [fs read 0ms] (9ms)
2024-09-14 12:05:45.510 [info] (13135) [BG(1)]   binding: file:///home/reza/Desktop/a/main.py (3ms)
2024-09-14 12:05:45.511 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/main.py [found 42] (14ms)
2024-09-14 12:05:45.511 [info] (13135) Indexing Done: file:///home/reza/Desktop/a/main.py
2024-09-14 12:05:45.518 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/sip.py ...
2024-09-14 12:05:45.519 [info] (13135) [BG(1)]   parsing: file:///home/reza/Desktop/a/sip.py [fs read 0ms] (6ms)
2024-09-14 12:05:45.519 [info] (13135) [BG(1)]   binding: file:///home/reza/Desktop/a/sip.py (1ms)
2024-09-14 12:05:45.520 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/sip.py [found 5] (8ms)
2024-09-14 12:05:45.520 [info] (13135) Indexing Done: file:///home/reza/Desktop/a/sip.py
2024-09-14 12:05:45.521 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/storage.py [found 4] (0ms)
2024-09-14 12:05:45.521 [info] (13135) Indexing Done: file:///home/reza/Desktop/a/storage.py
2024-09-14 12:05:45.534 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/trafic_generator.py ...
2024-09-14 12:05:45.534 [info] (13135) [BG(1)]   parsing: file:///home/reza/Desktop/a/trafic_generator.py [fs read 0ms] (13ms)
2024-09-14 12:05:45.537 [info] (13135) [BG(1)]   binding: file:///home/reza/Desktop/a/trafic_generator.py (3ms)
2024-09-14 12:05:45.539 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/trafic_generator.py [found 3] (18ms)
2024-09-14 12:05:45.540 [info] (13135) Indexing Done: file:///home/reza/Desktop/a/trafic_generator.py
2024-09-14 12:05:45.550 [info] (13135) [BG(1)] indexing: file:///home/reza/Desktop/a/udp_handler.py [found 3] (1ms)
2024-09-14 12:05:45.550 [info] (13135) Indexing Done: file:///home/reza/Desktop/a/udp_handler.py
2024-09-14 12:05:45.606 [info] [Info  - 12:05:45 PM] (13135) Indexer background runner(3) root directory: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist (index)
2024-09-14 12:05:45.606 [info] [Info  - 12:05:45 PM] (13135) Indexing(3) started
2024-09-14 12:05:45.692 [info] (13135) [IDX(3)] scan packages file:///home/reza/Desktop/a ...
2024-09-14 12:05:45.692 [info] (13135) [IDX(3)]   read stdlib indices (16ms)
2024-09-14 12:05:45.844 [info] (13135) [IDX(3)] scan packages file:///home/reza/Desktop/a (168ms)
2024-09-14 12:05:45.845 [info] [Info  - 12:05:45 PM] (13135) scanned(3) 72 files over 1 exec env
2024-09-14 12:05:46.084 [info] (13135) [IDX(3)] index packages file:///home/reza/Desktop/a ...
2024-09-14 12:05:46.084 [info] (13135) [IDX(3)]   index execution environment file:///home/reza/Desktop/a ...
2024-09-14 12:05:46.084 [info] (13135) [IDX(3)]     indexing: file:///usr/lib/python3.12/__phello__/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.084 [info] (13135) [IDX(3)]     indexing: file:///usr/lib/python3.12/concurrent/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.084 [info] (13135) [IDX(3)]     indexing: file:///usr/lib/python3.12/pydoc_data/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.084 [info] (13135) [IDX(3)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/test/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.084 [info] (13135) [IDX(3)]     indexing: file:///usr/lib/python3.12/urllib/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.084 [info] (13135) [IDX(3)]     indexing: file:///usr/lib/python3.12/wsgiref/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.084 [info] (13135) [IDX(3)]     indexing: file:///usr/lib/python3.12/xmlrpc/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.084 [info] (13135) [IDX(3)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/fastapi/_compat.py [skipped: private or protected file] (0ms)
2024-09-14 12:05:46.085 [info] (13135) [IDX(3)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/mysql/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.085 [info] (13135) [IDX(3)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/scapy/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.085 [info] (13135) [IDX(3)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/shellingham/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.086 [info] (13135) [IDX(3)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/tzdata/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:05:46.094 [info] (13135) [IDX(3)]   index execution environment file:///home/reza/Desktop/a [found 1670 in 60 files] (25ms)
2024-09-14 12:05:46.094 [info] (13135) [IDX(3)] index packages file:///home/reza/Desktop/a [found 1670 in 1 exec envs] (44ms)
2024-09-14 12:05:46.094 [info] [Info  - 12:05:46 PM] (13135) indexed(3) 60 files over 1 exec env
2024-09-14 12:05:46.116 [info] [Info  - 12:05:46 PM] (13135) Indexing finished(3).
2024-09-14 12:05:46.737 [info] (13135) Attempting to resolve using local imports: __builtins__
2024-09-14 12:05:46.743 [info] (13135) [FG] parsing: file:///home/reza/Desktop/a/udp_handler.py (79ms)
2024-09-14 12:05:46.796 [info] (13135) [FG] parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 1ms] (56ms)
2024-09-14 12:05:46.832 [info] (13135) [FG] binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/builtins.pyi (37ms)
2024-09-14 12:05:46.849 [info] (13135) [FG] binding: file:///home/reza/Desktop/a/udp_handler.py (16ms)
2024-09-14 12:05:46.954 [info] (13135) [BG(1)] SemanticTokens delta previousResultId:1726302838331 at file:///home/reza/Desktop/a/udp_handler.py ...
2024-09-14 12:05:46.954 [info] (13135) [BG(1)]   parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/enum.pyi [fs read 0ms] (2ms)
2024-09-14 12:05:46.955 [info] (13135) [BG(1)]   binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/enum.pyi (1ms)
2024-09-14 12:05:47.036 [info] (13135) [BG(1)] SemanticTokens delta previousResultId:1726302838331 at file:///home/reza/Desktop/a/udp_handler.py (85ms)
2024-09-14 12:05:52.343 [info] (13135) WorkspaceFactory 0 clear
2024-09-14 12:06:10.559 [info] (Client) Pylance async client (2024.9.1) started with python extension (2024.14.1)
2024-09-14 12:06:11.468 [info] [Info  - 12:06:11 PM] (14347) Server root directory: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist
2024-09-14 12:06:11.469 [info] [Info  - 12:06:11 PM] (14347) Pylance language server 2024.9.1 (pyright version 1.1.378, commit ce64adc1) starting
2024-09-14 12:06:11.469 [info] [Info  - 12:06:11 PM] (14347) Starting service instance "a"
2024-09-14 12:06:11.509 [info] (14347) No configuration file found.
2024-09-14 12:06:11.510 [info] (14347) No pyproject.toml file found.
2024-09-14 12:06:11.512 [info] [Info  - 12:06:11 PM] (14347) Setting environmentName for service "a": "3.12.3 (venv venv)"
2024-09-14 12:06:11.514 [info] [Info  - 12:06:11 PM] (14347) Setting pythonPath for service "a": "/home/reza/Desktop/a/venv/bin/python"
2024-09-14 12:06:11.515 [info] [Info  - 12:06:11 PM] (14347) No include entries specified; assuming /home/reza/Desktop/a
2024-09-14 12:06:11.515 [info] [Info  - 12:06:11 PM] (14347) Auto-excluding **/node_modules
2024-09-14 12:06:11.515 [info] [Info  - 12:06:11 PM] (14347) Auto-excluding **/__pycache__
2024-09-14 12:06:11.516 [info] [Info  - 12:06:11 PM] (14347) Auto-excluding **/.*
2024-09-14 12:06:11.557 [info] [Info  - 12:06:11 PM] (14347) Assuming Python version 3.12.3.final.0
2024-09-14 12:06:11.557 [info] (14347) Assuming Python platform Linux
2024-09-14 12:06:11.625 [info] [Info  - 12:06:11 PM] (14347) Search paths for file:///home/reza/Desktop/a
2024-09-14 12:06:11.625 [info] [Info  - 12:06:11 PM] (14347)   /home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib
2024-09-14 12:06:11.626 [info] [Info  - 12:06:11 PM] (14347)   /home/reza/Desktop/a
2024-09-14 12:06:11.626 [info] [Info  - 12:06:11 PM] (14347)   /home/reza/Desktop/a/typings
2024-09-14 12:06:11.627 [info] [Info  - 12:06:11 PM] (14347)   /home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stubs/...
2024-09-14 12:06:11.627 [info] [Info  - 12:06:11 PM] (14347)   /home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs
2024-09-14 12:06:11.628 [info] [Info  - 12:06:11 PM] (14347)   /usr/lib/python3.12
2024-09-14 12:06:11.629 [info] [Info  - 12:06:11 PM] (14347)   /usr/lib/python3.12/lib-dynload
2024-09-14 12:06:11.630 [info] [Info  - 12:06:11 PM] (14347)   /home/reza/Desktop/a/venv/lib/python3.12/site-packages
2024-09-14 12:06:11.630 [info] [Info  - 12:06:11 PM] (14347) Adding fs watcher for library directories:
 file:///usr/lib/python3.12
file:///usr/lib/python3.12/lib-dynload
file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages
2024-09-14 12:06:11.630 [info] [Info  - 12:06:11 PM] (14347) Adding fs watcher for directories:
 file:///home/reza/Desktop/a
2024-09-14 12:06:11.630 [info] (14347) Searching for source files
2024-09-14 12:06:11.631 [info] [Info  - 12:06:11 PM] (14347) Auto-excluding /home/reza/Desktop/a/venv
2024-09-14 12:06:11.637 [info] [Info  - 12:06:11 PM] (14347) Found 7 source files
2024-09-14 12:06:11.672 [info] (14347) pytest configurations: {"message":"request cancelled","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-09-14 12:06:11.675 [info] (14347) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-09-14 12:06:12.034 [info] [Info  - 12:06:12 PM] (14347) Background analysis(1) root directory: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist
2024-09-14 12:06:12.038 [info] [Info  - 12:06:12 PM] (14347) Background analysis(1) started
2024-09-14 12:06:12.114 [info] (14347) pytest configurations: {"message":"request cancelled","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-09-14 12:06:12.131 [info] (14347) pytest configurations: {"message":"script","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2024-09-14 12:06:15.301 [info] (14347) Attempting to resolve using local imports: __builtins__
2024-09-14 12:06:15.310 [info] (14347) [FG] parsing: file:///home/reza/Desktop/a/udp_handler.py (100ms)
2024-09-14 12:06:15.645 [info] (14347) [FG] parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 1ms] (248ms)
2024-09-14 12:06:15.801 [info] (14347) [FG] binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/builtins.pyi (208ms)
2024-09-14 12:06:15.865 [info] (14347) [FG] binding: file:///home/reza/Desktop/a/udp_handler.py (87ms)
2024-09-14 12:06:16.126 [info] (14347) Attempting to resolve using local imports: __builtins__
2024-09-14 12:06:16.148 [info] (14347) [BG(1)] analyzing: file:///home/reza/Desktop/a/udp_handler.py ...
2024-09-14 12:06:16.148 [info] (14347) [BG(1)]   parsing: file:///home/reza/Desktop/a/udp_handler.py (246ms)
2024-09-14 12:06:16.387 [info] (14347) [BG(1)]   parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 1ms] (232ms)
2024-09-14 12:06:16.530 [info] (14347) [BG(1)]   binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/builtins.pyi (144ms)
2024-09-14 12:06:16.558 [info] (14347) [BG(1)]   binding: file:///home/reza/Desktop/a/udp_handler.py (26ms)
2024-09-14 12:06:16.627 [info] (14347) [BG(1)]   checking: file:///home/reza/Desktop/a/udp_handler.py ...
2024-09-14 12:06:16.628 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/typing.pyi [fs read 0ms] (34ms)
2024-09-14 12:06:16.652 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/typing.pyi (28ms)
2024-09-14 12:06:16.691 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/types.pyi [fs read 0ms] (18ms)
2024-09-14 12:06:16.700 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/types.pyi (8ms)
2024-09-14 12:06:16.719 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (9ms)
2024-09-14 12:06:16.723 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (4ms)
2024-09-14 12:06:16.727 [info] [Info  - 12:06:16 PM] (14347) Indexer background runner(2) root directory: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist (index)
2024-09-14 12:06:16.734 [info] [Info  - 12:06:16 PM] (14347) Indexing(2) started
2024-09-14 12:06:16.737 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (1ms)
2024-09-14 12:06:16.738 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/abc.pyi (1ms)
2024-09-14 12:06:16.754 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/ipaddress.pyi [fs read 0ms] (9ms)
2024-09-14 12:06:16.757 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/ipaddress.pyi (3ms)
2024-09-14 12:06:16.816 [info] (14347) [BG(1)]     parsing: file:///usr/lib/python3.12/ipaddress.py [fs read 2ms] (56ms)
2024-09-14 12:06:16.855 [info] (14347) [BG(1)]     binding: file:///usr/lib/python3.12/ipaddress.py (40ms)
2024-09-14 12:06:16.861 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/pprint.pyi [fs read 0ms] (3ms)
2024-09-14 12:06:16.863 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/pprint.pyi (1ms)
2024-09-14 12:06:16.919 [info] (14347) [BG(1)]     parsing: file:///usr/lib/python3.12/pprint.py [fs read 0ms] (32ms)
2024-09-14 12:06:16.922 [info] (14347) [BG(1)]     binding: file:///usr/lib/python3.12/pprint.py (14ms)
2024-09-14 12:06:16.936 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/socket.pyi [fs read 0ms] (19ms)
2024-09-14 12:06:16.944 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/socket.pyi (7ms)
2024-09-14 12:06:16.987 [info] (14347) [IDX(2)] scan packages file:///home/reza/Desktop/a ...
2024-09-14 12:06:16.987 [info] (14347) [IDX(2)]   read stdlib indices (77ms)
2024-09-14 12:06:16.996 [info] (14347) [BG(1)]     parsing: file:///usr/lib/python3.12/socket.py [fs read 0ms] (54ms)
2024-09-14 12:06:17.024 [info] (14347) [BG(1)]     binding: file:///usr/lib/python3.12/socket.py ...
2024-09-14 12:06:17.024 [info] (14347) [BG(1)]       parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_socket.pyi [fs read 0ms] (30ms)
2024-09-14 12:06:17.032 [info] (14347) [BG(1)]       binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_socket.pyi (10ms)
2024-09-14 12:06:17.077 [info] (14347) [BG(1)]     binding: file:///usr/lib/python3.12/socket.py (83ms)
2024-09-14 12:06:17.096 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/datetime.pyi [fs read 0ms] (17ms)
2024-09-14 12:06:17.112 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/datetime.pyi (17ms)
2024-09-14 12:06:17.116 [info] (14347) [BG(1)]     parsing: file:///usr/lib/python3.12/datetime.py [fs read 0ms] (4ms)
2024-09-14 12:06:17.119 [info] [Info  - 12:06:17 PM] (14347) Could not import '_datetime' in file '/usr/lib/python3.12/datetime.py'
2024-09-14 12:06:17.120 [info] [Info  - 12:06:17 PM] (14347)   Looking in stubPath 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:06:17.120 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:06:17.125 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:06:17.132 [info] [Info  - 12:06:17 PM] (14347)   Looking in root directory of execution environment 'file:///home/reza/Desktop/a'
2024-09-14 12:06:17.133 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a'
2024-09-14 12:06:17.137 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///home/reza/Desktop/a'
2024-09-14 12:06:17.137 [info] [Info  - 12:06:17 PM] (14347)   Looking for typeshed stdlib path
2024-09-14 12:06:17.137 [info] [Info  - 12:06:17 PM] (14347)   Looking for typeshed stdlib path
2024-09-14 12:06:17.137 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib'
2024-09-14 12:06:17.137 [info] [Info  - 12:06:17 PM] (14347)   Typeshed path not found
2024-09-14 12:06:17.138 [info] [Info  - 12:06:17 PM] (14347)   Finding python search paths
2024-09-14 12:06:17.138 [info] [Info  - 12:06:17 PM] (14347)   Executing interpreter: '/home/reza/Desktop/a/venv/bin/python'
2024-09-14 12:06:17.138 [info] [Info  - 12:06:17 PM] (14347)   Skipping '/usr/lib/python312.zip' because it is not a valid directory
2024-09-14 12:06:17.138 [info] [Info  - 12:06:17 PM] (14347)   Received 3 paths from interpreter
2024-09-14 12:06:17.139 [info] [Info  - 12:06:17 PM] (14347)     file:///usr/lib/python3.12
2024-09-14 12:06:17.139 [info] [Info  - 12:06:17 PM] (14347)     file:///usr/lib/python3.12/lib-dynload
2024-09-14 12:06:17.139 [info] [Info  - 12:06:17 PM] (14347)     file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages
2024-09-14 12:06:17.142 [info] [Info  - 12:06:17 PM] (14347)   Looking in python search path 'file:///usr/lib/python3.12'
2024-09-14 12:06:17.144 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///usr/lib/python3.12'
2024-09-14 12:06:17.145 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///usr/lib/python3.12'
2024-09-14 12:06:17.145 [info] [Info  - 12:06:17 PM] (14347)   Looking in python search path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:06:17.146 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:06:17.146 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:06:17.146 [info] [Info  - 12:06:17 PM] (14347)   Looking in python search path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:06:17.147 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:06:17.149 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:06:17.150 [info] [Info  - 12:06:17 PM] (14347)   Looking in bundled stubs path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:06:17.154 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:06:17.155 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:06:17.155 [info] [Info  - 12:06:17 PM] (14347)   Looking for typeshed third-party path
2024-09-14 12:06:17.156 [info] [Info  - 12:06:17 PM] (14347)   Looking for typeshed stubs path
2024-09-14 12:06:17.160 [info] [Info  - 12:06:17 PM] (14347)   Typeshed path not found
2024-09-14 12:06:17.160 [info] [Info  - 12:06:17 PM] (14347) Could not import '_datetime' in file '/usr/lib/python3.12/datetime.py'
2024-09-14 12:06:17.160 [info] [Info  - 12:06:17 PM] (14347)   Looking in stubPath 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:06:17.161 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:06:17.161 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///home/reza/Desktop/a/typings'
2024-09-14 12:06:17.162 [info] [Info  - 12:06:17 PM] (14347)   Looking in root directory of execution environment 'file:///home/reza/Desktop/a'
2024-09-14 12:06:17.162 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a'
2024-09-14 12:06:17.163 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///home/reza/Desktop/a'
2024-09-14 12:06:17.163 [info] [Info  - 12:06:17 PM] (14347)   Looking for typeshed stdlib path
2024-09-14 12:06:17.164 [info] [Info  - 12:06:17 PM] (14347)   Looking for typeshed stdlib path
2024-09-14 12:06:17.164 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib'
2024-09-14 12:06:17.164 [info] [Info  - 12:06:17 PM] (14347)   Typeshed path not found
2024-09-14 12:06:17.165 [info] [Info  - 12:06:17 PM] (14347)   Finding python search paths
2024-09-14 12:06:17.165 [info] [Info  - 12:06:17 PM] (14347)   Executing interpreter: '/home/reza/Desktop/a/venv/bin/python'
2024-09-14 12:06:17.167 [info] [Info  - 12:06:17 PM] (14347)   Skipping '/usr/lib/python312.zip' because it is not a valid directory
2024-09-14 12:06:17.167 [info] [Info  - 12:06:17 PM] (14347)   Received 3 paths from interpreter
2024-09-14 12:06:17.168 [info] [Info  - 12:06:17 PM] (14347)     file:///usr/lib/python3.12
2024-09-14 12:06:17.168 [info] [Info  - 12:06:17 PM] (14347)     file:///usr/lib/python3.12/lib-dynload
2024-09-14 12:06:17.169 [info] [Info  - 12:06:17 PM] (14347)     file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages
2024-09-14 12:06:17.169 [info] [Info  - 12:06:17 PM] (14347)   Looking in python search path 'file:///usr/lib/python3.12'
2024-09-14 12:06:17.169 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///usr/lib/python3.12'
2024-09-14 12:06:17.170 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///usr/lib/python3.12'
2024-09-14 12:06:17.170 [info] [Info  - 12:06:17 PM] (14347)   Looking in python search path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:06:17.170 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:06:17.170 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///usr/lib/python3.12/lib-dynload'
2024-09-14 12:06:17.171 [info] [Info  - 12:06:17 PM] (14347)   Looking in python search path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:06:17.171 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:06:17.173 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages'
2024-09-14 12:06:17.173 [info] [Info  - 12:06:17 PM] (14347)   Looking in bundled stubs path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:06:17.173 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve stub package using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:06:17.173 [info] [Info  - 12:06:17 PM] (14347)   Attempting to resolve using root path 'file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/bundled/stubs'
2024-09-14 12:06:17.174 [info] [Info  - 12:06:17 PM] (14347)   Looking for typeshed third-party path
2024-09-14 12:06:17.174 [info] [Info  - 12:06:17 PM] (14347)   Looking for typeshed stubs path
2024-09-14 12:06:17.174 [info] [Info  - 12:06:17 PM] (14347)   Typeshed path not found
2024-09-14 12:06:17.226 [info] (14347) [BG(1)]     binding: file:///usr/lib/python3.12/datetime.py ...
2024-09-14 12:06:17.227 [info] (14347) [BG(1)]       parsing: file:///usr/lib/python3.12/_pydatetime.py [fs read 1ms] (90ms)
2024-09-14 12:06:17.245 [info] (14347) [BG(1)]       binding: file:///usr/lib/python3.12/_pydatetime.py (23ms)
2024-09-14 12:06:17.247 [info] (14347) [BG(1)]     binding: file:///usr/lib/python3.12/datetime.py (120ms)
2024-09-14 12:06:17.252 [info] (14347) [BG(1)]     parsing: file:///home/reza/Desktop/a/logger.py [fs read 1ms] (7ms)
2024-09-14 12:06:17.253 [info] (14347) [BG(1)]     binding: file:///home/reza/Desktop/a/logger.py (1ms)
2024-09-14 12:06:17.261 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/logging/__init__.pyi [fs read 0ms] (9ms)
2024-09-14 12:06:17.268 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/logging/__init__.pyi (6ms)
2024-09-14 12:06:17.272 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stubs/colorama/colorama/__init__.pyi [fs read 1ms] (1ms)
2024-09-14 12:06:17.274 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stubs/colorama/colorama/__init__.pyi (0ms)
2024-09-14 12:06:17.275 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stubs/colorama/colorama/initialise.pyi [fs read 0ms] (1ms)
2024-09-14 12:06:17.277 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stubs/colorama/colorama/initialise.pyi (1ms)
2024-09-14 12:06:17.348 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (27ms)
2024-09-14 12:06:17.356 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/typing_extensions.pyi (10ms)
2024-09-14 12:06:17.377 [info] (14347) [BG(1)]     parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/collections/abc.pyi [fs read 0ms] (1ms)
2024-09-14 12:06:17.380 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/collections/abc.pyi ...
2024-09-14 12:06:17.381 [info] (14347) [BG(1)]       parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_collections_abc.pyi [fs read 0ms] (1ms)
2024-09-14 12:06:17.384 [info] (14347) [BG(1)]       binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/_collections_abc.pyi (1ms)
2024-09-14 12:06:17.385 [info] (14347) [BG(1)]     binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/collections/abc.pyi (3ms)
2024-09-14 12:06:17.407 [info] (14347) [BG(1)]     parsing: file:///home/reza/Desktop/a/storage.py [fs read 0ms] (4ms)
2024-09-14 12:06:17.410 [info] (14347) [BG(1)]     binding: file:///home/reza/Desktop/a/storage.py (2ms)
2024-09-14 12:06:17.462 [info] (14347) [BG(1)]   checking: file:///home/reza/Desktop/a/udp_handler.py (905ms)
2024-09-14 12:06:17.463 [info] [Info  - 12:06:17 PM] (14347) Heap stats: total_memory_size=15865MB, total_free_size=11227MB, total_heap_size=65MB, used_heap_size=51MB, cross_worker_used_heap_size=51MB, total_physical_size=64MB, total_available_size=4043MB, heap_size_limit=4096MB
2024-09-14 12:06:17.465 [info] (14347) [BG(1)] analyzing: file:///home/reza/Desktop/a/udp_handler.py (1563ms)
2024-09-14 12:06:17.535 [info] (14347) [BG(1)] SemanticTokens full at file:///home/reza/Desktop/a/udp_handler.py ...
2024-09-14 12:06:17.535 [info] (14347) [BG(1)]   parsing: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/enum.pyi [fs read 1ms] (7ms)
2024-09-14 12:06:17.536 [info] (14347) [BG(1)]   binding: file:///home/reza/.vscode/extensions/ms-python.vscode-pylance-2024.9.1/dist/typeshed-fallback/stdlib/enum.pyi (3ms)
2024-09-14 12:06:17.747 [info] (14347) [IDX(2)] scan packages file:///home/reza/Desktop/a (853ms)
2024-09-14 12:06:17.749 [info] [Info  - 12:06:17 PM] (14347) scanned(2) 72 files over 1 exec env
2024-09-14 12:06:17.792 [info] (14347) [BG(1)] SemanticTokens full at file:///home/reza/Desktop/a/udp_handler.py (314ms)
2024-09-14 12:06:17.833 [info] (14347) [BG(1)] SemanticTokens range 0:0 - 72:55 at file:///home/reza/Desktop/a/udp_handler.py (23ms)
2024-09-14 12:06:17.833 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/consts.py ...
2024-09-14 12:06:17.834 [info] (14347) [BG(1)]   parsing: file:///home/reza/Desktop/a/consts.py [fs read 0ms] (3ms)
2024-09-14 12:06:17.834 [info] (14347) [BG(1)]   binding: file:///home/reza/Desktop/a/consts.py (3ms)
2024-09-14 12:06:17.836 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/consts.py [found 5] (8ms)
2024-09-14 12:06:17.836 [info] (14347) Indexing Done: file:///home/reza/Desktop/a/consts.py
2024-09-14 12:06:17.838 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/logger.py [found 5] (0ms)
2024-09-14 12:06:17.838 [info] (14347) Indexing Done: file:///home/reza/Desktop/a/logger.py
2024-09-14 12:06:17.862 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/main.py ...
2024-09-14 12:06:17.863 [info] (14347) [BG(1)]   parsing: file:///home/reza/Desktop/a/main.py [fs read 0ms] (27ms)
2024-09-14 12:06:17.866 [info] (14347) [BG(1)]   binding: file:///home/reza/Desktop/a/main.py (2ms)
2024-09-14 12:06:17.874 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/main.py [found 42] (33ms)
2024-09-14 12:06:17.874 [info] (14347) Indexing Done: file:///home/reza/Desktop/a/main.py
2024-09-14 12:06:17.885 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/sip.py ...
2024-09-14 12:06:17.885 [info] (14347) [BG(1)]   parsing: file:///home/reza/Desktop/a/sip.py [fs read 0ms] (11ms)
2024-09-14 12:06:17.886 [info] (14347) [BG(1)]   binding: file:///home/reza/Desktop/a/sip.py (1ms)
2024-09-14 12:06:17.886 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/sip.py [found 5] (16ms)
2024-09-14 12:06:17.886 [info] (14347) Indexing Done: file:///home/reza/Desktop/a/sip.py
2024-09-14 12:06:17.889 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/storage.py [found 4] (1ms)
2024-09-14 12:06:17.889 [info] (14347) Indexing Done: file:///home/reza/Desktop/a/storage.py
2024-09-14 12:06:18.041 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/trafic_generator.py ...
2024-09-14 12:06:18.041 [info] (14347) [BG(1)]   parsing: file:///home/reza/Desktop/a/trafic_generator.py [fs read 0ms] (36ms)
2024-09-14 12:06:18.041 [info] (14347) [BG(1)]   binding: file:///home/reza/Desktop/a/trafic_generator.py (5ms)
2024-09-14 12:06:18.042 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/trafic_generator.py [found 3] (46ms)
2024-09-14 12:06:18.043 [info] (14347) Indexing Done: file:///home/reza/Desktop/a/trafic_generator.py
2024-09-14 12:06:18.045 [info] (14347) [BG(1)] indexing: file:///home/reza/Desktop/a/udp_handler.py [found 3] (1ms)
2024-09-14 12:06:18.046 [info] (14347) Indexing Done: file:///home/reza/Desktop/a/udp_handler.py
2024-09-14 12:06:18.068 [info] (14347) [IDX(2)] index packages file:///home/reza/Desktop/a ...
2024-09-14 12:06:18.069 [info] (14347) [IDX(2)]   index execution environment file:///home/reza/Desktop/a ...
2024-09-14 12:06:18.070 [info] (14347) [IDX(2)]     indexing: file:///usr/lib/python3.12/__phello__/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:06:18.071 [info] (14347) [IDX(2)]     indexing: file:///usr/lib/python3.12/concurrent/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:06:18.071 [info] (14347) [IDX(2)]     indexing: file:///usr/lib/python3.12/pydoc_data/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:06:18.072 [info] (14347) [IDX(2)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/test/__init__.py [skipped: no '__all__' defined] (1ms)
2024-09-14 12:06:18.073 [info] (14347) [IDX(2)]     indexing: file:///usr/lib/python3.12/urllib/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:06:18.074 [info] (14347) [IDX(2)]     indexing: file:///usr/lib/python3.12/wsgiref/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:06:18.075 [info] (14347) [IDX(2)]     indexing: file:///usr/lib/python3.12/xmlrpc/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:06:18.076 [info] (14347) [IDX(2)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/fastapi/_compat.py [skipped: private or protected file] (0ms)
2024-09-14 12:06:18.076 [info] (14347) [IDX(2)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/mysql/__init__.py [skipped: no '__all__' defined] (3ms)
2024-09-14 12:06:18.076 [info] (14347) [IDX(2)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/scapy/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:06:18.077 [info] (14347) [IDX(2)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/shellingham/__init__.py [skipped: no '__all__' defined] (1ms)
2024-09-14 12:06:18.077 [info] (14347) [IDX(2)]     indexing: file:///home/reza/Desktop/a/venv/lib/python3.12/site-packages/tzdata/__init__.py [skipped: no '__all__' defined] (0ms)
2024-09-14 12:06:18.084 [info] (14347) [IDX(2)]   index execution environment file:///home/reza/Desktop/a [found 1670 in 60 files] (23ms)
2024-09-14 12:06:18.084 [info] (14347) [IDX(2)] index packages file:///home/reza/Desktop/a [found 1670 in 1 exec envs] (52ms)
2024-09-14 12:06:18.085 [info] [Info  - 12:06:18 PM] (14347) indexed(2) 60 files over 1 exec env
2024-09-14 12:06:18.125 [info] [Info  - 12:06:18 PM] (14347) Indexing finished(2).
2024-09-14 12:06:19.855 [info] (14347) [BG(1)] SemanticTokens delta previousResultId:1726302977479 at file:///home/reza/Desktop/a/udp_handler.py (1ms)

@rchiodo
Copy link
Contributor Author

rchiodo commented Sep 16, 2024

Do you have any other extensions enabled? That log output looks like we're returning semantic data. We don't actually log individual tokens though.

My example isn't as complete as yours. Can you share the entire code that you're using?

@github-actions github-actions bot added user responded Was "waiting for user response" and they responded and removed waiting for user response Requires more information from user labels Sep 16, 2024
@IamRezaMousavi
Copy link

IamRezaMousavi commented Sep 24, 2024

Do you have any other extensions enabled? That log output looks like we're returning semantic data. We don't actually log individual tokens though.

My example isn't as complete as yours. Can you share the entire code that you're using?

No, For python I just installed python extension

This is the code: (I can't share more code, sorry :))

import ipaddress
import pprint
import socket
from datetime import datetime

from consts import get_config
from logger import get_logger
from storage import Storage

logger = get_logger()
config = get_config()


class UDPSocketHandler:
    def __init__(self) -> None:
        self.storage = Storage()
        self.can_running = True

    def udp_listener(self, filters: dict[str, str] = {}) -> None:  # noqa: B006, C901, PLR0912, PLR0915
        udp_ip = ''
        udp_port = config.getint('LOGPARSER', 'Port')

        udp_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        udp_socket.bind((udp_ip, udp_port))
        udp_socket.setblocking(False)  # noqa: FBT003
        logger.info('UDP Socket is binded on port %d', udp_port)

        while self.can_running:
            try:
                data, addr = udp_socket.recvfrom(1024)
                logger.info(addr)

                # process data
                log_str = data.hex()

                data_dict = {}
                flags_len =  2
                flags = log_str[request_id_len:flags_len]
                b_flags = format(int(flags, 16), '08b')

                ip_version = 'V4'
                if int(b_flags[0]):
                    ip_version = 'V6'

                timestamp_len = flags_len + 16
                timestamp = log_str[flags_len:timestamp_len]
                d_timestamp = int(timestamp, 16)
                data_dict.update({'timestamp': datetime.fromtimestamp(d_timestamp)})

                source_port_len = timestamp_len + 4
                source_port = log_str[receive_byte_length_len:source_port_len]
                d_source_port = int(source_port, 16)
                data_dict.update({'src_port': d_source_port})

                logger.info('src_port = %s', data_dict['src_port'])
                if filters.get('src_port') and filters['src_port'] != data_dict['src_port']:
                    continue

                dst_port_len = source_port_len + 4
                dst_port = log_str[source_port_len:dst_port_len]
                d_dst_port = int(dst_port, 16)
                data_dict.update({'dst_port': d_dst_port})

                if ip_version == 'V4':
                    src_ip_len = dst_port_len + 8
                    dst_ip_len = src_ip_len + 8
                elif ip_version == 'V6':
                    src_ip_len = dst_port_len + 32
                    dst_ip_len = src_ip_len + 32
                data_dict.update({'ip_version': ip_version})

                src_ip = log_str[dst_port_len:src_ip_len]
                d_src_ip = int(src_ip, 16)
                src_ip_address = str(ipaddress.ip_address(d_src_ip))
                data_dict.update({'src_ip': src_ip_address})

                dst_ip = log_str[src_ip_len:dst_ip_len]
                d_dst_ip = int(dst_ip, 16)
                dst_ip_address = str(ipaddress.ip_address(d_dst_ip))
                data_dict.update({'dst_ip': dst_ip_address})

                logger.info(pprint.pformat(data_dict))

                self.storage.update_data(data, data_dict)
            except BlockingIOError:
                continue
            except Exception:
                logger.exception('')
                continue


if __name__ == '__main__':
    s = UDPSocketHandler()
    s.udp_listener()

@rchiodo
Copy link
Contributor Author

rchiodo commented Sep 24, 2024

What's your theme? Maybe it's overriding something. I can't reproduce the issue with your full code either. Colorization works fine:

Image

Tried in dark theme, same results:

Image

@IamRezaMousavi
Copy link

I use default theme:

Screenshot from 2024-09-25 09-45-36

Screenshot from 2024-09-25 09-45-26

I don't have this problem in my laptop (but in my PC ...)

@rchiodo
Copy link
Contributor Author

rchiodo commented Sep 25, 2024

What does Developer : Inspect Editor Tokens and Scopes show for one of the values that's incorrect?

Image

@IamRezaMousavi
Copy link

What does Developer : Inspect Editor Tokens and Scopes show for one of the values that's incorrect?

Screenshot from 2024-09-28 10-04-10

Screenshot from 2024-09-28 10-06-58

@rchiodo
Copy link
Contributor Author

rchiodo commented Sep 30, 2024

In those screenshots it looks correct. It doesn't have the errors you showed previously? Only the unused variables are a different contrast.

@IamRezaMousavi
Copy link

In those screenshots it looks correct. It doesn't have the errors you showed previously? Only the unused variables are a different contrast.

It's incorrect. Used variables have different contrast also. eq: udp-ip in line 20 and used in line 24 or udp-socket methods are not detected (in lines 24, 25 and 30)

@rchiodo
Copy link
Contributor Author

rchiodo commented Oct 1, 2024

That means we think those variables aren't used. It's not the semantic coloring, it's a diagnostic hint that is coming back. If you hover over it should show something like this:

Image

If you close and reopen VS code (or run Developer: Restart Extension Host) does the color get fixed? The only think I can think of is that analysis is taking too long and it isn't updating the error after you typed.

@IamRezaMousavi
Copy link

If you close and reopen VS code (or run Developer: Restart Extension Host) does the color get fixed? The only think I can think of is that analysis is taking too long and it isn't updating the error after you typed.

No
I don't know why this file has this bugs.

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 user responded Was "waiting for user response" and they responded
Projects
None yet
Development

No branches or pull requests

3 participants