sillsdev / silnlp

A set of pipelines for performing experiments on various NLP tasks with a focus on resource-poor/minority languages.
Other
31 stars 3 forks source link

VSCode timing out when running debugger #551

Open mshannon-sil opened 1 week ago

mshannon-sil commented 1 week ago

Multiple developers have encountered an issue where, some seconds after VSCode starts up the debugger, it quietly exits without beginning to step through the SILNLP repo code. It seems that the likely root cause of the issue is the default timeout in debugpy being too short. We've found that increasing the DEBUGPY_PROCESS_SPAWN_TIMEOUT in the ~/.profile of the container fixes the issue, so this environment variable should be added to the Dockerfiles.

benjaminking commented 1 week ago

I wonder if this will be improved by removing OpenNMT/Tensorflow? Anecdotally, I've noticed that Tensorflow takes a long time to load when starting SILNLP.

mshannon-sil commented 1 week ago

It might help, but I'm not entirely sure. In the cases I've seen, the debugger exits before logging anything about Tensorflow (or in general) to the console, so it's hard to know for certain. We could wait to see the results of that before adding this fix to the containers.