Weird issue with VSCode and the Simulator

Hi, something weird is happening today. Pressing CTL-P to open up the properties of an app, and this is what shows up

If I resize the windows so only one column is showing, the corresponding checkbox is not aligned with its text.

I have to resize it way down so the checkbox is below the text for it to be displayed correctly.

It never did that before.

But what's more annoying, is when I change something in the source code, I have to switch device for it to compile, otherwise the change is ignored and the old code is ran right away.

Anybody else seeing this?

Top Replies

  • But what's more annoying, is when I change something in the source code, I have to switch device for it to compile, otherwise the change is ignored and the old code is ran right away.…

All Replies

  • I'm not. What version of the extension are you running? I had to roll back from 1.0.10 to 1.0.9 due to the complications permission being removed which is an issue with the .10 version.

  • How are you trying to build/run?

    I always select what I want under this "Run App" menu. and then each time I use "Run" from the top menu, it allows me to pick a target.  I'll do multiple runs after changing code using the same target and it always does the compile first.

  • Not sure, but I do have that complications permission being removed bug so I would say 1.0.10. How do you revert to 1.0.9?

    Edit: Found how

  • I run by pressing F5. If no device has been selected, it pops up the list of devices to choose from. From then on, pressing F5 auto selects that watch and recompile if something has changed before running. Except now, if I keep the same device, it doesn't recompile and simply runs, even changes to the code were made. I have to select a different device, run it there and then go back to my original device for it to compile again for that device, Very annoying.

  • But what's more annoying, is when I change something in the source code, I have to switch device for it to compile, otherwise the change is ignored and the old code is ran right away.

    This sounds like a very annoying bug, but I’m not seeing it. When I run by pressing F5, I am always prompted for a device, and my source code changes are always picked up. Do you have any additional PRG files in the bin/ folder by any chance? There was a bug where the simulator could run the wrong PRG file if you had another one in the bin/ folder (e.g. because you renamed the project).

    TBH I don’t think the Monkey C VS Code extension has ever worked quite right when it comes to running projects. For example, if you have a multi-project workspace, the first time you invoke Run after opening VS Code, the compiler correctly chooses the project associated with the currently focused editor/file. Every time after that, the Run command chooses the first project you ran. I don’t see this behavior with other project types (like Python or TypeScript), so I assume it has something to do with the Monkey C extension.

    (inb4: “just create launch configurations for all your projects and manually select a project to run every single time”. I’m aware of the workaround, I’m just describing the existing bug which probably won’t be fixed.)

  • when I change something in the source code, I have to switch device for it to compile

    I had this issue once…

    “Kill all Apps“ from the simulator‘s menu did the trick.

  • Ok thanks. I'll try that next time.