Force "Monkey: Clean Project" before run (or support outside project source folders)

I do not use barrels but some plain shared code that I use like following inside my monkey.jungle files:

srcBase = source;../../shared/src/core;../../shared/src/settings;../../shared/src/poly;../../shared/src/font;

The problem is, that if I run the app after making changes inside a shared folder, that app is not rebuild, instead the old build is used. I do use a VS Code workspace that includes that shared folder but this does not solve the issue.

Any ideas how I can solve that?

Currently I must call clean manually before starting the app which is cumbersome and I often forget to do it...

  • the best solution would be if the monkeyc plugin just analyses the manifest and realises that it has to monitor all referenced folders or alternatively, if it would better support workspaces with multiple folders...

    But for now I'm content, from a practical view point at least

  • One side note: symbolic links and GIT does not work, at least not if you are not running git as admin... It does not even ask for admin rights at anytime... The result of checking in a symbolic link and trying to check it out again is a normal folder...

    Nevertheless, excluding it and creating the symbolic link manually everywhere where needed is fine for me (I only have two laptops I do work on)

  • One side note: symbolic links and GIT does not work, at least not if you are not running git as admin... It does not even ask for admin rights at anytime... The result of checking in a symbolic link and trying to check it out again is a normal folder...

    Does it work if you enable developer mode in Windows as mentioned upthread? That way any app should be able to create symlinks without admin privs.

    EDIT: you may have to enable symlinks in git, as well:

    [https://stackoverflow.com/a/59761201]