Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@John-Colvin
Copy link
Contributor

@John-Colvin John-Colvin commented Jul 29, 2025

This allows for some separation between what the user asked for in args and what the internals reference. It makes things easier in a multi-project setting (the server becomes per-project & should represent all the state for it, settings like jai path can be different per project). It also seems better prep for using Jails as a library.

args: Args;
quit := false;

// This is from the config file
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed because misleading: roots et al are discovered if not set to anything in config.

log_error("Could not parse arguments");
exit(1);
}
log("Args are %", args);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subtle difference in logging here. Previously the code logged the args including the result of any compiler path finding work, now it does not, which seems fine as a) more honest w.r.t. actual passed args & b) the compiler path finding has its own logging.

verbose: bool;
profile: bool;
jai_path: string;
jai_exe_name: string;
Copy link
Contributor Author

@John-Colvin John-Colvin Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having this in Args seemed a bit of a hack to me, seeing as it wasn't actually settable from the cli or even the config. But now we don't need it here, it just lives in server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant