armandoalonso / c3IDE

An Integrated Development Environment For Construct 3 Plugins
GNU General Public License v3.0
22 stars 4 forks source link

Addon gets reset to default sometimes #63

Open skymen opened 3 years ago

skymen commented 3 years ago

I got this a few times already when creating a new addon. Steps are:

This sometimes results in my work being erased and reset to the default new addon code. I usually just open C3's cached version and copy paste my code back and it fixes it most of the time, and I never get the issue with that addon again.

armandoalonso commented 3 years ago

that's interesting, starting the server from multiple addons should not impact the addon's code, the server is just a static file server pointing to C:\Users{USER}\AppData\Roaming\C3IDE_DATA\Server\Test all addons get stored there by default when "compiling" the different parts of the addon.

the way the app keeps state is a bit wonky sometimes (I need to figure out why and fix that) but after making modification do you save (ctrl-s), there is also an option to compile on save - which automatically generates the addon at the server path. as a work around while i figure that out, save when navigating to different tab.

skymen commented 3 years ago

Yeah, I already use compile on save, and I do save. And in fact, when I load the addon on C3 it loads what I worked on. it's only when switching to another addon and switching back that I occasionally lose my stuff, even though it was indeed saved and hosted on the server