Opened 5 years ago

Closed 5 years ago

#762 closed defect (fixed)

(Simple) New Plugin Model editor creates files even if it doesn't compile/pass testing

Reported by: smk78 Owned by: smk78
Priority: blocker Milestone: SasView 4.1.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing


The (simple) New Plugin Model editor creates .py/.pyc files in the /plugin_models folder - and possibly populates the namespace? - even if compilation of the model fails (eg, because of a syntax error). If you correct the error and click 'Apply' again you then get a new error telling you that the model exists!

The irritating workarounds are either to give the model a new name which, if you have a succession of compilation errors will populate the plugins folder with junk files, or to go in to the plugins folder and manually delete the junk files (which carries other risks).

If compilation/testing fails the plugins folder should be cleaned out.

Change History (4)

comment:1 Changed 5 years ago by pkienzle

There is an "overwrite" box. This could be set to True when the model is first saved under a particular name.

Last edited 5 years ago by pkienzle (previous) (diff)

comment:2 Changed 5 years ago by smk78

  • Owner set to smk78
  • Status changed from new to assigned

comment:3 Changed 5 years ago by smk78

Have changed the default behaviour of the overwrite box from False to True, changed the wording of the text alongside to something more explicit, and updated the Help documentation.

comment:4 Changed 5 years ago by smk78

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.