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

Cannot Stop/Cancel Debugged Unit Tests #22605

Closed
haraslub opened this issue Dec 7, 2023 · 13 comments
Closed

Cannot Stop/Cancel Debugged Unit Tests #22605

haraslub opened this issue Dec 7, 2023 · 13 comments
Assignees
Labels
area-testing info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@haraslub
Copy link

haraslub commented Dec 7, 2023

Type: Bug

When I try to debug any unit test using Test Explorer, it always gets stuck. Tests don't hit the breakpoint, complete, or even stop when I click the Cancel Test Run button. I need to close VSC to terminate the test.

VSC_01

VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Remote OS version: Linux x64 5.15.133.1-microsoft-standard-WSL2

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (8 x 1800)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 35.82GB (18.64GB free)
Process Argv --folder-uri=vscode-remote://wsl+Ubuntu/home/haraslub/mamaai/langchain/public_procurement_agent --remote=wsl+Ubuntu --crash-reporter-id ce7014cd-2439-4ee0-8107-dca2ca501b5f
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu
OS Linux x64 5.15.133.1-microsoft-standard-WSL2
CPUs Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (8 x 1800)
Memory (System) 17.48GB (13.71GB free)
VM 0%
Extensions (67)
Extension Author (truncated) Version
emojisense bie 0.10.0
postcss css 1.0.9
vscode-graphql-syntax Gra 1.2.2
vscode-peacock joh 4.2.2
jupyter-keymap ms- 1.1.2
remote-containers ms- 0.321.0
remote-ssh ms- 0.107.1
remote-ssh-edit ms- 0.86.0
remote-wsl ms- 0.81.8
vscode-remote-extensionpack ms- 0.25.0
remote-explorer ms- 0.4.1
remote-server ms- 1.5.0
material-icon-theme PKi 4.32.0
open-in-browser tec 2.0.0
vscode-solidity-language tin 0.0.7
pdf tom 1.2.2
vscode-todo-highlight way 1.0.5
JavaScriptSnippets xab 1.8.0
tools-for-solidity ack 1.11.2
markdown-emoji bie 0.3.0
markdown-mermaid bie 1.21.0
vscode-tailwindcss bra 0.10.3
codeium Cod 1.5.27
vscode-markdownlint Dav 0.53.0
graphviz-preview EFa 1.6.4
prettier-vscode esb 10.1.0
vscode-pull-request-github Git 0.76.1
gc-excelviewer Gra 4.2.58
vscode-mocha-test-adapter hbe 2.14.1
vscode-test-explorer hbe 2.21.1
vscode-edit-csv jan 0.8.3
plantuml jeb 2.17.5
vscode-graphviz joa 0.0.9
MagicPython mag 1.1.0
vscode-docker ms- 1.28.0
csharp ms- 2.13.10
vscode-dotnet-runtime ms- 2.0.0
vscode-kubernetes-tools ms- 1.3.15
black-formatter ms- 2023.6.0
isort ms- 2023.10.1
pylint ms- 2023.10.1
python ms- 2023.23.13391009
vscode-pylance ms- 2023.11.102
jupyter ms- 2023.10.1100000000
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.17
vscode-jupyter-cell-tags ms- 0.1.8
vscode-jupyter-slideshow ms- 0.1.5
live-server ms- 0.4.11
test-adapter-converter ms- 0.1.8
hardhat-solidity Nom 0.7.3
indent-rainbow ode 8.3.1
vscode-yaml red 1.14.0
LiveServer rit 5.7.9
vscode-coverage-gutters rya 2.11.1
code-spell-checker str 3.0.1
even-better-toml tam 0.19.2
graphviz-interactive-preview tin 0.3.5
solidity-metrics tin 0.0.23
solidity-visual-auditor tin 0.2.0
vscode-ethover tin 0.0.7
vscode-inline-bookmarks tin 0.1.0
vscode-solidity-flattener tin 0.0.11
vscode-solidity-language tin 0.0.7
markfiles vqu 1.1.1
pretty-ts-errors yoa 0.5.2
markdown-all-in-one yzh 3.5.1
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30899288
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
3biah626:30602489
f6dab269:30613381
a9j8j154:30646983
showlangstatbar:30737416
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialog:30910333
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232

@eleanorjboyd
Copy link
Member

Hello! Could you include a layout of your project and your logs from the python output channel? For your logs, can you first set your log level to trace via theDeveloper: set log level command in the command palette? With these I can better help figure out what might be going wrong. Thanks

@eleanorjboyd eleanorjboyd transferred this issue from microsoft/vscode Dec 7, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Dec 7, 2023
@eleanorjboyd eleanorjboyd added area-testing info-needed Issue requires more information from poster labels Dec 7, 2023
@0xharold
Copy link

0xharold commented Dec 8, 2023

Hi!

Sure, here is the layout (note: it is reduced, i.e. a lot of files are removed)

Click me
├── deploy
│   └── helm
│       └── public_procurement_agent
├── public_procurement_agent
│   ├── agents
│   ├── cert
│   ├── cl_components
│   ├── data
│   ├── templates
│   ├── utils
│   │   ├── gpt_grounded_response
│   │   ├── credentials.py
│   │   ├── evaluate_data.py
│   │   ├── helpers.py
│   │   ├── msearch.py
│   │   ├── msearch_coll.py
│   ├── __init__.py
│   ├── app.py
│   └── config.py
├── tests
│   ├── __pycache__
│   ├── test_utils
│   │   ├── __pycache__
│   │   ├── __init__.py
│   │   ├── test_extract_answer.py
│   │   └── test_msearch.py
│   ├── __init__.py
│   ├── helpers.py
│   └── test_app_module.py
├── Dockerfile
├── Jenkinsfile
├── README.md
├── poetry.lock
└── pyproject.toml

And here the logs

Click me
2023-12-08 07:27:51.700 [info] 
<Package test_utils>
  <Module test_extract_answer.py>
    <Function test_extract_text>
  <Module test_msearch.py>
    <Coroutine test_query_collection_returns_none>
    <Coroutine test_query_collection_returns_text>

2023-12-08 07:27:51.714 [info] Test server connected to a client.
2023-12-08 07:27:51.716 [info] 
=============================== warnings summary ===============================
../../../.cache/pypoetry/virtualenvs/public-procurement-agent-0xbEerLw-py3.11/lib/python3.11/site-packages/fastapi/openapi/models.py:55
  /home/haraslub/.cache/pypoetry/virtualenvs/public-procurement-agent-0xbEerLw-py3.11/lib/python3.11/site-packages/fastapi/openapi/models.py:55: DeprecationWarning: `general_plain_validator_function` is deprecated, use `with_info_plain_validator_function` instead.
    return general_plain_validator_function(cls._validate)

../../../.cache/pypoetry/virtualenvs/public-procurement-agent-0xbEerLw-py3.11/lib/python3.11/site-packages/pydantic_core/core_schema.py:3898
  /home/haraslub/.cache/pypoetry/virtualenvs/public-procurement-agent-0xbEerLw-py3.11/lib/python3.11/site-packages/pydantic_core/core_schema.py:3898: DeprecationWarning: `general_plain_validator_function` is deprecated, use `with_info_plain_validator_function` instead.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================= 3 tests collected in 37.75s ==========================

2023-12-08 07:27:51.735 [debug] data received from python server:  Content-Length: 2622
Content-Type: application/json
Request-uuid: 3fa5c60a-0c63-4810-a41d-22c97feaf612

{"cwd": "/home/haraslub/mamaai/langchain/public_procurement_agent", "status": "success", "tests": {"name": "public_procurement_agent", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent", "type_": "folder", "children": [{"name": "tests", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests", "type_": "folder", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests", "children": [{"name": "test_utils", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils", "type_": "folder", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils", "children": [{"name": "test_extract_answer.py", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py", "type_": "file", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py", "children": [{"name": "test_extract_text", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py", "lineno": "32", "type_": "test", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py::test_extract_text", "runID": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py::test_extract_text"}]}, {"name": "test_msearch.py", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py", "type_": "file", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py", "children": [{"name": "test_query_collection_returns_none", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py", "lineno": "62", "type_": "test", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py::test_query_collection_returns_none", "runID": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py::test_query_collection_returns_none"}, {"name": "test_query_collection_returns_text", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py", "lineno": "76", "type_": "test", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py::test_query_collection_returns_text", "runID": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py::test_query_collection_returns_text"}]}]}]}], "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent"}, "error": []}Content-Length: 42
Content-Type: application/json
Request-uuid: 3fa5c60a-0c63-4810-a41d-22c97feaf612

