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

Bug 345596

Summary: while building project cannot modify its files (save actions, change its properties)
Product: [Tools] CDT Reporter: Yevgeny Shifrin <yevshif>
Component: cdt-build-managedAssignee: Project Inbox <cdt-build-managed-inbox>
Status: RESOLVED DUPLICATE QA Contact: Chris Recoskie <recoskie>
Severity: major    
Priority: P3 CC: cdtdoug, jamesblackburn+eclipse, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
20110630.1556.49
none
20110630.1556.34
none
20110710.1042.50
none
20110710.1042.53
none
20110710.1042.59 none

Description Yevgeny Shifrin CLA 2011-05-12 09:21:58 EDT
Hi.

I am trying CDT 8.0 (M7). My C++ project has proprietary build infrastructure:
* unselect "use default build command" and fill my own.
* unselect "Generate Makefile automatically" and select correct Build directory.
* Remove resources from "referesh policy" tab.

During the build process it is not possible to save project resources or changing files properties. As far as I know this issue should be fully supported for indigo.

Please let me know if you need any additional info.

Thanks a lot,
Yevgeny
Comment 1 James Blackburn CLA 2011-05-12 09:40:53 EDT
Please try a recent I-Build of the platform.

*** This bug has been marked as a duplicate of bug 343256 ***
Comment 2 Chris Recoskie CLA 2011-05-12 09:42:13 EDT
I believe James has been tracking a platform issue which was at the root of this.

In M7, the build refresh will lock the entire workspace, but only once the refresh starts.  This has been changed since M7, and now it only locks/refreshes the resources destined to be refreshed.
Comment 3 Yevgeny Shifrin CLA 2011-05-12 09:53:04 EDT
Hi,


@James: Where can I find "I-Build of the platform"?

@Chris: I am not able to modify any resources once build starts (not related to refresh). In my case there are no resources in "refresh policy" tab. So refresh should not be performed at all, still I am not able to modify my project resources. It seems to me like different issue. I would appreciate any suggestions / comments.


Thanks,
Yevgeny
Comment 4 James Blackburn CLA 2011-05-12 09:57:27 EDT
(In reply to comment #3)
> @James: Where can I find "I-Build of the platform"?

http://download.eclipse.org/eclipse/downloads/
Pick a stream integration build.
Comment 5 Yevgeny Shifrin CLA 2011-05-15 05:35:22 EDT
Hi,

I tried eclipse-SDK-I20110511 with cdt-master-8.0.0-I201105130806 and this functionality is working.

Thanks,
Yevgeny
Comment 6 Yevgeny Shifrin CLA 2011-06-30 09:03:54 EDT
Hi,

I tried official eclipse Indigo release and for some reason I am not able to save resource while building. I would appreciate your help with. I was really waiting for this functionality  :(

Attached jstack output during building and trying to save a file which was taken every thecond period.

My build id 20110615-0604.

Thanks,
Yevgeny
Comment 7 Yevgeny Shifrin CLA 2011-06-30 09:05:43 EDT
Created attachment 198905 [details]
20110630.1556.49
Comment 8 Yevgeny Shifrin CLA 2011-06-30 09:06:36 EDT
Created attachment 198906 [details]
20110630.1556.34
Comment 9 Yevgeny Shifrin CLA 2011-06-30 09:33:46 EDT
Hi,

After additional investigation, it seems that in clean Indigo release this feature is working.
I installed the following:
* p4eclipse: There is no available version for 3.6 so I had no choice but using 3.6 version (could this cause this issue?)
* AnyEdit tool
* ShellEd 1.0.4

Is there a quick way to figure out which one causes this problem?

Thanks a lot,
Yevgeny
Comment 10 Yevgeny Shifrin CLA 2011-06-30 09:40:22 EDT
Regarding p4eclipse, I meant to say that there is no available version for 3.7, so I used version for 3.6.
Comment 11 James Blackburn CLA 2011-07-01 13:06:30 EDT
What builders are registered on the project?
Comment 12 Yevgeny Shifrin CLA 2011-07-05 04:39:46 EDT
Hi,

I tried to investigate which eclipse plug-in installation (from above list) causes this problem. I used clean eclipse CDT and installed these plug-ins one after another. After each installation, I checked this functionality. Unfortunately I am not able to reproduce this issue, it works. Very strange :(

Before, with the same workspace and project: with clean eclipse functionality was ok, with not clean installation the problem occurred. By mistake I did not keep the problematic eclipse installation.

Regarding your question: 
The same project worked ok on one eclipse installation and had problems on other so this is probably not related to project configuration. Builders are registered on the project: CDT Builder and Scanner Configuration Builder.

Please let me know if I can help investigate this issue. Does jstack files provide a clue of what caused this behavior?

Thanks,
Yevgeny
Comment 13 Yevgeny Shifrin CLA 2011-07-10 03:48:36 EDT
Created attachment 199382 [details]
20110710.1042.50
Comment 14 Yevgeny Shifrin CLA 2011-07-10 03:49:08 EDT
Created attachment 199383 [details]
20110710.1042.53
Comment 15 Yevgeny Shifrin CLA 2011-07-10 03:49:31 EDT
Created attachment 199384 [details]
20110710.1042.59
Comment 16 Yevgeny Shifrin CLA 2011-07-10 03:50:02 EDT
Hi,

After additional investigation it seems that the functionality is ok if I choose build project in context menut of C/C++ Projects view. If I select build using:  context menut of C/C++ Projects view -> Build Configuration -> Build Selected the problem happens. Please refer to jstack attached.

Thanks,
Yevgeny
Comment 17 James Blackburn CLA 2011-07-10 05:56:41 EDT
Please open another bug for any issues you've identified in the latest release.
Comment 18 Yevgeny Shifrin CLA 2011-07-10 09:57:17 EDT
(In reply to comment #17)
> Please open another bug for any issues you've identified in the latest release.

Bug was opened:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351655