facebook

Problem with Typescript validation on editing .ts files

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

    Timmy
    Participant

    !ENTRY com.genuitec.eclipse.typescript 4 0 2018-01-18 10:57:48.561
    !MESSAGE TypeError: mainEntryPoint.endsWith is not a function
    !STACK 0
    com.genuitec.eclipse.typescript.services.internal.Bridge$BridgeException: TypeError: mainEntryPoint.endsWith is not a function
    at LookupModuleScriptsProvider.gatherModuleScripts(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\bridge\language\importsManager.js:402:54)
    at LookupModuleScriptsProvider.loadScriptsPerModule(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\bridge\language\importsManager.js:380:36)
    at LookupModuleScriptsProvider.getLookupScripts(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\bridge\language\importsManager.js:292:14)
    at ImportsManager.addLookupScripts(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\bridge\language\importsManager.js:17:68)
    at LanguageServiceHost.getScriptFileNames(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\bridge\language\languageServiceHost.js:84:51)
    at <static>.new HostCache(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\typescript\2.3.4\node_modules\typescript\lib\typescript.js:85833:38)
    at <static>.synchronizeHostData(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\typescript\2.3.4\node_modules\typescript\lib\typescript.js:86080:29)
    at Object.getProgram(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\typescript\2.3.4\node_modules\typescript\lib\typescript.js:86242:13)
    at LanguageServiceHost.getProgram(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\bridge\language\languageServiceHost.js:164:29)
    at LanguageServiceProvider.validate(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\bridge\language\languageServiceProvider.js:38:28)
    at LanguageEndpoint.performValidation(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\bridge\language\languageEndpoint.js:610:43)
    at Main.processRequest(C:\Users\tim.mitchell\.p2\pool\plugins\com.genuitec.eclipse.typescript_2.5.3.201712182257\bin\bridge\main.js:91:33)
    at <js-bridge.call>(Unknown Source)
    at com.genuitec.eclipse.typescript.services.internal.Bridge.processRequest(Bridge.java:234)
    at com.genuitec.eclipse.typescript.services.internal.Bridge.call(Bridge.java:161)
    at com.genuitec.eclipse.typescript.services.language.LanguageEndpoint.performValidation(LanguageEndpoint.java:323)
    at com.genuitec.eclipse.typescript.text.FileLanguageService.getDiagnostics(FileLanguageService.java:293)
    at com.genuitec.eclipse.typescript.text.reconciler.ValidationReconcilingStrategy.addAnnotations(ValidationReconcilingStrategy.java:77)
    at com.genuitec.eclipse.typescript.text.reconciler.AbstractAnnotationReconcilingStrategy.reconcile(AbstractAnnotationReconcilingStrategy.java:83)
    at com.genuitec.eclipse.typescript.text.reconciler.ValidationReconcilingStrategy.reconcile(ValidationReconcilingStrategy.java:72)
    at com.genuitec.eclipse.typescript.text.reconciler.ValidationReconcilingStrategy.reconcile(ValidationReconcilingStrategy.java:62)
    at com.genuitec.eclipse.typescript.text.FileLanguageService.reconcileValidationAnnotations(FileLanguageService.java:365)
    at com.genuitec.eclipse.typescript.text.reconciler.Reconciler.reconcile(Reconciler.java:171)
    at com.genuitec.eclipse.typescript.text.reconciler.Reconciler.access$4(Reconciler.java:154)
    at com.genuitec.eclipse.typescript.text.reconciler.Reconciler$1.run(Reconciler.java:146)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:299)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.base/java.lang.Thread.run(Thread.java:844)
    !SESSION 2018-01-18 11:16:57.599 ———————————————–

    #548528 Reply

    Brian Fernandes
    Moderator

    Timmy,

    Can you tell us how you created this project please? Is this an Angular project, or just a TypeScript project – if the latter, did you add the TypeScript facet to it (Project Properties > Project Facets)

    If you can send us the configuration files (tsconfig.json, package.json, tslint.json), that would help understand your configuration.

    #548539 Reply

    Timmy
    Participant

    Created project as a new Angular project in weblicpse. It’s Angular 4.
    The typescript facet is checked on the project.

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

    Timmy
    Participant

    If I purposely type a bad value in typescript like sadsadaasd, it never shows a problem or error. However, if I do a dot(.) it has type ahead showing me class….It seems the validator is trying to be called and blows up based upon the error log.

    #548582 Reply

    support-swapna
    Moderator

    Timmy,

    Thank you for the files. I could replicate the exception at my end. I have filed a bug for the dev team to investigate further. We will keep you posted about the fix details.

    Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

    #548638 Reply

    Timmy
    Participant

    Is there anything I can do to check code errors? I have to always do build now to see coding errors?

    #548757 Reply

    support-swapna
    Moderator

    Timmy,

    Validation errors like missing imports will be reported as you type your code in the editor. For other coding related errors, you should build the project. You can have the ‘Build Automatically’ turned on for your project so that the project will be built automatically and report errors every time you change the files and save them.

    Hope this helps.

    –Swapna
    MyEclipse Support

    #549008 Reply

    Timmy
    Participant

    The problem is, when the validation module stops working, then missing imports, misspelled or anything validation would tell you during the development, doesn’t work. The only way to show errors like missing imports is to do a “ng build”.

    Can you please check on status?

    #549230 Reply

    support-swapna
    Moderator

    Timmy,

    The dev team will get back to you soon about the status.
    Thank you for your patience.

    –Swapna
    MyEclipse Support

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Problem with Typescript validation on editing .ts files

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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