News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

cscope plugin not supporting space in project name (Win32)

Started by damorin, June 21, 2011, 09:47:57 PM

Previous topic - Next topic

damorin

Hi,

just to report a small bug in the cscope plugin. It's working fine as long as the path is not containing space (not like this one "c:\users\rmorin\fx-2000\fx-2000 Phase II").

Any work-around for this one ?

Thanks.

Windows XP with C:B SVN 7075.

One problem at a time and we will get there.

MortenMacFly

Quote from: damorin on June 21, 2011, 09:47:57 PM
Any work-around for this one ?
If you are willing to patch, in CscopePligin.cpp, the method void CscopePlugin::OnFind(wxCommandEvent &event), replacing this line:
    cmd += WordAtCaret + _T(" -i ") + list_file;

...with this:
    cmd += WordAtCaret + _T(" -i \"") + list_file + _T("\"");

...should do the trick.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]