This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I'm using Code Composer Studio v5.1 and I'm facing issues when trying to use the Content Assist (code completion) functionality.
When I try to write the beggining of a word (variable's or funcion's name) and then hit "ctrl+space", nothing happens.
But if I just hit "ctrl+space" then I see a list with all possible options.
Also, other uses of Content Assist still work, like writing a structure's whole name and then putting a "." (dot) after, or putting a "->" after a pointer's name. In these occasions there appears the variable's subitems.
Anybody else has this problem?
Thank you,
Rafael Daciuk
To eliminate the workspace issue, can you just create a new workspace and import your project there. That will be easier than me sending you mine. Let me know if you still have the issue, in the meantime, I'll try this on M2 release.
Raj
Raju,
I tried this, and it did not work.
The problem remains.
I also remembered that I had already tried this before.
I will try to install v5.1 M3 and see what happens, I saw today that it was released on monday.
Thank you,
Rafael
Well, just to keep you informed, I tried v5.1 M3 and it also did not work.
I really don't know what else to try.
Another interesting information, check the log message generated when my "ctrl+space" fails.
Apparently, there is a problem with an implementation of RTSC's content assist, in class RTSCHelpProvider.
==========================================
!ENTRY org.eclipse.ui 4 0 2011-04-06 20:22:18.330
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.cdt.core.model.ILanguage.getASTTranslationUnit(Lorg/eclipse/cdt/core/model/ITranslationUnit;I)Lorg/eclipse/cdt/core/dom/ast/IASTTranslationUnit;
at org.eclipse.rtsc.xdctools.ui.contentassist.RTSCHelpProvider.getFunctionSummaries(RTSCHelpProvider.java:48)
at org.eclipse.rtsc.xdctools.ui.contentassist.RTSCHelpProvider.getMatchingFunctions(RTSCHelpProvider.java:144)
at org.eclipse.cdt.internal.ui.text.CHelpSettings.getMatchingFunctions(CHelpSettings.java:138)
at org.eclipse.cdt.internal.ui.CHelpProviderManager.getMatchingFunctions(CHelpProviderManager.java:169)
at org.eclipse.cdt.internal.ui.text.contentassist.HelpCompletionProposalComputer.computeCompletionProposals(HelpCompletionProposalComputer.java:91)
at org.eclipse.cdt.internal.ui.text.contentassist.ParsingBasedProposalComputer.computeCompletionProposals(ParsingBasedProposalComputer.java:55)
at org.eclipse.cdt.internal.ui.text.contentassist.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:300)
at org.eclipse.cdt.internal.ui.text.contentassist.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:261)
at org.eclipse.cdt.internal.ui.text.contentassist.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:270)
at org.eclipse.cdt.internal.ui.text.contentassist.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:223)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1834)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:556)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:553)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$14.run(CompletionProposalPopup.java:1544)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.incrementalComplete(CompletionProposalPopup.java:1538)
at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1659)
at org.eclipse.cdt.internal.ui.editor.CEditor$AdaptedSourceViewer.doOperation(CEditor.java:337)
at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1509)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4618)
at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4507)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4933)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2523)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2697)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2661)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2495)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Good Morning, Raju.
I finally was able to solve the problem.
I think what was happening was that my Code Composer was having trouble with other versions of XDCTools that were installed with Code Composer v4.
Whenever I made a new installation of CCSv5 it searched for tools on Texas Instruments's folder under Program Files, found these other XDCTools and added it to CCSv5, which shouldn't be a problem from my point of view.
I reinstalled CCSv5 and told it NOT to add these other tools versions, and now Content Assist is working.
So now I would like to report this problem as a BUG for CCSv5, since I should be able to work with different versions of any tools installed on my system, without having any impact on CCS.
I make myself available to aid by providing any additional information needed.
Thank you very much for your concern and help.
Regards,
Rafael
Rafel,
That's great that you were able to figure this out. I will forward this to the XDC developers. Hopefully they can figure out the issue and resolve in an upcoming relese.
Raj
Hi Rafael,
What versions of XDCtools are installed in your system? These problems will occur when you have some old versions of XDCtools co-exist along with the newer ones. With CCS5.x we recommend that users only use XDCtools 3.20.01 and later releases.
Regards
Amit
Hello Amit.
My CCSv4 Installation (which contains the XDCTools conflicting with CCSv5's ones) XDCTools versions are "xdctools_3_16_02_32" and "xdctools_3_20_08_88".
So possibly it was "xdctools_3_16_02_32" which caused my problems.
Thank you,
Rafael
Hi Rafael,
You are absolutely correct. XDCtools 3.16 and 3.20 are not happy together on one system. XDCtools 3.16 only supports CCS4.10 and earlier releases. However you should be able to use multiple XDCtools 3.20.x releases on your system without any problem.
Regards
Amit
Thank you very much Raju and Amit.
I really appreciate both of your help and concern.
Regards,
Rafael Daciuk