goblint / GobPie

Goblint IDE integration via MagpieBridge
MIT License
7 stars 4 forks source link

Optimise analysis rerun #17

Open karoliineh opened 2 years ago

karoliineh commented 2 years ago

Currently, the analysis is rerun whenever a file with a .c extension is saved in a project that contains a GobPie configuration file. This is not optimal though, because if only one file is specified in the conf file to be analysed by Goblint, the analysis should be triggered only when this file is modified/saved.

After analysing, Goblint returns the list of analysed files, which should be then monitored for triggering a new analysis (not triggering an analysis if an unrelated .c file is opened or saved). As of now, MagpieBridge only passes the list of files, that have been opened in the editor since opening the project in VSCode. For optimising, we should get a list of saved files only.

There are a few possible solutions for this issue:

Note: the analysis should be triggered when the relevant header files or the compilation database are modified, as well.