Add Option to Manually Reload the Model

Hi there,

I’d like to suggest adding a menu option to manually reload the current model—similar to what happens when the Reload model on external changes option is enabled in Tools > Preferences (in NetLogo 7.0.0-beta2).

The automatic reload feature is useful (although it currently doesn’t detect changes in .nls files), but there are cases where a manual reload would be helpful—for example, when reloading default parameters defined in the .nlogox file.

Thanks for considering it!

Interesting idea! We will discuss this.

I’ve also noticed that sometimes automatic reload doesn’t detect changes in .nls files. If you have a way to consistently reproduce that behavior, could you make a bug report about it?

I just reported it as a bug a few minutes ago. :slight_smile:

Not sure if this meets your needs, but you can reload the currently open model by selecting it again in File → Recent Files. We could add a separate button for reloading the model, but the existing method doesn’t seem any more difficult to me. Also, the .nls reloading bug is now fixed!

1 Like

If it’s helpful to you, there’s a hidden primitive that accomplishes this: __reload.

2 Likes

If you dont save the file in netlogo, then it can detext nls changes