facebook

No context assist for file with fixed errors

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #523535 Reply

    Fedor Losev
    Participant

    Sometimes, in a complex file with a lot of errors context assist does not work (e.g. for an instance with interface type there are no properties after ., only useless global JS events and so on).

    In general, it should work like it works in Java, everything that can be derived from the context ignoring the errors should be derived, if an interface is valid and errors do not affect item type, in theory there is no reason for context assist not to work even if the rest of file is full of errors.

    That said, given the complexity of incremental compile and language service interaction, I can understand it is not able to provide assistance properly at this stage.

    However, randomly, it fails to provide context assist even after all errors in the file have been fixed. Only after closing and opening the file, context assist would work for this file again.

    I do not have a reproducible code now, it just happens randomly, like after having a lot of errors at some point it stops to evaluate completely but resumes after file close/re-open.

    #523636 Reply

    support-swapna
    Moderator

    Fedor,

    I have filed a bug for the dev team to investigate further.
    Do you see any errors in the .log file located in the workspace dir/.metadata/.log when the content assist fails to work? Please send us the .log file for further investigation.

    Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

    #524477 Reply

    Joelton
    Participant

    same issue here, even for simple files.

    seem code complete does not work in retriving angular templates

    java.lang.IllegalStateException: The node process has crashed.
    Last 9 lines of error console output:
    Bridge type: editor
    Running with TS version:2.2.2
    Initializing endpoint language in version 2.2.2
    Initializing endpoint tslint in version none
    Warning: Cannot read property ‘prototype’ of undefined
    Warning: ng2Walker_1.Ng2Walker is not a function
    Warning: OutputMetadataWalker is not a function
    Warning: ClassMetadataWalker is not a function
    Warning: ValidateInjectableWalker is not a function

    at com.genuitec.eclipse.typescript.services.internal.Bridge.processRequest(Bridge.java:221)
    at com.genuitec.eclipse.typescript.services.internal.Bridge.call(Bridge.java:136)
    at com.genuitec.eclipse.typescript.services.internal.Bridge.call(Bridge.java:123)
    at com.genuitec.eclipse.typescript.services.language.LanguageEndpoint.updateFiles(LanguageEndpoint.java:306)
    at com.genuitec.eclipse.typescript.TypeScriptPlugin$EndpointFilesSynchronizer.run(TypeScriptPlugin.java:298)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    #524491 Reply

    Joelton
    Participant

    image attached. There are no errors in the logs, does project have to be setup up a particular way to suppport angular suggestions. Or is there limited support for angular 4.0?

    “@angular/cli”: “^1.0.3”,
    “@angular/compiler-cli”: “^4.0.0”,
    “@angular/language-service”: “^4.1.1”,

    Attachments:
    You must be logged in to view attached files.
    #524595 Reply

    support-piotr
    Participant

    Joelton,

    There is a bug in CI 5, where angular support is incorrectly set up. The dependency @angular/core should have either fixed version or range “^4.0.0”. The release with an update is coming out in 1-2 days.

    Best regards,
    Piotr Tomiak

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: No context assist for file with fixed errors

You must be logged in to post in the forum log in