by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jan Koehnlein
    @JanKoehnlein
    Currently we don't have such plans. We did it once for a customer and it was a pain to get it working (lot of manifest fixing etc). Any help is of course very welcome.
    Niklas Rentz
    @NiklasRentzCAU
    But please tell me how you would develop some Java/Xtend code in Eclipse for example for the language server of the theia-xtext-sprotty-example such that Eclipse knows about the sprotty-server API?
    Jan Koehnlein
    @JanKoehnlein
    We use gradle and buildship. Have a look at https://github.com/TypeFox/theia-xtext-sprotty-example
    Damian Rivas
    @DamianRivas
    What's the DiagramWidgetRegistry and why is it gone in v0.6.0?
    Jan Koehnlein
    @JanKoehnlein
    In Theia, there used to be an EditorRegistryonly, so we copied it more or less to access diagrams in a similar way. As Theia has a WidgetRegistry now, we use that.
    Miro Spönemann
    @spoenemann
    @/all I made a PR that adds a very basic feature: the ability to dispatch requests in the client. eclipse/sprotty#103
    It digs quite deep into the base architecture, please review!
    Also please assign the current milestone (v0.7.0) whenever you fix any issues. We’ll use that for the changelog, which we’ll start maintaining with the next release.
    It would be nice to release v0.7.0 before ECE (October 21)
    Niklas Rentz
    @NiklasRentzCAU
    Hey guys,
    I was wondering for some time now, why the svg generation is called each time the diagram is drawn. Every move or zoom of the diagram will cause Sprotty to call the generation again, although it could just keep the old svg and put a different transformation around it. This would be much quicker because the svg just has to be rendered new and not generated, which for bigger diagrams just makes it feel laggy when zooming or moving.
    Miro Spönemann
    @spoenemann
    known issue :-)
    Niklas Rentz
    @NiklasRentzCAU
    Okay, thank you. I did not look through the issues careful enough.
    Saul Shanabrook
    @saulshanabrook
    Screen Shot 2019-11-02 at 12.17.45 PM.png
    Hey all. I am interested in using Sprotty to visualize some program graphs. Currently I am using cytoscape JS.
    Could you point me to any standalone examples of rendering some data with sprotty in a web app?
    Philip Langer
    @planger
    @saulshanabrook Looking at your example, I think the npm-dependencies example seems to be the closest to what you are looking for. See https://github.com/TypeFox/npm-dependency-graph
    I'm not sure this example is up to date to the latest sprotty version, but still it should be a good starting point.
    A few more simpler examples wrt the model source are directly in the sprotty repo: https://github.com/eclipse/sprotty/tree/master/examples
    Saul Shanabrook
    @saulshanabrook
    Thank you!
    Philip Langer
    @planger
    @JanKoehnlein I think the automatic publishing of the npm packages is failing again. On https://www.npmjs.com/package/sprotty only 0.8.0-next.ff11b36 from 16th of Oct is available, even though there have been a couple of commits on master since then.
    Is there something I can do to retrigger? Thanks a lot in advance!
    Jan Koehnlein
    @JanKoehnlein
    Seems to be a failing test on our publishing server.
    1) ThunkView
    "before all" hook for "renders on change":
    Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/var/jenkins_home/jobs/sprotty/jobs/sprotty-next/workspace/src/base/views/thunk-view.spec.tsx)
    In the long run, it would be cool if we could publish from the Eclipse servers. If you want to help implementing that, that would be great.
    Jan Koehnlein
    @JanKoehnlein
    Last successful build was eclipse/sprotty@ff11b36
    First broken build eclipse/sprotty@71110c7
    Jan Koehnlein
    @JanKoehnlein
    I increased the timeout to 10s (!) Seems to work. I guess at Eclipse we'd have faster servers
    Philip Langer
    @planger
    @JanKoehnlein Great, thanks a lot for fixing the build! We're currently setting up the publishing process from the Eclipse servers for GLSP, so I guess, once this is done, we can let you know how it went and see if it can simply be adapted to Sprotty as well. (cc @tortmayr)
    Titouan Vervack
    @tivervac
    Just wondering, is there any ETA on a 0.8.0 release?
    Jan Koehnlein
    @JanKoehnlein
    @tivervac Not yet, do you have some special issues you need to have fixed?
    Titouan Vervack
    @tivervac
    I think most of the issues we need fixed are already merged, there's just no release with them in it yet
    Philip Langer
    @planger
    @JanKoehnlein As discussed a few weeks ago, @tortmayr outlined how we set up the NPM and Maven publishing from the Eclipse infrastructure in order to resolve the timeout issue preventing the publishing to npmjs. @tortmayr outlined the necessary steps here: eclipse/sprotty#150
    Does this help? Is this something you would like to pursue? I'm happy to help in any case.
    Maged Elaasar
    @melaasar
    Hi All. Is there an example of how a label can be anchored to different points on an edge as opposed to the center?
    Philip Langer
    @planger
    @melaasar Yes, in the classdiagram example. See edge schema and look out for the edgePlacement objects in the label schemas:
    https://github.com/eclipse/sprotty/blob/master/examples/classdiagram/src/model-source.ts#L309
    Sri
    @pamarti
    Is there an example using context menu? TIA
    Philip Langer
    @planger
    @pamarti Unfortunately not yet in the Sprotty examples directly, as currently there only exists an implementation of the context menu service for Theia.
    An example of how to use it is e.g. in the GLSP example (GLSP, being a framework that uses Sprotty):
    https://github.com/eclipse-glsp/glsp-client/blob/master/src/features/context-menu/delete-element-context-menu.ts
    You'll have to bind the context menu service implementation for Theia accordingly:
    https://github.com/eclipse-glsp/glsp-examples/blob/6a28dcfe91bfd4647b1ec9c767eec6444abcf07f/client/workflow/workflow-theia/src/browser/diagram/workflow-diagram-configuration.ts#L42
    Sri
    @pamarti
    @planger thank you.
    Johannes Albrecht
    @albrechtjohannes
    Hi all,
    I just found sprotty via the examples of elkjs and find it pretty interesting.
    As the project I'm currently working on is written in React (with Typescript), I'm curious to know, if there is some kind of an example for a React integration.
    I saw that this somehow was mentioned in the old repo (theia-ide/sprotty#203).
    Jan Koehnlein
    @JanKoehnlein
    Sprotty itself uses snabbdom as the virtual dom framework, but it can be embedded in React apps. If you want to use JSX for both, React and Sprotty, you have to currently separate the Sprotty/JSX classes into a separate npm package in order to avoid type annotation clashes. Apart from that, all interaction between a Sprotty diagram and a React app should be via Sprotty's ModelSource interface exchanging Actions in both directions.
    Theia is based on React, so all sprotty-theia examples demonstrate what's possible here, e.g. https://github.com/TypeFox/theia-xtext-sprotty-example, https://medium.com/@jan.koehnlein/domain-specific-languages-in-theia-8838aee1279
    I would like to do a sprotty release in coordination with the next Theia release, such that we have a compatible released version of both. Theia is likely to release next Thursday. Any opinions?
    Philip Langer
    @planger
    @JanKoehnlein Sounds great, thanks! :+1:
    Kreyren
    @Kreyren
    hey, did anyone experiment with deploying sprotty through github-pages ?
    Kreyren @Kreyren is having hard time with the deployment atm
    Kreyren @Kreyren is also slowly losing a mind trying to make a class diagram in using sprotty in theia
    Kreyren @Kreyren me is eating chocolate, is depressed and gave up for today
    Jan Koehnlein
    @JanKoehnlein
    Good things come to those who wait: I've released sprotty 0.8.0 (incl. sprotty-server, sprotty-theia, sprotty-elk, sprotty-vscode and the theia-xtext-sprotty-example). Please upgrade and let me know if there are any problems.
    Philip Langer
    @planger
    @JanKoehnlein \o/ Thanks a lot!
    Tom Vandenbussche
    @tomvdbussche
    It seems that support for older ELK versions has been dropped?
    Miro Spönemann
    @spoenemann
    @tomvdbussche I think the dependency on ELK is not “hard”, i.e. you can safely force an earlier ELK version. The ELK API is very stable.
    Jan set a fixed version just to avoid having a version range (some folks seem to be allergic to that in Java world)
    Tom Vandenbussche
    @tomvdbussche
    Is that true for the OSGi as well? Afaik their versioning is a lot more strict
    Miro Spönemann
    @spoenemann
    That might be, and version ranges are much more common in OSGi. If it turns out to be a problem, we can change the OSGi dependency to a range.