Call for test: diagram

Hey snapcrafters, @kyrofa and @elopio!
The snap for diagram has been built and you all are welcome to test it out.

To install the snap, run the following command in terminal

sudo snap install diagram --edge --devmode

Then to run diagram follow the documentation available here : diagram repo

Let me know if you come across any issues!

Thank you!

1 Like

Hello @Simran,

Please update your post to add --devmode to the install command. Also, it mentions firebase, I think that’s a copy & paste error.

When I entered ctrl+d, it crashed for me:

panic: open /home/ubuntu/workspace/go/src/github.com/esimov/diagram/font/gloriahallelujah.ttf: no such file or directory

goroutine 1 [running, locked to thread]:
github.com/esimov/diagram/canvas.NewCanvas(0xc420146f00, 0xc420018720, 0x51, 0x4008000000000000, 0x1)
        /home/simran/diagram/parts/diagram/go/src/github.com/esimov/diagram/canvas/canvas.go:25 +0x125
github.com/esimov/diagram/canvas.DrawDiagram(0xc420140640, 0x1b, 0xc4201365c0, 0x33, 0xc420018720, 0x51, 0x33, 0x0)
        /home/simran/diagram/parts/diagram/go/src/github.com/esimov/diagram/canvas/generator.go:340 +0x23d
github.com/esimov/diagram/ui.(*UI).drawDiagram(0xc4200ad0a0, 0x76c2d0, 0x7, 0xc420053e5c, 0x2)
        /home/simran/diagram/parts/diagram/go/src/github.com/esimov/diagram/ui/panels.go:460 +0x314
github.com/esimov/diagram/ui.onDrawDiagram.func1(0xc4200f0000, 0xc4201062d0, 0xc420053cb0, 0x5e8ac7)
        /home/simran/diagram/parts/diagram/go/src/github.com/esimov/diagram/ui/handlers.go:65 +0x3f
github.com/jroimartin/gocui.(*Gui).execKeybindings(0xc4200f0000, 0xc4201062d0, 0xc420053d60, 0xc420053d18, 0x48c330, 0xc420053df8)
        /home/simran/diagram/parts/diagram/go/src/github.com/jroimartin/gocui/gui.go:629 +0xe6
github.com/jroimartin/gocui.(*Gui).onKey(0xc4200f0000, 0xc420053d60, 0x5f2fe7, 0x18)
        /home/simran/diagram/parts/diagram/go/src/github.com/jroimartin/gocui/gui.go:593 +0x1d4
github.com/jroimartin/gocui.(*Gui).handleEvent(0xc4200f0000, 0xc420053d60, 0xc420053d58, 0x1)
        /home/simran/diagram/parts/diagram/go/src/github.com/jroimartin/gocui/gui.go:413 +0x40
github.com/jroimartin/gocui.(*Gui).MainLoop(0xc4200f0000, 0xc420053eb8, 0x655903)
        /home/simran/diagram/parts/diagram/go/src/github.com/jroimartin/gocui/gui.go:373 +0x1ac
github.com/esimov/diagram/ui.(*UI).Loop(0xc4200ad0a0)
        /home/simran/diagram/parts/diagram/go/src/github.com/esimov/diagram/ui/ui.go:69 +0x32
github.com/esimov/diagram/ui.InitApp(0xc420018720, 0x51)
        /home/simran/diagram/parts/diagram/go/src/github.com/esimov/diagram/ui/app.go:10 +0x80
main.main()
        /home/simran/diagram/parts/diagram/go/src/github.com/esimov/diagram/main.go:42 +0xbc

Hi @elopio, thanks for pointing out the issues.

Updated the Repo.
Fixed the typo.

I’ll look into this error.

1 Like

Thank you! Please let us know if you need a hand or have questions. :slight_smile:

Yes I want to learn this so I’ll try to dig deep into this issue. If I am unable to figure out then I’ll definitely ask for help!

Thank you once again, @elopio Also, GCI was fun :smile:

1 Like