- Status Closed
- Percent Complete
- Task Type Feature Request
- Category ECMAScript
-
Assigned To
andrew - Operating System All
- Severity Low
- Priority Very Low
- Reported Version 3 TP1
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Opened by hungerburg - 25.05.2011
Last edited by andrew - 25.05.2011
FS#103 - Runtime reload script
As of TP1, a script once loaded into the runtime, does reflect changes to the file it was loaded from only after a restart of the whole of QCAD. This adds a considerable time overhead to developing scripts. Therefore I want to suggest a reload mechanism, that works kind of like the one known from a web browser.
As there is no clear separation between users custom scripts and ribbonsoft supplied scripts, checking the modification time for every access to any script might prove a performance hit.
Possibly a user script can be written, to invalidate another certain script and have the runtime reload it from file? I could add that to my menu.
Or as some magic, that can be written to “MyAction.init()”?
25.05.2011 09:51
Reason for closing: Implemented
Additional comments about closing:
Can be achieved by the script itself
(see comment)
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
You can achieve this by unloading your class at the end of the script by setting it to undefined.
Example:
Thank you Andrew, this works with the example provided. Yet, as soon as a dialogue is execed() from the script, invalidating the class no longer works; then it will not run again at all. Possibly some ressources have to be freed?