Broken content assist

With "content assist" I mean the feature that pops up a selection of choices to complete the code you are writing, such as function & class names and variables.
Now, I just figured out why it doesn't sometimes..
My code looks like:
var prds:Array = new Array();
for each (var prd:Product in prds) {
// empty
prd.foo();
Content assist fails on the last line. It does not provide any suggestions based on Product for the variable "prd".
However, the code compiles, of course, without errors or warnings.
Is there a bug report on this?
PS: Of course I could declare the "prd" variable at top-level and then it would work. The point here is that content assist fails on code that compiles.

That is because till FB 4.0.1, variables were being scoped at block level in Flash Builder's code model. So in your code, 'prd' variable is visible only inside 'for' block. This is fixed in newer builds ( https://bugs.adobe.com/jira/browse/FB-27662 )
-radhakrishna

Similar Messages

  • Content Assist is not showing the id

    My problem is I have a custom componts that created by me.
    but problem is flash builder is not showing the id of it for cntrol+space -->content Assist
    here is my layout/architecture
    Application
    TabNavigator out bound container(inside application)
    NavigatorContent (inside NavigatorContent)
    custom component name CustomerDetails{s:Group}(inside CustomerDetails)
    There is a custom component name CustomerDetails{based on s:Group},it is on NavigatorContent,and it is on TabNavigator, and TabNavigator is on Application

    sorry.there was a mistaken.this is the heirarchy
    Application
    TabNavigator out bound container(inside application)
    NavigatorContent (inside TabNavigator )
    custom component name CustomerDetails{s:Group}(inside NavigatorContent )
    any suggessions ?

  • Conflict between OEPE 12.1.2.1 and WTP 3.5.1 on content-assist in el expressions

    Hello,
    In kepler when I install the OEPE plugin the content-assist in web pages with el expressions doesn't work if the ManagedBean isn't declared in a faces-config.xml file.
    In my test I have a Managed Bean annoted @ManagesBean, with WTP only when I type
    <h:outputLabel value="#{testMB01.}"/>
    the content-assist propose to me the getters ans setters of my Managed Bean but if I install the OEPE the content-assist propose anything.
    With OEPE the only way to have the content-assist to work is to declare my Managed Bean in a faces-config.xml but I don't want this because I'm with a JEE 6 application.
    Anybody have an idea ? I try to install only the server adapter to allow WTP deploy to WLS but unfortunatly all OEPE is installed .
    Regards,
    Stephane

    For OSB, WLP etc. installations you do use the link mechanism to bring the OSB or WLP plugins on top of the standard OEPE plugins.That's done for legacy reasons having to do with those product installers. The linked plugins are arranged in runnable format, not repository format.
    This feature worked in Eclipse Juno 4.2 SR1 and OEPE 12.1.1.2Perhaps you were doing something different. One of the reasons that Eclipse does not recommend the dropins folder method of installation is that there is no feedback if something goes wrong. Any number of things could be getting in the way. If you were using the install UI, you'd be informed of the problems before any changes are made. With dropins, Eclipse tries to install and start as much as it can and you don't really know what's going on.
    - Konstantin

  • Java Content Assist in CQ 5.6 / CQ 5.5

    In order to make Java Content Assist work in CQ 5.6/ CQ 5.5, download the file crxde-missing-libs-1.0  from : https://dev.day.com/packageshare/packages/public/day/crxde/crxde-missing-libs.html and install it.
    Once installed, go to /etc/crxde/profiles/default/libs/ in your Editor and refresh it. Once it is refreshed, right click and  select Build:Refresh Classpath.

    Hi,     
       The issue seems to be with CQ 5.6 & Java 1.7.  One of the workaround is by adding -XX:-UseSplitVerifier option to the JVM.   Also you have to update the API from 'com.day.cq.workflow' to 'com.adobe.granite.workflow' .  
    Thanks 
    Siva

  • Content assistant problem

    how to implement content assisatant (ctrl+space) in JavaFx textArea?

    Situation has changed - now content assistant is working almost ok, for both editors. CreatePage0 function is the same, the only change in code is:
    @Override
    protected IEditorPart getEditor(int pageIndex) {
    //return super.getEditor(pageIndex);
    super.getEditor(pageIndex);
    if (composite != null)
    Control focus = composite.getDisplay().getFocusControl();
    if (focus !=null){
    while (focus.getParent() != null && focus.getParent() != composite){
    focus = focus.getParent();
    if (composite.getChildren()[0].equals(focus)){
    if (logicInputActive != true)
    logicInputActive = true;
    setActiveEditor(logicInputEditor);
    activateSite();
    }else if (composite.getChildren()[1].equals(focus)){
    if (logicInputActive != false)
    logicInputActive = false;
    setActiveEditor(logicOutputEditor);
    activateSite();
    StructuredTextEditor o = logicInputActive ? logicInputEditor : logicOutputEditor;
    return o;
    So i get the element with focus, and whether it's child of logicInputEditor(it "is in" composite.getChildren()[0]) or logicOutputEditor(composite.getChildren()[1]). This part of code works fine(or at least i think so...). Problem is quite weird - if you click on editor TWICE or once + type something(some random letters) - everything is fine(content assistant shows in this editor), if you click only once content assistant shows in last editor in which you clicked twice. So even if getEditor() function returns "correct"(active) editor, for some reason content assistant shows in "wrong" editor. I tried to override getActiveEditor, but it doesn't change anything. Any ideas what can cause this problem and how can i fix that?

  • Content Assist Not Working

    Content Assist does not work for me in Flash Builder 4.5 on Mac OS 10.6. For example, I type a variable definition and get no suggestions for variable. Type.
    Content Assist does work if I create a new project and a new class, but even with that it stops working at some point (after a save?).
    I've tried restarting FB and running the -clean command.

    Thanks for your help, but in preparing a response I figured out files need to be in "src" to have content assist. My project had been imported from a Flash project and the files were at the same level as "src" and not inside "src".

  • FB3 IDE 'Content Assist' bg color too light to see.

    Hey all,
    The bg color for selected row on Content Assist (Code
    Hinting) in FB3 IDE is too light for me to distinguish.
    Does anyone know where this setting can be changed? I have
    checked everywhere in the "Preferences" area, can't find it.
    Thanks,
    Huntër

    Try with this
    Windows -> Prefrences -> General -> Editors -> Text Editors -> Annotations -> Right side there is list from which select -> Actionscript occurance.

  • Change highlight color for content assist

    Hello. The highlight color for current selection in Content Assist (Code .. Hinting) in FB3 IDE is too light for me to distinguish. How it can be changed?

    Try with this
    Windows -> Prefrences -> General -> Editors -> Text Editors -> Annotations -> Right side there is list from which select -> Actionscript occurance.

  • How to get content assist for Facelets with ICEFaces 1.8,RAD 7.5,+WAS6.1

    We use RAD 7.5 and WAS 6 to run ICEFaces 1.8.
    I added Facelets by following the instructions in ICEFaces "TimeZone Getting Started."
    When I installed Facelets, I found I was missing el-ri-1.0.jar. So I googled the jar, found one from lord-knows-where, and stuck it in. It did the trick.
    Facelets works great, but I don't have content assist for ui.
    My jsp:root is:
    <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:ui="http://java.sun.com/jsf/facelets">
    How do I get content assist for ui?
    Thanks,
    Eli

    Hi Soma,
    that will not work. The measure is related to Activity id. The measure value per row is not value for LastActivityid.
    I want to show the measure value for last activity id and not this activity id. So there is an indirect relationshipid. Ideally the path would be :
    Activity id --> Figure out the last activity id for this activity id --> Get the measure value for last activity id..
    - Girija
    Please mark responses as answered if it helped you.. This helps others... - Girija Shankar Beuria

  • Code/Content Assist and Maven Multimodule

    Hi All,
    I've found a VERY weird anomaly while developing with Flex Mojos (Maven Plugin) and Flex in Eclipse.
    What I've noticed is if I embed the Flex 4 project inside of a Maven Multimodule project, the Code/Content Assist in Eclipse/Flex Builder seems to go away.
    Has anyone ever experienced this before?
    Thanks!!
    Ronak Patel

    Hi Jason,
    Yes the FXP file worked. There is something about my project that Flex doesn't like.
    I do not get any errors like those described in the bug. It just doesn't do anything when you type the dot.
    I do have a library from a loaded swf, but it all works. I also described my project to have two component directories. Please see previous post.
    Could this be the problem?
    And, could you please tell me how to find my "workspace" directory.
    And, one more thing...
    Could you please let me know how to "try a clean workspace". I'm tempted to merely delete the project, leaving the files, then re-import.
    Thanks,
    Shannon

  • Getting the type in content assist extension

    Hello,
    In a plugin which extends the JDT, I need to add proposals to the content assist.
    To do that, I would like to know the type of the prefix expression.
    For example, when the user enters the code below, Eclipse gives in the content assist the methods of the Random class :
    Random random = new Random();
    random.
    So the proposal computer finds the type of the "random" variable.
    How does it work ?
    Regards,
    Romain.

    Hello Joy,
    Actually you don't need to do this, you can use the method GET_RELATIVE_NAME( ) to do the job for you!
    DATA: gr_struct       TYPE REF TO cl_abap_structdescr,
          gt_components   TYPE cl_abap_structdescr=>component_table,
          gs_component    TYPE cl_abap_structdescr=>component,
          gv_actual_name  TYPE string.
    * Get the interface structure fields
    gr_struct ?= cl_abap_typedescr=>describe_by_name( 'ZIF_TEST=>STR01' ).
    gt_components = gr_struct->get_components( ).
    LOOP AT gt_components INTO gs_component.
    * Get actual name
      gv_actual_name = gs_component-type->get_relative_name( ).
      WRITE: / gv_actual_name.
    ENDLOOP.
    If you want more DDIC details for the fields, you can try this way:
    DATA: gr_element TYPE REF TO cl_abap_elemdescr.
    LOOP AT gt_components INTO gs_component.
      gr_element ?= gs_component-type. "Narrow Casting
      gs_fieldinfo = gr_element->get_ddic_field( ). "Get the DDIC info
      WRITE: / gs_fieldinfo-rollname.
    ENDLOOP.
    BR,
    Suhas
    Edited by: Suhas Saha on Jan 31, 2012 2:57 PM

  • Content assist tool doesn't work for me sometimes

    When I'm practising the "Populating an ArrayCollection with retrieved data" exercise in day 2, and adding a result event in <s:HTTPService ...> MXML tag, I pressed the Ctrl + Spacebar, but no content assist appeared. It only displayed "no proposals". When I do the same thing in other tags, the content assist tool works fine. Could someone tell me why that happens? BTW, my flash builder version is the lastest version, that is 4.0.1.277662, and my OS is Window XP. Thanks in advance.

    christ, i restart my flash builder, and it works fine right now.

  • Content Assist Error

    While using Flash Builder 4 beta things will be working fine and then all of a sudden I get a popup error saying:
    "Content Assist" did not complete normally.  Please see the log for more information.
    java.lang.NullPointerException
    I'm not sure where the log file is, but if I restart Eclipse (i.e. Flash Builder) things will work again, for a little while, then the error comes back.
    Any ideas?

    HI,I had get this error to.
    And this is the log file . Is there any method to fix it?thanks.
    !ENTRY org.eclipse.ui 4 4 2009-09-25 12:32:13.878
    !MESSAGE "Content Assist" did not complete normally.  Please see the log for more information.
    !ENTRY org.eclipse.ui 4 0 2009-09-25 12:32:13.878
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.codemodel.internal.asdoc.ClassCommentRef.<init>(ClassCommentRef.jav a:36)
        at com.adobe.flexbuilder.codemodel.internal.tree.ClassNode.getDynamicCommentRef(ClassNode.ja va:698)
        at com.adobe.flexbuilder.codemodel.internal.tree.BaseDefinitionNode.getComment(BaseDefinitio nNode.java:273)
        at com.adobe.flexide.as.core.contentassist.ActionScriptCompletionProposal.<init>(ActionScrip tCompletionProposal.java:145)
        at com.adobe.flexide.as.core.contentassist.ActionScriptCompletionProcessor.getTypeProposal(A ctionScriptCompletionProcessor.java:654)
        at com.adobe.flexide.as.core.contentassist.ActionScriptCompletionProcessor.createProposalsFr omDefinitions(ActionScriptCompletionProcessor.java:903)
        at com.adobe.flexbuilder.dcrad.core.DCRADContentAssistProcessor.createProposalsFromDefinitio ns(DCRADContentAssistProcessor.java:131)
        at com.adobe.flexide.as.core.contentassist.ActionScriptCompletionProcessor.createLocalVariab leProposals(ActionScriptCompletionProcessor.java:753)
        at com.adobe.flexide.as.core.contentassist.ActionScriptCompletionProcessor.computeCompletion Proposals(ActionScriptCompletionProcessor.java:1091)
        at com.adobe.flexide.mxml.core.editor.MXMLActionScriptCompletionProcessor.computeCompletionP roposals(MXMLActionScriptCompletionProcessor.java:161)
        at com.adobe.flexbuilder.dcrad.core.DCRADContentAssistProcessor.computeCompletionProposals(D CRADContentAssistProcessor.java:103)
        at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentA ssistant.java:1832)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionP roposalPopup.java:556)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposal Popup.java:553)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopu p.java:488)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProp osalPopup.java:482)
        at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssi stant.java:1660)
        at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:835)
        at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.ja va:1533)
        at com.adobe.flexide.editorcore.editor.FlexSourceViewer.doOperation(FlexSourceViewer.java:15 8)
        at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129)
        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:1 09)
        at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.jav a:508)
        at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880 )
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboar d.java:569)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboar d.java:125)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1191)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Control.traverse(Control.java:3658)
        at org.eclipse.swt.widgets.Control.translateMnemonic(Control.java:3502)
        at org.eclipse.swt.widgets.Composite.translateMnemonic(Composite.java:1065)
        at org.eclipse.swt.widgets.Control.translateMnemonic(Control.java:3520)
        at org.eclipse.swt.widgets.Display.translateMnemonic(Display.java:4401)
        at org.eclipse.swt.widgets.Display.filterMessage(Display.java:1205)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3469)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

  • Content assist only displays the flash.errors package

    Has someone encountered this before? Content assist is not working for me within Flex Builder 3. I just updated to the latest stable sdk 3.4.0.6955. I was starting a project and when I typed "import flash." all that was offered by content assist was "errors".
    See picture below and thanks in advance for any and all help!
    Jake

    Hey there!
    I happen to have the exact same problem... and I'm yet to find a solution. Happened yesterday and somehow I managed to fix it. Don't know what I did but it envolved importing/exporting, clearing the workspace... whatever, it just got back on track the same way it got out of it... Happend again today... and I haven't been able to fix it. Have you found a solution for this? I'm using the 3.5.0.12683 sdk.
    Edit: It's working again... all I did was open a *.as file that happened to implement the Event class... don't know if that triggered it.

  • Content assist for Trinidad tags in RAD

    I am using RAD 7.0.0.1 and using trinidad tags in JSF pages having .jspx extension. I am not able to get content assist for trinidad tags using cntrl+space. Can anybody help me in resolving this?
    Thanks in advance

    great, that looks really good and useful!
    -Henrik
    Am 31.07.2015 um 15:19 schrieb Juergen Haug:
    > Hi all,
    >
    > there is a new improved version of the content assist in the action code editor. It provides intuitive completion proposals for chained expressions of model elements. With that you can easily write expression for many actions like sending messages, invoking operations or accessing data attributes. As before, these expression get automatically translated to target code during generation. In addition, the proposals are annoted with type information, so that you can safely embed them in your target detail code.
    >
    >

