Closed haraslub closed 4 months ago
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
Hi!
Sure, here is the layout (note: it is reduced, i.e. a lot of files are removed)
And here the logs
Thank you in advance, @eleanorjboyd !
@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
@0xharold thanks for the detailed logs and project structure, very helpful!
@eleanorjboyd Hi! Any update? :)
@paulacamargo25, can you take a look?
According to the error, it seems that the launch.json is wrong, could you send me your launch.json?
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 @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!
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
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.
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!
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
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.
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: enabledcanvas_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.1A/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 ```