-
Notifications
You must be signed in to change notification settings - Fork 346
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
devenv up
with process-compose unable to start on macOS
#1578
Comments
Huh, I wonder why this is popping back up again. Is your colleague using flakes or plain devenv? |
I'm guessing plain devenv ( |
Would If not that, https://devenv.sh/supported-process-managers/process-compose/ |
The issue here is that the path to devenv's runtime directory has been mangled by You could try running the devenv commands with |
Ran into this issue as well. {"level":"warn","error":"open /Library/Application Support/process-compose/settings.yaml: no such file or directory","time":"2024-11-18T12:20:29+02:00","message":"Error reading settings file /Library/Application Support/process-compose/settings.yaml"}
panic: exit status 1
goroutine 23 [running]:
github.com/f1bonacc1/process-compose/src/tui.SetupTui({0x104b7af40?, 0x140000d1ea0?}, {0x14000061f70, 0x3, 0x0?})
github.com/f1bonacc1/process-compose/src/tui/view.go:505 +0x174
github.com/f1bonacc1/process-compose/src/cmd.startTui({0x104b7af40, 0x140000d1ea0})
github.com/f1bonacc1/process-compose/src/cmd/project_runner.go:89 +0x188
created by github.com/f1bonacc1/process-compose/src/cmd.runTui in goroutine 1
github.com/f1bonacc1/process-compose/src/cmd/project_runner.go:73 +0x68 devenv Also ran command with Anyone found a workaround for this? |
Not the same issue at all. Your |
Maybe I'm having the same issue? ❯ devenv --refresh-eval-cache up
• Building processes ...
• Using Cachix: devenv
✔ Building processes in 3.2s.
• Starting processes ...
• Building shell ...
✔ Building shell in 1.4s.
Running tasks devenv:enterShell
Succeeded devenv:enterShell 16ms
1 Succeeded 17.20ms
{"level":"warn","error":"open /Users/dwt/Library/Application Support/process-compose/settings.yaml: no such file or directory","time":"2024-11-23T22:22:18+01:00","message":"Error reading settings file /Users/dwt/Library/Application Support/process-compose/settings.yaml"}
At least it looks very similar? ❯ devenv version
devenv 1.3.1 (aarch64-darwin) Any other information I can provide? process-compose seems to be installed by nix: ❯ type process-compose
process-compose is /nix/store/92vxs9yvnjaiiwqr2m77vzcb5qnanwgm-process-compose-1.2.0/bin/process-compose |
@dwt, if you're talking about the warning, then it can safely be ignored. I think it was even fixed upstream. |
Same issue here. From {"level":"warn","error":"open /Users/jkoppel/Library/Application Support/process-compose/settings.yaml: no such file or directory","time":"2024-11-25T21:55:36+08:00","message":"Error reading settings file /Users/jkoppel/Library/Application Support/process-compose/settings.yaml"}
|
Still slightly different 🤔 The path looks correct, unlike the one from the OP. Any specific instructions to try to replicate this? |
Just
|
This devenv reproduced the problem for me: { pkgs, lib, config, inputs, ... }:
{
# https://devenv.sh/basics/
# https://devenv.sh/packages/
packages = [
pkgs.git
] ++ lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
];
# https://devenv.sh/languages/
languages.rust.enable = true;
# https://devenv.sh/processes/
processes.cargo-watch.exec = "cargo-watch";
# https://devenv.sh/scripts/
scripts.install.exec = ''
cargo install --path .
'';
enterShell = ''
'';
# https://devenv.sh/tasks/
# https://devenv.sh/tests/
enterTest = ''
# echo "Running tests"
# git --version | grep --color=auto "${pkgs.git.version}"
'';
# See full reference at https://devenv.sh/reference/options/
} Regarding the warning: The problem is not the warning, though I guessed it to be related to the bug. The problem is that process-compose just stops about a few seconds after startup. |
@dwt, isn't this supposed to be If this is the only process and it fails, process-compose will immediately exit. I don't think there's a setting to change this behaviour. To print all logs to the console, you can disable the TUI with |
@sandydoo Actually both Sorry, I don't know my way around a rust project yet, so I didn't know. In my defense, this came straight from the template that is generated when you call
# https://devenv.sh/processes/
# processes.cargo-watch.exec = "cargo-watch"; { pkgs, lib, config, inputs, ... }:
{
# https://devenv.sh/basics/
env.GREET = "devenv";
# https://devenv.sh/packages/
packages = [ pkgs.git ];
# https://devenv.sh/languages/
# languages.rust.enable = true;
# https://devenv.sh/processes/
# processes.cargo-watch.exec = "cargo-watch";
# https://devenv.sh/services/
# services.postgres.enable = true;
# https://devenv.sh/scripts/
scripts.hello.exec = ''
echo hello from $GREET
'';
enterShell = ''
hello
git --version
'';
# https://devenv.sh/tasks/
# tasks = {
# "myproj:setup".exec = "mytool build";
# "devenv:enterShell".after = [ "myproj:setup" ];
# };
# https://devenv.sh/tests/
enterTest = ''
echo "Running tests"
git --version | grep --color=auto "${pkgs.git.version}"
'';
# https://devenv.sh/pre-commit-hooks/
# pre-commit.hooks.shellcheck.enable = true;
# See full reference at https://devenv.sh/reference/options/
} So maybe it could be a good idea, to change that default to also include Something like this: # https://devenv.sh/packages/
packages = [
pkgs.git
# pkgs.cargo-watch
]; That way the error would be easier to spot and resolve for new devenv users. |
fresh ubtunu 24.2 .config/process-compose/settings.yaml: no such file or directory |
Describe the bug
A new colleague tried (less than an hour ago) to
devenv up
on macOS and got this error:Prior similar issue: #1153
To reproduce
I don't have all the details at the moment, nor a Mac to try it on. So for now:
devenv shell
, which works after making the user trusted innix.conf
devenv up
gives the error shown aboveVersion
I would guess 1.3.1, since Nix and devenv were both freshly installed less than an hour ago.
The text was updated successfully, but these errors were encountered: