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

Custom Build Tool Not Found - Unexpectedly found nil while unwrapping an Optional value #6

Open
shahzadmajeed opened this issue Sep 7, 2023 · 2 comments

Comments

@shahzadmajeed
Copy link

Hi,

Very nice tool. It can find builtin tools at default $PATH but not custom tools. I have a command line tool installed at /usr/local/bin/ and I have added that to $PATH but the program doesn't seem to locate the tool. It seems like $PATH doesn't even have that value appended to it. Not sure if there is an easy way to configure the tool to look at custom paths at initialization rather than just looking at $PATH so that it can fallback to say CUSTOM_TOOLS_LOOKUP or something which could just be a simple hashmap initialized by the dependent program?

Do you have any suggestion on fixing my current issue? Thank you!

@shahzadmajeed
Copy link
Author

Actually I think I can initialize Command object with executable path directly and it works.. but another problem (which is same with ShellOut as well) due to which I was trying to move from ShellOut to SwiftCommand is basically I want to print logs as sub-commands are being executed just as it happens on terminal. But it seems like we are logging output once the invoked command is done executing. Is there a way to log each entry as soon as it is generated from the tool/command being executed?

@Zollerboy1
Copy link
Owner

Hey @shahzadmajeed can you provide a bit more context? What are you trying to achieve? Can you maybe give me an example that doesn't work as expected for you?

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

No branches or pull requests

2 participants