{"command_type": "discovery", "eot": true}
2023-12-08 07:27:51.735 [debug] Firing data received event,  {"cwd": "/home/haraslub/mamaai/langchain/public_procurement_agent", "status": "success", "tests": {"name": "public_procurement_agent", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent", "type_": "folder", "children": [{"name": "tests", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests", "type_": "folder", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests", "children": [{"name": "test_utils", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils", "type_": "folder", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils", "children": [{"name": "test_extract_answer.py", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py", "type_": "file", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py", "children": [{"name": "test_extract_text", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py", "lineno": "32", "type_": "test", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py::test_extract_text", "runID": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py::test_extract_text"}]}, {"name": "test_msearch.py", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py", "type_": "file", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py", "children": [{"name": "test_query_collection_returns_none", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py", "lineno": "62", "type_": "test", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py::test_query_collection_returns_none", "runID": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py::test_query_collection_returns_none"}, {"name": "test_query_collection_returns_text", "path": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py", "lineno": "76", "type_": "test", "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py::test_query_collection_returns_text", "runID": "/home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py::test_query_collection_returns_text"}]}]}]}], "id_": "/home/haraslub/mamaai/langchain/public_procurement_agent"}, "error": []}
2023-12-08 07:27:51.735 [debug] Firing data received event,  {"command_type": "discovery", "eot": true}
2023-12-08 07:27:51.735 [info] ResultResolver EOT received for discovery.
2023-12-08 07:27:51.931 [debug] Testing: Resolving item /home/haraslub/mamaai/langchain/public_procurement_agent
2023-12-08 07:27:51.931 [debug] Testing: Resolving item /home/haraslub/mamaai/langchain/public_procurement_agent/tests
2023-12-08 07:27:51.931 [debug] Testing: Resolving item /home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils
2023-12-08 07:27:51.931 [debug] Testing: Resolving item /home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_extract_answer.py
2023-12-08 07:27:51.931 [debug] Testing: Resolving item /home/haraslub/mamaai/langchain/public_procurement_agent/tests/test_utils/test_msearch.py
2023-12-08 07:27:52.556 [debug] deferredTill EOT resolved for /home/haraslub/mamaai/langchain/public_procurement_agent
2023-12-08 07:27:52.557 [info] Disposing data receiver for /home/haraslub/mamaai/langchain/public_procurement_agent and deleting UUID; pytest discovery.
2023-12-08 07:27:55.849 [debug] Clearing context for python dependencies not installed: /home/haraslub/mamaai/langchain/public_procurement_agent/public_procurement_agent/utils/msearch.py
2023-12-08 07:28:00.150 [debug] Clearing context for python dependencies not installed: /home/haraslub/mamaai/langchain/public_procurement_agent/public_procurement_agent/utils/msearch.py
2023-12-08 07:28:07.598 [debug] Clearing context for python dependencies not installed: /home/haraslub/mamaai/langchain/public_procurement_agent/public_procurement_agent/utils/msearch.py
2023-12-08 07:28:12.900 [debug] Found cached env for /home/haraslub/.cache/pypoetry/virtualenvs/public-procurement-agent-0xbEerLw-py3.11/bin/python
2023-12-08 07:28:12.912 [debug] Found cached env for /home/haraslub/.cache/pypoetry/virtualenvs/public-procurement-agent-0xbEerLw-py3.11/bin/python
2023-12-08 07:28:12.935 [info] Server listening on port 36941
2023-12-08 07:28:12.936 [debug] Server started for pytest test ids server and listening on port 36941
2023-12-08 07:28:12.940 [info] All environment variables set for pytest execution in /home/haraslub/mamaai/langchain/public_procurement_agent workspace: 
 { /* env vars removed */,"USER":"haraslub","VSCODE_WSL_EXT_LOCATION":"/mnt/c/Users/pracovni/.vscode/extensions/ms-vscode-remote.remote-wsl-0.81.8","SHLVL":"2","WT_PROFILE_ID":"{2c4de342-38b7-51cf-b940-2309a097f518}","HOME":"/home/haraslub","WSL_DISTRO_NAME":"Ubuntu","WAYLAND_DISPLAY":"wayland-0","LOGNAME":"haraslub","NAME":"Code","WSL_INTEROP":"/run/WSL/3148_interop","PULSE_SERVER":"unix:/mnt/wslg/PulseServer","_":"/mnt/c/Users/pracovni/AppData/Local/Programs/Microsoft VS Code/bin/code","TERM":"xterm-256color","WT_SESSION":"dd0c2c8b-2d70-4d14-88e9-48f2eee2efdc","XDG_RUNTIME_DIR":"/mnt/wslg/runtime-dir","DISPLAY":":0","LANG":"C.UTF-8","SHELL":"/bin/bash","PWD":"/mnt/c/Users/pracovni/AppData/Local/Programs/Microsoft VS Code","WSL2_GUI_APPS_ENABLED":"1","HOSTTYPE":"x86_64","WSLENV":"ELECTRON_RUN_AS_NODE/w:WT_SESSION:WT_PROFILE_ID:\n","VSCODE_HANDLES_SIGPIPE":"true","VOLTA_HOME":"/home/haraslub/.volta","XDG_DATA_DIRS":"/usr/local/share:/usr/share:/var/lib/snapd/desktop","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}","LESSOPEN":"| /usr/bin/lesspipe %s","BUN_INSTALL":"/home/haraslub/haraslub/.bun","BROWSER":"/mnt/c/Program Files/Mozilla Firefox/firefox.exe","NVM_BIN":"/home/haraslub/.nvm/versions/node/v18.8.0/bin","NVM_INC":"/home/haraslub/.nvm/versions/node/v18.8.0/include/node","P9K_TTY":"old","NVM_DIR":"/home/haraslub/.nvm","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:","LESSCLOSE":"/usr/bin/lesspipe %s %s","P9K_SSH":"0","_P9K_TTY":"/dev/pts/0","NVM_CD_FLAGS":"-q","PNPM_HOME":"/home/haraslub/.local/share/pnpm","VSCODE_CWD":"/mnt/c/Users/pracovni/AppData/Local/Programs/Microsoft VS Code","ELECTRON_RUN_AS_NODE":"1","VSCODE_IPC_HOOK_CLI":"/mnt/wslg/runtime-dir/vscode-ipc-079eb670-6ec7-4021-89ad-69753e2ba553.sock","PATH":"/home/haraslub/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/bin/remote-cli:/home/haraslub/.volta/bin:/home/haraslub/.local/bin:/home/haraslub/haraslub/.volta/bin:/home/haraslub/haraslub/.bun/bin:/home/haraslub/.local/share/pnpm:/home/haraslub/.nvm/versions/node/v18.8.0/bin:/home/haraslub/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Users/pracovni/AppData/Local/Programs/Python/Python39:/mnt/c/Users/pracovni/AppData/Local/Programs/go-ipfs:/mnt/c/Program Files/heroku/bin:/mnt/c/Ruby31-x64/bin:/mnt/c/Users/pracovni/AppData/Roaming/Python/Scripts:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/pracovni/AppData/Local/Programs/Python/Launcher/:/mnt/c/Users/pracovni/.poetry/bin:/mnt/c/Ruby31-x64/bin:/mnt/c/Users/pracovni/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/pracovni/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/users/pracovni/.local/bin:/mnt/c/users/pracovni/appdata/roaming/python/python39/scripts:/mnt/c/Users/pracovni/AppData/Local/GitHubDesktop/bin:/snap/bin:/home/haraslub/.foundry/bin:/home/haraslub/.local/bin:/home/haraslub/.bifrost/bin:/home/haraslub/.bifrost/bin:/home/haraslub/.foundry/bin:/home/quickpoc","PYTHONPATH":"/home/haraslub/.vscode-server/extensions/ms-python.python-2023.23.13391009/pythonFiles","TEST_UUID":"55920c41-49dc-4487-8927-e4b5be2bdc1f","TEST_PORT":"36637","RUN_TEST_IDS_PORT":"36941"}
2023-12-08 07:28:12.940 [info] Running DEBUG pytest with arguments: --rootdir /home/haraslub/mamaai/langchain/public_procurement_agent --capture no for workspace /home/haraslub/mamaai/langchain/public_procurement_agent 

2023-12-08 07:28:12.950 [error] could not get debug config [Error: Missing field in launch.json: version
	at c (/home/haraslub/.vscode-server/extensions/ms-python.python-2023.23.13391009/out/client/extension.js:2:365987)
	at async r.readDebugConfig (/home/haraslub/.vscode-server/extensions/ms-python.python-2023.23.13391009/out/client/extension.js:2:775652)
	at async r.getLaunchArgs (/home/haraslub/.vscode-server/extensions/ms-python.python-2023.23.13391009/out/client/extension.js:2:775021)
	at async r.launchDebugger (/home/haraslub/.vscode-server/extensions/ms-python.python-2023.23.13391009/out/client/extension.js:2:774462)
	at async t.PytestTestExecutionAdapter.runTestsNew (/home/haraslub/.vscode-server/extensions/ms-python.python-2023.23.13391009/out/client/extension.js:2:854771)
	at async t.PytestTestExecutionAdapter.runTests (/home/haraslub/.vscode-server/extensions/ms-python.python-2023.23.13391009/out/client/extension.js:2:853030)
	at async t.WorkspaceTestAdapter.executeTests (/home/haraslub/.vscode-server/extensions/ms-python.python-2023.23.13391009/out/client/extension.js:2:877838)
	at async Promise.all (index 0)
	at async A.runTests (/home/haraslub/.vscode-server/extensions/ms-python.python-2023.23.13391009/out/client/extension.js:2:835654)
	at async a.w (/home/haraslub/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/out/vs/workbench/api/node/extensionHostProcess.js:145:6569)
	at async Promise.all (index 0)]
2023-12-08 07:28:12.951 [debug] Clearing context for python dependencies not installed: /home/haraslub/mamaai/langchain/public_procurement_agent/public_procurement_agent/utils/msearch.py
2023-12-08 07:28:14.082 [debug] Clearing context for python dependencies not installed: /home/haraslub/mamaai/langchain/public_procurement_agent/public_procurement_agent/utils/msearch.py
2023-12-08 07:28:14.752 [debug] Clearing context for python dependencies not installed: /home/haraslub/mamaai/langchain/public_procurement_agent/public_procurement_agent/utils/msearch.py
2023-12-08 07:28:18.072 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-12-08 07:28:18.085 [debug] Found cached env for /home/haraslub/.cache/pypoetry/virtualenvs/public-procurement-agent-0xbEerLw-py3.11/bin/python
2023-12-08 07:28:31.247 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-12-08 07:29:05.293 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-12-08 07:29:08.425 [info] Test run cancelled, resolving 'till EOT' deferred for /home/haraslub/mamaai/langchain/public_procurement_agent.
2023-12-08 07:29:11.170 [debug] Clearing context for python dependencies not installed: ms-python.python.Python

Thank you in advance, @eleanorjboyd !

@eleanorjboyd
Copy link
Member

@paulacamargo25, could you jump in here? Seems like it might be a debugging / launch.json file issue. I am seeing the error 2023-12-08 07:28:12.950 [error] could not get debug config [Error: Missing field in launch.json: version

@eleanorjboyd
Copy link
Member

@0xharold thanks for the detailed logs and project structure, very helpful!

@0xharold
Copy link

0xharold commented Jan 8, 2024

@eleanorjboyd Hi! Any update? :)

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Jan 8, 2024
@eleanorjboyd
Copy link
Member

@paulacamargo25, can you take a look?

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jan 8, 2024
@paulacamargo25
Copy link

According to the error, it seems that the launch.json is wrong, could you send me your launch.json?

@brettcannon
Copy link
Member

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

@brettcannon brettcannon closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2024
@0xharold
Copy link

@brettcannon @paulacamargo25
I am sorry for the late response.
Here is launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "args": [
        "run",
        "${file}"
        // "--server.port",
        // "SPECIFY_YOUR_OWN_PORT_NUMBER_HERE"
      ],
      "module": "chainlit",
      "name": "Python: Chainlit",
      "request": "launch",
      "type": "debugpy",
      "justMyCode": false
    },
    {
        // "args": ["--par", "from"],
        "name": "Python: Current File",
        "type": "debugpy",
        "request": "launch",
        "program": "${file}",
        "console": "integratedTerminal",
        "justMyCode": false
      }
  ]
}

FYI: I have tried to use just "Python: Current File" (i.e. deleting the Chainlit one) and it seems it does not have an impact on it.

My workspace might be really messed up though. For instance, In Testing section I can see two sets of tests: Python Tests and "project-name - Pytest tests` containing same tests (not sure if this is related though). Any help appreciate it, thanks you in advance!

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Feb 27, 2024
@eleanorjboyd eleanorjboyd reopened this Feb 27, 2024
@paulacamargo25
Copy link

Thanks for your reply, according to your launch.json, yo do not have a config for testing, so the default would be used. The error in the version should no longer appear. Could you send me your logs again? Thanks

@paulacamargo25 paulacamargo25 added the info-needed Issue requires more information from poster label Feb 27, 2024
@0xharold
Copy link

I would love to send these logs but now all works as expected, i.e. when I hit the stop button, the tests stop, the same applies for debugging.
Sorry for that.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Feb 28, 2024
@eleanorjboyd
Copy link
Member

no worries! Glad it is working! If you experience this again feel free to comment on this issue with your logs. @haraslub are you still experiencing this issue and if so could you send your logs? Otherwise we will close this as resolved for now, thanks!

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Feb 28, 2024
@eleanorjboyd
Copy link
Member

Hi! Closing this as you are no longer experiencing it. Also the version of vscode coming out next week has some new updates which should help as I have fixed some edge cases around stop/cancel debugging

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

6 participants