Opened 5 years ago

Last modified 5 years ago

#5664 new enhancement

Reload feature in OMEdit

Reported by: john.pye@… Owned by: Adeel Asghar
Priority: critical Milestone: 2.0.0
Component: OMEdit Version: v1.14.0-dev-nightly
Keywords: Cc:

Description

Hi there

When editing code outside of OMEdit, it would be very useful to have a 'reload' option in OMEdit so that packages and/or models could be reloaded as required, to update OMEdit with the current file contents.

Currently the process is a bit onerous -- one has to right-click to unload, then file->recent->(select name) to reload a single file.

It should be noted that many text editors now automatically offer the user to re-load files, alerting the user to the fact that the file in the edit buffer is no longer the same as the filesystem version.

Another use-case for this issue is when creating/editing icons for packages/models/etc.

Change History (1)

comment:1 by Francesco Casella, 5 years ago

Milestone: Future2.0.0
Priority: highcritical

I wholeheartedly support this request, particularly since I often develop code using mutiple Modelica tools, which can become a real nightmare because of this issue, with potential loss of code changes.

I understand implementing this is very easy, since the behaviour of OMC when loading a package is to discard whatever is already in memory and replace it with the new one, if I am not mistaken.

In fact, I would go the extra mile and offer the option of automatic file change detection. I guess this could cause some slowdown, so I'd make it optional.

Note: See TracTickets for help on using tickets.