Can't run on mac os #166

Closed
opened 2026-02-16 17:25:31 -05:00 by yindo · 6 comments
Owner

Originally created by @facelezzzz on GitHub (Jun 20, 2025).

Originally assigned to: @thdxr on GitHub.

(base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % opencode --version
0.1.108
(base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % 
(base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % 
(base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % 
(base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % 
(base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % opencode          
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x100fc9cf0]

goroutine 1 [running]:
github.com/sst/opencode/internal/app.New({0x101765398?, 0x140003f1950?}, {0x14000099698, 0x8}, {0x1, {{0x1400013acc0, 0x21}, {0x1400013ad50, 0x2d}, {0x140001727e0, ...}, ...}, ...}, ...)
	/home/runner/work/opencode/opencode/packages/tui/internal/app/app.go:64 +0x90
main.main()
	/home/runner/work/opencode/opencode/packages/tui/cmd/opencode/main.go:58 +0x534
Originally created by @facelezzzz on GitHub (Jun 20, 2025). Originally assigned to: @thdxr on GitHub. ``` (base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % opencode --version 0.1.108 (base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % (base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % (base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % (base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % (base) wangboxue@wangboxuedeMacBook-Air qetesh-data-etl % opencode panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x100fc9cf0] goroutine 1 [running]: github.com/sst/opencode/internal/app.New({0x101765398?, 0x140003f1950?}, {0x14000099698, 0x8}, {0x1, {{0x1400013acc0, 0x21}, {0x1400013ad50, 0x2d}, {0x140001727e0, ...}, ...}, ...}, ...) /home/runner/work/opencode/opencode/packages/tui/internal/app/app.go:64 +0x90 main.main() /home/runner/work/opencode/opencode/packages/tui/cmd/opencode/main.go:58 +0x534 ```
yindo closed this issue 2026-02-16 17:25:31 -05:00
Author
Owner

@johnsaigle commented on GitHub (Jun 20, 2025):

Works fine for me on version 0.1.109

$ uname -msv
Darwin Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:33 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8122 arm64
$ opencode --version
0.1.109
@johnsaigle commented on GitHub (Jun 20, 2025): Works fine for me on version `0.1.109` ``` $ uname -msv Darwin Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:33 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8122 arm64 $ opencode --version 0.1.109 ```
Author
Owner

@facelezzzz commented on GitHub (Jun 22, 2025):

After upgrade to 0.1.121.

panic: failed to get config: 502

goroutine 1 [running]:
main.main()
	/home/runner/work/opencode/opencode/packages/tui/cmd/opencode/main.go:64 +0x8c0

Did the internal server fail to start?

@facelezzzz commented on GitHub (Jun 22, 2025): After upgrade to 0.1.121. ``` panic: failed to get config: 502 goroutine 1 [running]: main.main() /home/runner/work/opencode/opencode/packages/tui/cmd/opencode/main.go:64 +0x8c0 ``` Did the internal server fail to start?
Author
Owner

@nickytonline commented on GitHub (Jun 22, 2025):

Just installed it via brew and it's working well with no issues.

❯ uname -msv
Darwin Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:25 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6020 arm64
@nickytonline commented on GitHub (Jun 22, 2025): Just installed it via brew and it's working well with no issues. ``` ❯ uname -msv Darwin Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:25 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6020 arm64 ```
Author
Owner

@facelezzzz commented on GitHub (Jun 22, 2025):

I debugged it and found my VPN router redirected 0.0.0.0/config_get incorrectly. After fixing the config, it works fine now!

@facelezzzz commented on GitHub (Jun 22, 2025): I debugged it and found my VPN router redirected 0.0.0.0/config_get incorrectly. After fixing the config, it works fine now!
Author
Owner

@song2342 commented on GitHub (Jun 23, 2025):

我也使用了VPN 请问如何设置的 panic: failed to get config: 502
@facelezzzz

@song2342 commented on GitHub (Jun 23, 2025): 我也使用了VPN 请问如何设置的 panic: failed to get config: 502 @facelezzzz
Author
Owner

@facelezzzz commented on GitHub (Jun 23, 2025):

我也使用了VPN 请问如何设置的 panic: failed to get config: 502 @facelezzzz

@song2342 I added the line - 'IP-CIDR,0.0.0.0/32,DIRECT' to the Clash configuration file.

@facelezzzz commented on GitHub (Jun 23, 2025): > 我也使用了VPN 请问如何设置的 panic: failed to get config: 502 [@facelezzzz](https://github.com/facelezzzz) @song2342 I added the line `- 'IP-CIDR,0.0.0.0/32,DIRECT'` to the Clash configuration file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#166