fullstack-lang/gongdoc

Websocket version

Closed this issue · 4 comments

Websocket version

Sequence:

  • select Diagram "Diagram"
  • edit Diagram
  • unedit Diagram

Problem:

  • the diagram selection is lost

Debug analysis:

first issue, too many commits

  • 4 commits of svg
  • 2 commit for tree

gongdoc commit

  • at the end of go\node2gongdoc\compute_node_confs.go
  • end of go\node2gongdoc\node_impl_classdiagram.go

so many commits in gongdoc

first commit

github.com/fullstack-lang/gongdoc/go/models.(*StageStruct).Commit (/Users/thomaspeugeot/go/src/github.com/fullstack-lang/gongdoc/go/models/gong.go:361)
github.com/fullstack-lang/gongdoc/go/node2gongdoc.computeNodeConfs (/Users/thomaspeugeot/go/src/github.com/fullstack-lang/gongdoc/go/node2gongdoc/compute_node_confs.go:40)
github.com/fullstack-lang/gongdoc/go/node2gongdoc.FillUpNodeTree (/Users/thomaspeugeot/go/src/github.com/fullstack-lang/gongdoc/go/node2gongdoc/fill_up_node_tree.go:17)
github.com/fullstack-lang/gongdoc/go/load.LoadDiagramPackage (/Users/thomaspeugeot/go/src/github.com/fullstack-lang/gongdoc/go/load/load_diagram_package.go:89)
github.com/fullstack-lang/gongdoc/go/load.Load (/Users/thomaspeugeot/go/src/github.com/fullstack-lang/gongdoc/go/load/load.go:82)
github.com/fullstack-lang/gongdoc/go/probe.NewProbe (/Users/thomaspeugeot/go/src/github.com/fullstack-lang/gongdoc/go/probe/probe.go:69)
github.com/fullstack-lang/gongdoc/go/stack.NewStack (/Users/thomaspeugeot/go/src/github.com/fullstack-lang/gongdoc/go/stack/stack.go:125)
main.main (/Users/thomaspeugeot/go/src/github.com/fullstack-lang/gongdoc/go/cmd/gongdoc/main.go:36)
runtime.main (/usr/local/go/src/runtime/proc.go:267)
runtime.goexit (/usr/local/go/src/runtime/asm_amd64.s:1650)

First commit is

  • NewStack --> NewProbe --> Load --> LoadDiagramPackage --> FillUpNodeTree (following by commit) --> computeNodeConfs (followed by commit) --> commit

therefore, 3 commits. Way too much. Architecture is needed