- Windows 10
- Visual Studio Code 1.62.3
- Monkey C Extension 1.0.0
- SDK: 4.0.6
If multiple PRGs exist in the bin/ directory, VS Code will run the first one (in alphabetical order), which may not be the actual PRG that belongs to the project. This can cause problems if a new project is created by copying an existing project which has already been built once. Seems like it would also cause a problem if the project folder is renamed.
Recreation procedure:
- Create simple data field app in a folder called TESTA, which just returns "TESTA" in compute()
- Build app and note that TESTA.PRG is created. Run app and verify that it works as expected
- Copy project folder, and change the new folder name to TESTB. Change compute() to return "TESTB"
- Build app and note that TESTB.PRG is created. Run app and note that it's actually TESTA which runs.
- Delete TESTA.PRG from TESTB/bin, and run TESTB again. Note that TESTB runs now.