Cscope 问题 - 搜索结果不可见
我面临着一个奇怪的问题。在浏览项目的C代码时,“查找此文本字符串:”输出结果为正匹配,但文本不可见[只有搜索结果不可见,菜单不可见]。光标在结果列表中上下移动。有些线条有时是可见的,如下面的屏幕截图所示。 我确实尝试更改背景颜色[从黑色到白色],删除项目文件夹中 cscope.out 的任何实例,重建数据库。
系统是FC4。 使用的cscope版本是15.7a。
这是一个已知的错误吗?有什么解决办法吗?
屏幕截图: 屏幕截图是使用 Putty 拍摄的。在 gnome 终端、konsole 上也可以看到相同的行为。
http://img2.pict.com/05/11/ 00/2823072/0/cscope01.jpg
http ://img2.pict.com/53/0e/38/2823075/0/cscope02.jpg
PS:也发布在ubuntu论坛 - http://ubuntuforums.org/showthread.php?t=1402448
I am facing a weird problem. While browsing the C code of a project, the "Find this text string:" output results in a positive match, but the text is invisible [only the search results are invisible and not the menu]. The cursor moves up and down the list of results. Some of the lines are visible sometimes as you can see in the screen-shot below.
I did try to change the background color [from black to white], removed any instance of cscope.out in the project folder, rebuilt the database.
The system is FC4.
The cscope version in use is 15.7a.
Is this a known bug? Any solutions?
Screen-shots:
The screen-shots are taken using Putty. Same behavior is seen on gnome-terminal, konsole.
http://img2.pict.com/05/11/00/2823072/0/cscope01.jpg
http://img2.pict.com/53/0e/38/2823075/0/cscope02.jpg
P.S: Also posted in ubuntu forums - http://ubuntuforums.org/showthread.php?t=1402448
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
嗯,找到了解决方案。
问题出在文件的格式上。
如果文件的行尾有 ctrl+M,cscope 将会出现问题。
对目录中的所有测试文件进行 dos2unix 转换。
这应该可以解决问题。
Well, found the solution.
The problem is with the format of the file.
If the files have ctrl+M at the end of the line, cscope will have issues with them.
Do a dos2unix conversion on all the test files in the directory.
This should solve the problem.
我也看到了同样的问题;非常烦人。有时,您可以通过调整窗口大小来使结果可见(我认为这会导致重绘)。
I'm seeing the same problem; incredibly annoying. Sometimes you can make the results visible by resizing the window (which causes a redraw, I assume).
我通过删除 .vimrc 中的一些 cscope 设置修复了 Centos 系统中的类似问题。我认为这是由于 .vimrc 和 ~/.vim/plugin/cscope_maps.vim 中的设置不匹配引起的,
我在 .vimrc 中删除了以下设置:
I had fixed similar problem in my Centos system by removing some cscope setings in .vimrc. I assume this was caused by a mismatch between settings in .vimrc and ~/.vim/plugin/cscope_maps.vim
I removed the below settings in my .vimrc: