I'm having a seemingly bizarre issue with an Application I'm making in App Designer. I have multiple .mlapp application files that I'm working on, most work normally. However, I have one file that when I'm working on it, the 'Save' button in App Designer is always grey. If I make a change, the * symbol will appear next to the filename in the tab, but the Save button remains greyed out.
If I close the file, it prompts me if I want to save, and the files saves correctly when I press Save in that dialog. This is what I'm using as a work around right now. However, that means when I'm developing / debugging this App I have to close the App, Save, wait for it to finish closing, then open it again and wait for it to finish opening. This adds a lot of delay in my development, particularly when I just need to make small tweaks / edits to the code and I have to close and re-open for each and every one to test them.
It's only in this one file where it happens, none of the others. Also, my application appears to run fine - it's working as expected.
What could be causing this and how can I fix it - or have I encountered some weird bug in MATLAB?
I also noticed, and can't help but think it may have something to do with it, I keep getting the following warning text while I'm in the file:
Warning: JSON incompatible value has been used.
In matlab.ui.internal/DesignTimeWebUIContainerController/appendInspectorInfo (line 291)
In matlab.ui.internal/DesignTimeWebUIContainerController/initializeInspectorPropertyView (line 251)
In matlab.ui.internal/DesignTimeWebUIContainerController/populateView (line 83)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createController (line 37)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createComponent (line 142)
In appdesigner.internal.componentmodel/DesignTimeComponentFactory/createModel (line 17)
In appdesigner.internal.componentcontroller/DesignTimeGridLayoutController/populateView (line 48)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createController (line 37)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createComponent (line 142)
In appdesigner.internal.componentmodel/DesignTimeComponentFactory/createModel (line 17)
In matlab.ui.internal/DesignTimeGbtParentingController/populateView (line 27)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createController (line 37)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createComponent (line 142)
In appdesigner.internal.componentmodel/DesignTimeComponentFactory/createModel (line 17)
In matlab.ui.internal/DesignTimeGbtParentingController/populateView (line 27)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createController (line 37)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createComponent (line 142)
In appdesigner.internal.componentmodel/DesignTimeComponentFactory/createModel (line 17)
In appdesigner.internal.componentcontroller/DesignTimeGridLayoutController/populateView (line 48)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createController (line 37)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createComponent (line 142)
In appdesigner.internal.componentmodel/DesignTimeComponentFactory/createModel (line 17)
In matlab.ui.internal/DesignTimeGbtParentingController/populateView (line 27)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createController (line 37)
In appdesigner.internal.componentmodel.DesignTimeComponentFactory.createComponent (line 142)
In appdesigner.internal.componentmodel/DesignTimeComponentFactory/createModel (line 17)
UPDATE
The save button did activate one time. It happened when I stepped away from my PC for a long time and came back. Suddenly, the save button was enabled. Also, I noticed that a custom component I was using was (seemingly) not fully loading in App Designer. At the same time I noticed the save button was enabled, I noticed that the component had finally completely loaded. This is a span of many hours, so this doesn't solve my problem, however. It's strange, because when I actually run the App everything loads fine, loads quick even, no issues.. .but in App Designer itself, my custom component hangs and takes forever to load. I will look into my component to see why it's taking so long to load (it's a very simple and should be straightforward component, so I really don't know what is making it take so long... but obviously something is wrong with it.
I'm trying to delete this component in order to otherwise work normally on the App, but it also won't let me delete the component while it's trying to load it in App Designer. This is very frustrating. I will probably have to wait hours to do anymore productive work on this.