zopencommunity / wharf

Apache License 2.0
6 stars 4 forks source link

Porting 'fx': SIGSEGV #41

Closed dustin-ward closed 4 months ago

dustin-ward commented 6 months ago

Runtime error when trying to port fx

> wharf -v ./fx
Import path set to: /home/dustinw/Work/Porting/fx/wharf_port
Build errors occurred in: github.com/antonmedv/fx
        main.go:181:44: theme.TermOutput.ColorProfile undefined (type *termenv.Output has no field or method ColorProfile)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2c addr=0xf7c72a0 pc=0xf7c72a0]

goroutine 1 [running]:
github.com/zosopentools/wharf/internal/porting.initProcFlags(...)
        /jenkins/workspace/Port-Build/wharf/wharf/internal/porting/states.go:36
github.com/zosopentools/wharf/internal/porting.port(0xc00185c820, 0xc00048d860)
        /jenkins/workspace/Port-Build/wharf/wharf/internal/porting/port.go:401 +0xb02
github.com/zosopentools/wharf/internal/porting.run({0xc0004203e0, 0x1, 0x1}, 0xc00048d860)
        /jenkins/workspace/Port-Build/wharf/wharf/internal/porting/port.go:173 +0x2d8
github.com/zosopentools/wharf/internal/porting.Port({0xc0004203e0, 0x1, 0x1}, 0xc00048d860)
        /jenkins/workspace/Port-Build/wharf/wharf/internal/porting/port.go:90 +0x4aa
main.main1(...)
        /jenkins/workspace/Port-Build/wharf/wharf/main.go:147
main.main()
        /jenkins/workspace/Port-Build/wharf/wharf/main.go:119 +0xd48
jlee3227 commented 4 months ago

Resolved with the latest version of wharf