-
Notifications
You must be signed in to change notification settings - Fork 133
Fix compilation for CDT 8.2 #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amorellgarcia
This piece of code was removed for kepler and then brought back in because juno failed.
Before I accept your pull request I want to be sure this works in juno and kepler (and I still need to find out how I can easily test a pull request)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, but this method is now removed from Kepler so I changed it with the "if block" that is below.
That block code, is written folllowing the recommendations from http://wiki.eclipse.org/CDT/ScannerDiscovery61/API
As you can in the paragraph:
"New interface ILanguageSettingsProvidersKeeper for modifying language setting providers, which is implemented by the CConfigurationDescription class. See the function testProjectDescription_ReadWriteDescription() in LanguageSettingsPersistenceProjectTests for example code.:"
This patch also should fix the issue #83
|
Not sure it is related but the indexer in the product doesn't work. Serial is not found. |
|
I can now confirm that this fix breaks the indexer in juno. |
|
I thought that index problem was an unrelated problem. I will investigate it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly the if test for CDT 8.2
I assume having this line in the else should do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that in Kepler that static method no longer exists. Maybe in newer versions there is a separate method to set indexer configuration paths.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
och they didn't make it depricated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ConfigurationDataProvider is located at org.eclipse.cdt.managedbuilder.internal.dataprovider package that is internal. I think that internal classes doesn't need to be deprecated before their removal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know. This code should have been in cdt
|
any progress? |
|
I tried with copying the methods (setDefaultLanguageSettingsProviders and getDefaultLanguageSettingsProviders) that were removed in Kepler. In Juno works (of course), but in Kepler there are still issues with the indexer. I think that some settings have changed its location and that there is no simple fix, so maybe you could revert my change until I find a fix. |
|
thanks for the update. I'll remove the fix so we are 200% sure the indexer problem in juno is cause by this. |
|
I've tested it and it is really the line "ConfigurationDataProvider.setDefaultLanguageSettingsProviders(project, cfg, cfgDes);" that causes problems. |
|
Dear Jantje, Sent from my mobile device.
|
|
Dear PS you may not be aware but this mail is send due to a subscription on github. All communication is readable on the web. It may be a good idea to unsubscribe. |
|
When I was debugging the code I noticed that the test Suppose we do and we compile the code in juno. |
|
That test also works in Kepler so we cannot use it to choose between source code. |
|
Actually I don't know how to test before merging. I have been googling to find out but didn't find it :-( |
|
Yes, you can use my repo as a remote repository to test it. |
|
I compiled and tested juno in win32 and linux64 and that worked. |
|
@amorellgarcia |
|
I wanted to reopen this issue (#86) with a new pull but I didn't know, El 07/12/13 13:36, jantje escribió:
|
|
Ok I'll get the change in. |
No description provided.