Code::Blocks Forums

User forums => Help => Topic started by: ollydbg on May 31, 2009, 09:00:29 am

Title: Can't remove the bookmark symbol
Post by: ollydbg on May 31, 2009, 09:00:29 am
Hi, I find that a bookmark symbol will always exist in my main.cpp file.  see the screen shot. Even I toggle off this bookmark and close my workplace. Reopen the cbp file, it is there again.  :shock: I'm using Windows XP, and the latest SVN version build my self.

Any suggestions? Thanks.


[attachment deleted by admin]
Title: Re: Can't remove the bookmark symbol
Post by: killerbot on May 31, 2009, 12:53:59 pm
first question : did you put the bookmark there yourself,or did it appear there through some other actions (then the appearance itself would already be a bug).
Title: Re: Can't remove the bookmark symbol
Post by: ollydbg on May 31, 2009, 01:07:46 pm
If I can remember, I haven't put it there.

It seems this symbol always happens in the last line of file. I turn off the bookmark, and edit my main.cpp.

After reopen the project, this icon appeared again :(, see the screen shot below.




[attachment deleted by admin]
Title: Re: Can't remove the bookmark symbol
Post by: Jenna on May 31, 2009, 01:31:35 pm
Do you have BrowseTracker enabled ?
If yes, is it configured to use Bookmarks instead of BrowseMarks ?
If yes, try to delete it via "ContextMenu -> BrowseTracker -> Clear BrowseMark".
If it's gone now, it's an interference between BrowseTracker using BookMarks as symbols and the Bookmarks used by the cbEditor.

Title: Re: Can't remove the bookmark symbol
Post by: ollydbg on May 31, 2009, 01:52:10 pm
Do you have BrowseTracker enabled ?
Thanks for your help. Yes, I have BrowseTracker enabled.

Quote
If yes, is it configured to use Bookmarks instead of BrowseMarks ?

It is configured as "BrowseMarks".

Quote
If yes, try to delete it via "ContextMenu -> BrowseTracker -> Clear BrowseMark".
It seems this symbol can't be cleared by "clear browseMark", See the screen shot below, BrowseMarks were "three points like" symbols, I believe it is a "bookmark" symbol.

Quote
If it's gone now, it's an interference between BrowseTracker using BookMarks as symbols and the Bookmarks used by the cbEditor.

So, it is still there. :(

For another test, things become more confusing.

I add two browsemarks before bookmark(screen shot 1)and close my project, but after reopened it, another bookmark appeared at the same position of the second browsemark(screen shot 2).








[attachment deleted by admin]
Title: Re: Can't remove the bookmark symbol
Post by: Jenna on May 31, 2009, 01:58:25 pm
You can try to disable BrowseMarks plugin and see if it is gone then.
Or try what happens, if you delete the appropriate "*.bmarks"-file (you might want to have alook inside it before, to see if it can be related to your issue).
Title: Re: Can't remove the bookmark symbol
Post by: ollydbg on May 31, 2009, 02:19:09 pm
Thanks.

After disabling the "BrowseTracker plugin" and a reopen my project, all symbols were gone.

Here is the my **.bmarks

Quote
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<BrowseTracker_layout_file>
   <ActiveTarget name="Debug" />
   <File name="main.cpp" open="1" top="1" tabpos="1">
      <Cursor position="704" topLine="2" />
      <BrowseMarks positions="698,660" />
      <Book_Marks positions="5798,698,698" />
   </File>
</BrowseTracker_layout_file>

So, both BrowseMarks and Book_Marks were recorded in this file.

If I remove the *.bmarks, and enabled the BrowseTrack plugin, I randomly add some bookmarks and browsemarks, 

after testing...
I found that only "BrowseMarks" can be recorded in this *.bmarks file. So, that may be the cause of my problem.

Thanks.

Title: Re: Can't remove the bookmark symbol
Post by: Pecan on May 31, 2009, 02:52:03 pm
Thanks.

After disabling the "BrowseTracker plugin" and a reopen my project, all symbols were gone.

...
So, both BrowseMarks and Book_Marks were recorded in this file.

If I remove the *.bmarks, and enabled the BrowseTrack plugin, I randomly add some bookmarks and browsemarks, 

after testing...
I found that only "BrowseMarks" can be recorded in this *.bmarks file. So, that may be the cause of my problem.

Thanks.



I've seen this happen when the options for BrowseMarks only and BrowseMarks==BookMarks were switch back and forth. But was never able to reproduce the problem. It has something to do with a combination of switching and opening/closing the file.

However, a sort, a clearAll, then a project close while the file is still open should have cleared the problem.
Title: Re: Can't remove the bookmark symbol
Post by: ollydbg on May 31, 2009, 03:06:13 pm
Thanks, my original problem disappeared.

The new problem is like I said before, it seems "bookmarks" weren't be recorded. If I set several bookmarks, then close the project, I will give the *.bmarks file like below:

Quote
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<BrowseTracker_layout_file>
   <ActiveTarget name="Debug" />
   <File name="main.cpp" open="1" top="1" tabpos="1">
      <Cursor position="572" topLine="0" />
      <BrowseMarks positions="465,657" />
      <Book_Marks positions="" />
   </File>
</BrowseTracker_layout_file>

Note: Book_Marks positions=""

Thanks.
Title: Re: Can't remove the bookmark symbol
Post by: Pecan on May 31, 2009, 06:22:06 pm
Thanks, my original problem disappeared.

The new problem is like I said before, it seems "bookmarks" weren't be recorded. If I set several bookmarks, then close the project, I will give the *.bmarks file like below:

Quote
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<BrowseTracker_layout_file>
   <ActiveTarget name="Debug" />
   <File name="main.cpp" open="1" top="1" tabpos="1">
      <Cursor position="572" topLine="0" />
      <BrowseMarks positions="465,657" />
      <Book_Marks positions="" />
   </File>
</BrowseTracker_layout_file>

Note: Book_Marks positions=""

Thanks.

BookMarks are never saved unless the Mark_Style options is set.