ignoring files on compile

I have a vs code plugin that auto-saves and keeps history of local edits (much like JetBrains products). It creates a .history folder with older versions of files. When I try to run/debug in vs code the compiler sees those old files. I have to delete the .history folder in order to run.

How can I configure my project to ignore that folder?

ConnectIQ newb here...working on my first project

  • I've never seen this with CIQ and VS Code.  Unless the backup has .mc at the end, it shouldn't me used and unless a file is referenced in an xml file it should be ignored in resources.  How are you doing your edits?  with another extension?

  • Editing with plan ol'VS Code. The local history plugin saves edits in a .history folder within the current project. These are timestamped copies of the .mc files, which the compiler is picking up.

  • Remove the local history plug in or see if there's an option to save the files some place else.  It's what's causing you problems.  Anything under source with a .mc extension will be compiled with MonkeyC, 

  • moved local history outside of project folder. working now fine.  thanks!

  • Another way you could do this is to override the default source path for your project.

    In ${SDK_PATH}\bin, there's a file called default.jungle which has the following line:

    base.sourcePath = .\**.mc

    You could create a project folder called src\ for all your source files and add the following to your project's monkey.jungle:

    base.sourcePath = src\**.mc