#761 Race condition in PythonNature rebuilding

1.3.18
closed-fixed
Editor (491)
5
2008-07-28
2008-07-27
No

PyDev 1.3.18

If there are more actions that are causing call to PythonNature.rebuildPath it is possible that some of the latter calls will be ignored.

For example if I call PythonNature.addNature and after that I configure PythonPath by adding external source path and want to rebuild path that subsuquent request can be ignored because PythonNature.rebuildPath(String, String) already scheduled a job that is now processing out of date data.

I attached a patch for this problem. The slight delay in schedule call gives some space if more calls to rebuildPath follow in short period of time.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2008-07-28
    • status: open --> closed-fixed
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2008-07-28

    Logged In: YES
    user_id=617340
    Originator: NO

    Thanks for the patch. Just applied it.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks