Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 12 00:41

    danyeaw on main

    Bump actions/cache from 3.0.6 t… (compare)

  • Aug 12 00:41

    danyeaw on github_actions

    (compare)

  • Aug 11 11:08

    dependabot[bot] on github_actions

    Bump actions/cache from 3.0.6 t… (compare)

  • Aug 08 23:28

    danyeaw on pre-commit-ci-update-config

    (compare)

  • Aug 08 23:28

    danyeaw on main

    [pre-commit.ci] pre-commit auto… (compare)

  • Aug 08 20:05

    pre-commit-ci[bot] on pre-commit-ci-update-config

    [pre-commit.ci] pre-commit auto… (compare)

  • Aug 06 00:13

    danyeaw on github_actions

    (compare)

  • Aug 06 00:13

    danyeaw on main

    Bump actions/cache from 3.0.5 t… (compare)

  • Aug 05 11:03

    dependabot[bot] on github_actions

    Bump actions/cache from 3.0.5 t… (compare)

  • Aug 04 02:01

    danyeaw on github_actions

    (compare)

  • Aug 04 02:01

    danyeaw on main

    Bump actions/setup-python from … (compare)

  • Aug 03 11:02

    dependabot[bot] on github_actions

    Bump actions/setup-python from … (compare)

  • Aug 02 01:50

    danyeaw on pre-commit-ci-update-config

    (compare)

  • Aug 02 01:50

    danyeaw on main

    [pre-commit.ci] pre-commit auto… (compare)

  • Aug 01 20:15

    pre-commit-ci[bot] on pre-commit-ci-update-config

    [pre-commit.ci] pre-commit auto… (compare)

  • Jul 27 12:35

    danyeaw on main

    Bump sphinx from 5.1.0 to 5.1.1… (compare)

  • Jul 27 12:35

    danyeaw on pip

    (compare)

  • Jul 27 11:03

    dependabot[bot] on pip

    Bump sphinx from 5.1.0 to 5.1.1… (compare)

  • Jul 26 05:52

    amolenaar on pre-commit-ci-update-config

    (compare)

  • Jul 26 05:52

    amolenaar on main

    [pre-commit.ci] pre-commit auto… Merge pull request #460 from ga… (compare)

