Bug #18088 2011-04-30 08:41
theultramage
same file opened two times
It is easy, by standard interaction with the UI, to get the same file opened in two code editor tabs. This causes confusion, since changes in one don't reflect in the other, and cause a 'file modified outside the IDE' popup to appear after waiting a while.
To reproduce:
- set up two projects, A and B, in a single workspace
- add file.h into A's project tree, but don't include it to any of A's code
- include file.h into B's code, but don't add it to B's project tree
- make a syntax error typo in file.h
- build project B
- open file.h by doubleclicking on it in A's project tree
- open file.h by doubleclicking on the syntax error in the Build messages window
- now you have the same physical file opened twice.
Suggested solution: Keep a list of fully resolved filesystem paths associated with each tab, and compare against the list whenever a new tab is opened.
- Category
- Application::Interface
- Group
- Status
- Open
- Close date
- Assigned to
- jenslody
History
You are missing some information about C::B-revision and your OS.
If you use linux, this post might describe why it happens:
http://forums.codeblocks.org/index.php/topic,7751.msg58348.html#msg58348
If that's the case for you, my answer will probably help you:
http://forums.codeblocks.org/index.php/topic,7751.msg58365.html#msg58365
Please give feedback.
Windows 7/64bit, C::B from 2.apr.2011 (svn 7075).
Symlinks! Yes, now that you mention it, symlinks were involved in this setup (A and B are on the same directory level, B uses A, B has a '3rdparty' dir, B puts symlinks to all of its dependencies in this local dir).
PS:
* You can have real(?) symlinks on ntfs with vista and above.
* If there is already a bugreport for symlink aliasing, sorry.