Maybe you are looking for

  • Error using tabs in Web Dynpro application

    Hi all, I am working on a web Dynpro application where I want to use "tabs" to display different vendor details, basically I need two tabs one for header data, one for address data. What I did is I created a group and there created the element for th

  • This thing is not working!! i need help please!!!

    i picked up a ipod nano today figureing that its a pretty good mp3 player for my needs... i get home turn the thing on mess with it for a few mins turn it off plug it in to charge and it still turns on and off so im figureing okay cool ill install my

  • Calling Stored Function from TopLink

    I have a simple Stored Function that I'm trying to call using TopLink API: TopLink Version: 10.1.3.3. Oracle JDBC Driver: ojdbc5.jar (Oracle JDBC Driver version - "11.1.0.6.0-Production+") Stored Procedure: Function Get_Email_Address_Id(P_EMAIL_ADDRE

  • Please instruct how to display Chinese in URL-based portlet

    Hi, I have installed Chinese support opca for my oracle portal and I tried to display Java Chinese portlet successfully. I've been testing the url-service now, and I can see the url sample portlets successfully too. However, when I try to display a w

  • Table to find the interfaces for a system

    Hi, I need to find the number of inbound and outbound interfaces for a particular system. Is there any specific table to find the total number of entries? <b>WE20</b> is a transaction to find it out manually. But I guess there is some table where we