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

Bug 361862

Summary: "Automatically build the RPM packages proposals list" preference ignored
Product: [Tools] Linux Tools Reporter: Rick Rankin <rrankin1424-eclipse>
Component: RPMAssignee: Alexander Kurtakov <akurtakov>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cradle-of-mail, iulia.vasii, linux.rpm-inbox, rui.marques, rustamabd, sportacandy, teodor.madan
Version: 0.4   
Target Milestone: 4.0.0   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/42145
https://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.git/commit/?id=6622043dcac6c322914de7c62a09352b76dacbad
Whiteboard:
Attachments:
Description Flags
Version Info
none
proposed patch none

Description Rick Rankin CLA 2011-10-24 15:57:04 EDT
As strange as it may sound, I do most of my editing, even for RPM specfiles, on a Windows-based laptop. Every time I open an RPM specfile in Eclipse with the Specfile Editor package installed, Eclipse starts trying to "Update RPM package proposal list" (that's the message I see in the status bar). Once the updating starts, it never stops, and there doesn't appear to be a way to cancel it. I've tried unchecking the preference for "Automatically build the RPM packages proposals list" in Preferences->Specfile Editor->RPM Completions; however, it appears that setting is ignored, at least on Windows.

For now, at least, all I'm interested in is the syntax highlighting functionality of the specfile editor, especially since I don't expect most of the functionality to work on a Windows platform. It would be very helpful if disabling this option prevented Eclipse from trying to update the proposals list.
Comment 1 Rustam Abdullaev CLA 2012-10-28 16:27:18 EDT
I'm also on Windows, and I'm also experiencing this problem.
Eclipse Juno randomly starts doing this and eats all the CPU.
The only cure is Eclipse restart.

Version: Juno Release
Build id: 20120614-1722
Comment 2 Daniel Froemmel CLA 2012-10-31 19:06:50 EDT
I confirm this bug (using Eclipse Juno on Windows XP). As soon as i start building a project Juno starts RPM proposal update and never stops.
Comment 3 Daniel Froemmel CLA 2012-10-31 19:16:09 EDT
A workaround that works for me: go to you eclipse plugins directory (e.g. C:\Program Files\Eclipse\Plugins) and delete all files named org.eclipse.linuxtools.rpm.%
Comment 4 Hironori Komaba CLA 2012-11-27 01:52:58 EST
Another workaround, and this seems perfect for my needs.

Create an empty file 'C:\Users\your_account\.pkglist'.
This file path must equal to "Path to packages list file" given at
 Preferences->Specfile Editor->RPM Completions

Just after touching this file, proposal list update immediately stops.
Comment 5 Alexander Kurtakov CLA 2013-03-28 07:49:04 EDT
Should be fixed in nightly builds now. Would someone please verify?
Comment 6 Alexander Kurtakov CLA 2013-05-27 14:32:27 EDT
Closing as fixed for 2.0. Please reopen with details if the problem is still there.
Comment 7 Sumonto Ghosh CLA 2013-08-28 16:56:57 EDT
Created attachment 234885 [details]
Version Info
Comment 8 Sumonto Ghosh CLA 2013-08-28 16:59:01 EDT
Hi
I see the never ending rpm .. bug on the IDE for C/C++ version.
I am new to Eclipse kindly guide me if I need to update it.

-----
  Eclipse IDE for C/C++ Developers	2.0.0.20130613-0530	epp.package.cpp	null
-----

thanks.
Comment 9 Rui Marques CLA 2014-09-05 05:07:22 EDT
I am experiencing the behavior described here in Eclipse Luna Release (4.4.0)
Build id: 20140612-0600

OS: Windows 8
Comment 10 Alexander Kurtakov CLA 2014-09-05 05:34:39 EDT
Can someone on windows machine come up with a patch? I don't have access to such machine so it's up to others to test and fix.
Comment 11 Iulia Vasii CLA 2015-02-09 11:53:06 EST
Created attachment 250632 [details]
proposed patch
Comment 12 Iulia Vasii CLA 2015-02-09 11:53:56 EST
Same here. I wanted to turn off "Automatically build the RPM packages proposals list" option by setting the default value in plugin_customization.ini, but it didn't work.

I tried to fix this, please see the attached patch.
The problem was that only the instance scope was used when searching the preference values, ignoring the default values set by user (default scope should be used for this case).

If someone can have a look, thanks!
Comment 13 Alexander Kurtakov CLA 2015-02-18 10:15:23 EST
(In reply to Iulia Vasii from comment #12)
> Same here. I wanted to turn off "Automatically build the RPM packages
> proposals list" option by setting the default value in
> plugin_customization.ini, but it didn't work.
> 
> I tried to fix this, please see the attached patch.
> The problem was that only the instance scope was used when searching the
> preference values, ignoring the default values set by user (default scope
> should be used for this case).
> 
> If someone can have a look, thanks!

Would you please provide the patch in Gerrit? https://wiki.eclipse.org/Linux_Tools_Project/Getting_Involved#Submitting_.22Patches.22
Comment 14 Iulia Vasii CLA 2015-02-18 10:18:18 EST
Sure, I will try to add the patch in Gerrit and let you know. Thanks!
Comment 15 Eclipse Genie CLA 2015-02-18 11:34:42 EST
New Gerrit change created: https://git.eclipse.org/r/42145
Comment 16 Iulia Vasii CLA 2015-02-18 11:39:23 EST
Patch was added in Gerrit.
Comment 17 Alexander Kurtakov CLA 2015-03-05 09:30:26 EST
Sorry for the long delay. We had to push Luna SR2 out (it was not possible to put your patch in it as the branch was closed for non-committer patches for weeks for IP-clearance. I'm looking into the patch for mars now.
Comment 19 Alexander Kurtakov CLA 2015-03-06 09:35:32 EST
Thanks for the patch, works for me that way. Pushed to master.
Comment 20 Iulia Vasii CLA 2015-03-11 08:56:27 EDT
Thank you! No problem with the delay.