Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic creating a module outside of an FTL project #3012

Closed
matt2e opened this issue Oct 7, 2024 · 1 comment · Fixed by #3412
Closed

Panic creating a module outside of an FTL project #3012

matt2e opened this issue Oct 7, 2024 · 1 comment · Fixed by #3412
Assignees
Labels

Comments

@matt2e
Copy link
Collaborator

matt2e commented Oct 7, 2024

mtoohey ~/Code  $ ./ftl/build/release/ftl new go . example
panic: project config path must be absolute: 

goroutine 1 [running]:
github.com/TBD54566975/ftl/internal/projectconfig.Config.Root({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, 0x0, {0x0, 0x0, 0x0}, ...})
	/Users/mtoohey/Code/ftl/internal/projectconfig/projectconfig.go:46 +0x94
main.newCmd.Run({{0x140002fa4f0, 0x2}, {0x10315b8d0, 0x1}, {0x140002fa530, 0x7}}, {0x1022885b8, 0x14000715920}, 0x140008ae080, {{0x0, ...}, ...})
	/Users/mtoohey/Code/ftl/frontend/cli/cmd_new.go:109 +0x3d0
reflect.Value.call({0x1020b7be0?, 0x103343db8?, 0x14000a898f8?}, {0x101594259, 0x4}, {0x14000cbf440, 0x3, 0x100a195d8?})
	/Users/mtoohey/Library/Caches/hermit/pkg/go-1.23.2/src/reflect/value.go:581 +0x97c
reflect.Value.Call({0x1020b7be0?, 0x103343db8?, 0x14000a899f8?}, {0x14000cbf440?, 0x102256a20?, 0x14000a89930?})
	/Users/mtoohey/Library/Caches/hermit/pkg/go-1.23.2/src/reflect/value.go:365 +0x94
github.com/alecthomas/kong.callFunction({0x1020b7be0?, 0x103343db8?, 0x14000a89b58?}, 0x14000715a70)
	/Users/mtoohey/go/pkg/mod/github.com/alecthomas/[email protected]/callbacks.go:98 +0x390
github.com/alecthomas/kong.(*Context).RunNode(0x140008ae080, 0x14000a2a2d0, {0x14000a89e78, 0x1, 0x140006ee140?})
	/Users/mtoohey/go/pkg/mod/github.com/alecthomas/[email protected]/context.go:798 +0x604
github.com/alecthomas/kong.(*Context).Run(0x1022885b8?, {0x14000a89e78?, 0x140008ae080?, 0x1032f2db0?})
	/Users/mtoohey/go/pkg/mod/github.com/alecthomas/[email protected]/context.go:823 +0x138
main.main()
	/Users/mtoohey/Code/ftl/frontend/cli/main.go:139 +0x5d4
@github-actions github-actions bot added the triage Issue needs triaging label Oct 7, 2024
@ftl-robot ftl-robot mentioned this issue Oct 7, 2024
@safeer safeer added next Work that will be be picked up next P2 and removed triage Issue needs triaging labels Oct 7, 2024
@matt2e matt2e self-assigned this Nov 18, 2024
@github-actions github-actions bot removed the next Work that will be be picked up next label Nov 18, 2024
@matt2e
Copy link
Collaborator Author

matt2e commented Nov 18, 2024

The original error is resolved, we now get an error saying that we could not write to / because plugin.Spawn tries to create a working dir there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants