thousands-plumber-33255
02/07/2024, 4:05 PMpants run and pants test
• We debug those using the pants debug-adapter
• A pre-commit hook calls pants tools like fmt or lint
There are some drawbacks we have observed compared to simply using native VSCode capabilities like debugging or running tests:
• Due to pants principle of using sandboxes it takes quite a while until all those commands are ready to run
• If a pants command is not properly terminated, one have to kill all pants processes manually
I think one could use native VSCode capabilites if everything is exported properly and VSCode knows about everything as shown in https://www.pantsbuild.org/2.18/docs/using-pants/setting-up-an-ide. For example using the default debug method: https://code.visualstudio.com/docs/python/tutorial-django#_create-a-debugger-launch-profile.
I would like to know which option of the two you are using?
What are the drawbacks or advantages you have experienced?silly-queen-7197
02/08/2024, 5:31 AMsilly-queen-7197
02/08/2024, 5:33 AMthousands-plumber-33255
02/08/2024, 3:05 PMthousands-plumber-33255
02/08/2024, 3:06 PMsilly-queen-7197
02/08/2024, 7:17 PMthousands-plumber-33255
02/09/2024, 10:36 AMthousands-plumber-33255
02/09/2024, 10:40 AMsquare-elephant-85438
02/25/2025, 8:56 PM