Arjan
@amolenaar:matrix.org
[m]
Hi K L , the XMI code has been there for many years. Honestly I forgot most about XMI. The specs for the format can be found on omg.org, but they’re quite generic.
Toorero
@toorero:matrix.org
[m]
Apropos: Wouldn't it super cool to export to XMI so you can create your diagrams with Gaphor and import them into EMF to generate code with Papyrus for example? I tried to do that but Eclipse didn't recognised the DTD and refused to let me import the XMI but I think this would be a great workflow.
Toorero
@toorero:matrix.org
[m]
:point_up: Edit: Apropos: Wouldn't it super cool to export to XMI so you can create your diagrams with Gaphor and import them into EMF to generate code with Acceleo for example? I tried to do that but Eclipse didn't recognised the DTD and refused to let me import the XMI but I think this would be a great workflow.
danyeaw
@Yeaw:matrix.org
[m]
K L: Do you have an example of the type of text you are trying to add?
Arjan: Do you know why the build isn't able to import our signing certificate?
1 reply
Arjan
@amolenaar:matrix.org
[m]
danyeaw: on main for macos? I’ll have a look later this evening.
danyeaw
@Yeaw:matrix.org
[m]
For some reason I am getting a typelib not found error for freetype2 in Windows with pyinstaller on the make GTK4 the default PR. Really weird because I don't think anything changed, still using GTK3 with pyinstaller
danyeaw
@Yeaw:matrix.org
[m]
It looks like a pyinstaller hook does the trick
1 reply
Mohamed Aures Harkat
@harkat:matrix.org
[m]
Hello guys, first i would like to thank you for the great tool that you have created.
I just have a question about code generation using graphor, is it possible?
I have checked the source in github and found a codegen package but i am not sure on how to use it.
1 reply
Thanks!
Toorero
@toorero:matrix.org
[m]
I think the codegen is only to generate python code out of gaphor diagrams to generate UML/SysML classes used in the application itself (e.g. https://github.com/gaphor/gaphor/blob/main/gaphor/UML/uml.py) but you could write yourself a custom plugin that works similar to the xmi export (see https://github.com/gaphor/gaphor/tree/main/gaphor/plugins/xmiexport)
Just remember to add the service to this file https://github.com/gaphor/gaphor/blob/main/pyproject.toml at the [tool.poetry.plugins."gaphor.services"] section
Toorero
@toorero:matrix.org
[m]
Gaphor uses simple DI so you can use any other "service" in your created service. You might find the example plugin and the docs usefull
Arjan
@amolenaar:matrix.org
[m]
The code generator is using Gaphor as a "library" to load the model and easily traverse it. You can make it a plugin to Gaphor too, but I would first build a generator.
Toorero
@toorero:matrix.org
[m]
As alternative perhaps you figure out a way to export to XMI (supported) and import the XMI into EMF so you can use the M2T functionality of Acceleo but I haven't figured out how to properly import the XMI file
Arjan
@amolenaar:matrix.org
[m]
danyeaw: Is it me or is DnD from tree view no longer working with GTK4?
danyeaw
@Yeaw:matrix.org
[m]
Arjan: working for me in Linux
Arjan
@amolenaar:matrix.org
[m]
Not completely sure. It looks like it works in XWayland for me, but not in pure Wayland.
danyeaw
@Yeaw:matrix.org
[m]
Ahh, I'm in X11 at the moment, I can reload in to Wayland in a few minutes
Arjan
@amolenaar:matrix.org
[m]
Hmm.. renaming a tree item via the popup menu also doesn't work in Wayland. Works fine in X11, though 😒
danyeaw
@Yeaw:matrix.org
[m]
I can reproduce the renaming issue. For me it doesn't rename it the first time, but if I do it again it works the 2nd time. DND is working good for me though in Wayland.
The positive thing is we can find all these bugs now that we have GTK4 set as default
Arjan
@amolenaar:matrix.org
[m]
I think I can fix the rename issue. Somehow event are emitted in different order on wayland. Dnd is a weird issue. I’m on gtk 4.6.6, the most recent version.
Arjan
@amolenaar:matrix.org
[m]
I managed to build GTK on windows. No issues. And gaphor starts.
But DnD is broken on GTK/Windows.
Arjan
@amolenaar:matrix.org
[m]

DND is working good for me though in Wayland.

It's working for me too. I think I messed up something.

To me it looks like we can update Linux to GTK4. On Windows and macOS DnD is unstable with GTK4.
danyeaw
@Yeaw:matrix.org
[m]
That's too bad! I updated gaphor/gaphor#1626 to keep Windows at GTK3, but not lose the configurability that we created
James Lott
@lottspot
I suppose this is a pretty basic question but I still haven't quite figured out how to define a value property of a block (SysML)... I checked out the examples and saw that the "property" internal block can be used to define parts & references, but doesn't seem applicable to defining a value. Relatedly, no problem figuring out how to define a ValueType, but defining an instance of the value within a block still eludes me. Hoping someone can nudge me in the direction of what I'm clearly missing :slight_smile:
James Lott
@lottspot

I did do a little source diving, and found in block.py:

                    self.block_compartment(
                        gettext("values"),
                        lambda a: isinstance(a.type, ValueType)
                        and a.aggregation == "composite",

which helps a little bit, but still leaves me unsure of how to construct an element that satisfies those conditions

James Lott
@lottspot
oh no this is the exact same question I already asked in this channel.... please ignore :grimacing:
James Lott
@lottspot
different question, but also basic... what's the best way to define operations for blocks? Using swimlanes in an act diagram, or is there some way to display them in a bdd? Sorry for the really basic Qs, I couldn't glean an answer from looking at the sysml example models or the example vid (which hinted at the swim lanes approach)
James Lott
@lottspot
ah ok so I see that operations can be defined on Requirements... so would the simplest way to add an operation to the model be to define it within a requirement and then create a "satisfies" relationship between a block and the requirement?
James Lott
@lottspot
hmm... I guess that doesn't help me with an operation that isn't necessarily a functional requirement... be happy to take any suggestions
Arjan
@amolenaar:matrix.org
[m]
Shouldn't operations be triggered by pins on the block? (disclaimer: I do not have a background in SysML). That could trigger an action or activity.
James Lott
@lottspot
I am definitely no SysML expert (still learning), but I'm pretty sure what you're saying is true... it's also a little different from what I'm wondering, which is how to make an action "part of" a block within the model (i.e., define it as an operation) or whether this is even possible under current SysML support
James Lott
@lottspot
The solution I came up with has really been to fall back to using UML classes w/attributes & operations instead of SysML blocks since my use case really does not require strict SysML, but maybe one day I'll figure out "the right way" and have a fun new method to share
Arjan
@amolenaar:matrix.org
[m]
@lottspot: Currently gaphor does not allow actions nested in a block. I think we have to check with danyeaw and @sz332 if it’s the right thing to do.
@danyeaw I’ve been playing around with auto layouting during my holiday (gaphor/gaphor#1653). Do you think it’s a feature feasible for inclusion? Can we include GraphViz binaries with our PyInstaller based builds?
James Lott
@lottspot
ahh, ok good to know... thanks for the info! :slight_smile:
danyeaw
@Yeaw:matrix.org
[m]
Arjan: It looks like there are at least hooks for graphviz for PyInstaller, I could test it out and see if I can get it to bundle if you want
1 reply
@lottspot: Normally I am use to making a swimlane on an activity diagram represent a block, and then that creates an allocation to activities in the swimlane
James Lott
@lottspot
@Yeaw:matrix.org ah! That's the piece of knowledge I was missing... Ty!
Arjan
@amolenaar:matrix.org
[m]
I’m implementing state machines and composite states currently. To make it work states need to be added to different regions, depending on where they’re dropped on the state machine.
Arjan
@amolenaar:matrix.org
[m]
I have that sort of working now. I was wondering: are there any more elements that work like state machines, with different areas. Partition/swimlanes come to mind. Editing of attributes in a class?
danyeaw
@Yeaw:matrix.org
[m]
You mean like nested?
Arjan
@amolenaar:matrix.org
[m]
Nested from a model point of view. In a diagram it’s presented by one element (e.g. StateMachineItem)
danyeaw
@Yeaw:matrix.org
[m]
I can't think of any others at the moment