The lab instructions are operating under the assumption that the participant is opening the sub-folder for each lab when they start the lab rather than opening the repository root folder or the track root folder (which is what most people do).
For Example: The lab instructions are assuming that the the participants are directly opening collab-spark-chatops-bot-itp when working on that lab and not devnet-express-cloud-collab-code-samples (git root) or collab-spark-chatops-bot-itp/itp (track root), which is what most people do.
The issue then is that the launch.json file that the participants are editing is not where VSCode is looking for it to be, and therefore the settings therein aren't being used by VSCode.
VSCode is looking for the file to be here ${workspaceRoot}/.venv/launch.json, VSCode project looks like this:
Workaround: Have the participants open each sub-folder (like a new project) every time they begin working on a new lab.
Recommended Solutions:
Don't use VSCode. Simplify the toolchain to use IDLE for editing and a BASH terminal for running scripts.
Improve the VSCode workflows, which should include opening the repository root and working from that single root for all labs. This would neccessitate consolidating the .vscode folders, settings and launch.json files.
Update the labs to provide instructions and warnings that clearly communicate how they should be "opening" the lab subfolders for each lab exercise.
The lab instructions are operating under the assumption that the participant is opening the sub-folder for each lab when they start the lab rather than opening the repository root folder or the track root folder (which is what most people do).
For Example: The lab instructions are assuming that the the participants are directly opening
collab-spark-chatops-bot-itp
when working on that lab and notdevnet-express-cloud-collab-code-samples
(git root) orcollab-spark-chatops-bot-itp/itp
(track root), which is what most people do.The issue then is that the
launch.json
file that the participants are editing is not where VSCode is looking for it to be, and therefore the settings therein aren't being used by VSCode.VSCode is looking for the file to be here
${workspaceRoot}/.venv/launch.json
, VSCode project looks like this:...but what it actually looks like is this
${workspaceRoot}/itp/collab-spark-chatops-bot-itp/.vscode/launch.json
:Note: There are a few
.vscode
settings folders throughout the sample-code repository.Workaround: Have the participants open each sub-folder (like a new project) every time they begin working on a new lab.
Recommended Solutions:
.vscode
folders, settings andlaunch.json
files.