Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: KatzYaakov on October 03, 2019, 02:40:18 PM

Title: cant modify M function
Post by: KatzYaakov on October 03, 2019, 02:40:18 PM
i have this issue sometimes ,not  very often ,but when it happened i got crazzzy
when i take one machine ,delete all macros folder ,put new one
then even delete the mcLua file
but when i try modify one of the Mfunction from the mach ,i cant ,its saved ,compiled ,but nothing change
i must delete the function mcc  ,(but also this not always help)
i sure its not my private problem ,any help please
Title: Re: cant modify M function
Post by: smurph on October 03, 2019, 07:34:25 PM
You have a syntax error in the macro file.  Thus it will not compile and merge into the mcLua.mcc file. 
Title: Re: cant modify M function
Post by: KatzYaakov on October 03, 2019, 10:33:53 PM
In this specfic macro or in one of the macros? Because in this specific i dont see any syntax error
Title: Re: cant modify M function
Post by: smurph on October 03, 2019, 10:50:28 PM
It could be in any macro.  The end result is that you new modification is not getting rolled up into the mcLua.mcc. 

The first thing that happens when all .mcc files are removed is each .msc file is compiled into a .mcc file.  If a compile error happens, you will see .mcc files for the ones that compiled successfully and then the rest without .mcc files.  One of the macros without a .mcc file is the culprit. 

So you can use that to try and shorten your search.  The longer way is:

1. Delete all .mcc files from the macros directory. 
2. Open each .mcs file with the mcLuaEditor.exe program (Not ZeroBrane because ZB will not compile to mcc files) and attempt to compile it. 
3. If successful, go to the next .mcs file and repeat.  If not, then look at the compile error. 

You will eventually find the file with the error. 

Steve
Title: Re: cant modify M function
Post by: KatzYaakov on October 03, 2019, 10:52:50 PM
Thks alot,ill try