Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Reload Issue when using Eclipse Orion CodeEdit-Widget

Hi,

I am having similar issues but using the Aurelia SPA framework, so I think SPA frameworks in general are affected. I didn’t have much time to analyse it, but here is what I have found so far. Maybe it helps tracking this down. Note that I’m using the CodeEditWidget successfully in the SPA setting with a version prior to the first bad commit I found below.

git bisect:

first bad commit is
commit 2bf1ab574d900f603f6e6a0891b11e31b04a57a7
Author: Mike Rennie <Michael_Rennie@xxxxxxxxxx>
Date:   Thu Mar 2 09:55:11 2017 -0500

    Bug 512847 - Race condition getting computed environment

Further Analysis:

- TernServer is not restarted after a navigation took place
   - TernProjectManager.loadTernProjectOptions is not called
   - should be coming from refresh
   - which in turn should be coming from onModified or onInputChanged (if I analysed correctly)
- When setting a breakpoint in the first line of onModified it seems to trigger a race condition, which actually leads to the server being restarted. But this is not reproducible every time.

Regards,
Sebastian

Am 22.09.2017 um 17:23 schrieb Philipp Meyer <meyer.github@xxxxxxxxx>:

Hi,

We are trying to embedd the Eclipse Orion CodeEdit-Widget into an Angular2 application. When navigating away from a page and back to the same page, the Orion does not load in our setting. The issue is described in pictures at https://github.com/meyerpp/orion-codeedit-example/issues/1 and in code at https://github.com/meyerpp/orion-codeedit-example/blob/reloadIssue/src/app/orion/orion.component.ts and https://github.com/meyerpp/orion-codeedit-example/blob/reloadIssue/src/app/app.component.ts.

We have the hope that there is someone with Angular and Eclipse Orion skills immediatly seeing what is going wrong there. :-)

Cheers,

Philipp
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev


Back to the top