I have seen this happening on win98/XP, and under NPP v3.7, 4.0.2, and 4.1.2 (latest available as of this post)
I had the following tabs open:
SourceCode1 on left
SourceCode2 on left
Output.txt on right (using "go to another view")
Output.log on right (same)
1) When I alt-tab away from NPP and run my program, it updates both of the output files before completing.
2) Then, when I go back to notepad it notices the changes.
3) Notepad++ says "Output.txt has changed!" I say yes to update.
4) The right side view changes to output.txt, and is updated (OK)
5) Notepad++ immediately follows with "Output.log has changed!" I say yes to update.
6) The LEFT side view gets populated with the contents of output.log, and the right hand view changes to the output.log tab.
But, the right hand view still has the stale version of output.log...
worse, my SourceCode file is gone, replaced by the fresh contents of output.log.
And thanks to murphy's law, the tab on the left which gets overwritten is the one that had the focus, and which also happens to be the one most likely to contain unsaved changes. :)
I can manually "reload from disk" both the affected sourcecode and the log to get them sorted out again.
--> Note that there is no problem at all during the first automatic Reload From Disk action.
It is the second (subsequent) one(s) that update the wrong tab. If "update silently" is checked, it still happens.
--> Note also, that there is no problem unless you are using the split right/left view.
--> Note finally, that the wrong update goes to the tab which had the focus on the left (in my example).
If one of the tabs on the right had the cursor before I clicked away from notepad++, the update also works.
I have not yet tried testing this with reloads happening on both sides or reloads on the left.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have seen this happening on win98/XP, and under NPP v3.7, 4.0.2, and 4.1.2 (latest available as of this post)
I had the following tabs open:
SourceCode1 on left
SourceCode2 on left
Output.txt on right (using "go to another view")
Output.log on right (same)
1) When I alt-tab away from NPP and run my program, it updates both of the output files before completing.
2) Then, when I go back to notepad it notices the changes.
3) Notepad++ says "Output.txt has changed!" I say yes to update.
4) The right side view changes to output.txt, and is updated (OK)
5) Notepad++ immediately follows with "Output.log has changed!" I say yes to update.
6) The LEFT side view gets populated with the contents of output.log, and the right hand view changes to the output.log tab.
But, the right hand view still has the stale version of output.log...
worse, my SourceCode file is gone, replaced by the fresh contents of output.log.
And thanks to murphy's law, the tab on the left which gets overwritten is the one that had the focus, and which also happens to be the one most likely to contain unsaved changes. :)
I can manually "reload from disk" both the affected sourcecode and the log to get them sorted out again.
--> Note that there is no problem at all during the first automatic Reload From Disk action.
It is the second (subsequent) one(s) that update the wrong tab. If "update silently" is checked, it still happens.
--> Note also, that there is no problem unless you are using the split right/left view.
--> Note finally, that the wrong update goes to the tab which had the focus on the left (in my example).
If one of the tabs on the right had the cursor before I clicked away from notepad++, the update also works.
I have not yet tried testing this with reloads happening on both sides or reloads on the left.