Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360283

Summary: [Scanner Discovery] Discovery command does not work if workspace name has spaces
Product: [Tools] CDT Reporter: Pafnuty <pavlundra>
Component: cdt-buildAssignee: Andrew Gvozdev <angvoz.dev>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.0.2   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Pafnuty CLA 2011-10-07 16:39:27 EDT
========
Bug scenario:
1. Launch an Eclipse Indigo (CDT) and create workspace "_Source Code" at startup.
2. Create a new C++ project using wizard "C++ Project / Hello World"
3. Look at the "Problems" tab (at the bottom) and got the message "Error (3 items)".
	But there is no errors. Build is ok. Run/Debug is ok.
	
==========
Possible solving:
1. Create workspace "_Source" at startup. (not using space characters. Space chars in the Workspace Name are the reason of the bug, I suppose.)


-- Configuration Details --
Product: Eclipse 1.4.1.20110909-0613 (org.eclipse.epp.package.cpp.product)
Installed Features:
 org.eclipse.platform 3.7.1.r37x_v20110729-9gF7UHOxFtniV7mI3T556iZN9AU8bEZ1lHMcVK
Comment 1 Andrew Gvozdev CLA 2011-10-08 13:46:02 EDT
It works for me fine with Cygwin toolchain. But I see that file in scanner discovery command is adorned with quotes for cygwin. That is not the case for other toolchains though.
Which toolchain are you using? Can you open project properties, C/C++ Build->Discovery Options, then enclose "${plugin_state_location}/specs.cpp" with double quotes and rebuild the project?
Comment 2 Pafnuty CLA 2011-10-09 07:57:04 EDT
1. Toolchain: Linux GCC
(I've just installed clear Ubuntu 11.04 and used the default compilers settings. Also Eclipse Indigo was just unpacked from zip-archive only.)

2. Enclosing "${plugin_state_location}/specs.cpp" with double quotes resolved the problem immideately! (Even without rebuild.) Thanks!

P.S. Just my idle curiosity: Andrew Gvozdev is a Russian name?
Comment 3 Andrew Gvozdev CLA 2011-10-09 14:11:46 EDT
Thanks for reporting, fixed on master and for 8.0.2.

> P.S. Just my idle curiosity: Andrew Gvozdev is a Russian name?
Yes.
Comment 4 CDT Genie CLA 2011-10-09 14:23:01 EDT
*** cdt git genie on behalf of Andrew Gvozdev ***

    bug 360283:  Discovery command does not work if workspace name has
    spaces

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=c617df3475fcbaed5c3ff44ba9e7b43ff370ecf1
Comment 5 CDT Genie CLA 2011-10-09 14:23:03 EDT
*** cdt git genie on behalf of Andrew Gvozdev ***

    bug 360283:  Discovery command does not work if workspace name has
    spaces

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=df7907c7bd24a6fcafffd18aada3b44e3bf7a731