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

A compiled program runs only when launched from a root directory of a repository #19

Open
Freemason-12 opened this issue Aug 16, 2023 · 3 comments
Assignees
Labels
Good First Issue Good for newcomers High Priority High priority. Status: Needs Discussion Needs more discussion. Status: Needs Triage This has not been labeled or discussed for handling yet. Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. Type: Enhancement Something meant to enhance existing features.

Comments

@Freemason-12
Copy link

Thanks for taking the time to fill out a bug report.
If you want real-time support consider joining our Discord at https://melonbot.io/support instead.

Please note that this form is for bugs only!

Summary
When I put an executable somewhere else in my $PATH (including /usr/local/bin/ as shown in the readme) it gives an error:

thread 'main' panicked at 'Failed to open icon path.: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })', src/main.rs:283:14

when I looked at the code (although I know basically no rust at all, just some other languages) it appears to be that the code literally does that, looks from the root of the project

Steps To Reproduce

  • run cargo build --release
  • copy and paste an executable to any directory in your $PATH
  • try to run from the terminal

Expected Behavior

  • Everything runs well

Platform And Versions

  • OS: Debian 12
  • Rustc:
cargo 1.71.1 (7f1d04c00 2023-07-29)
release: 1.71.1
commit-hash: 7f1d04c0053083b98fa50b69b6f56e339b0556a8
commit-date: 2023-07-29
host: x86_64-unknown-linux-gnu
libgit2: 1.6.4 (sys:0.17.1 vendored)
libcurl: 8.0.1-DEV (sys:0.4.61+curl-8.0.1 vendored ssl:OpenSSL/1.1.1t)
ssl: OpenSSL 1.1.1t  7 Feb 2023
os: Debian 12 (bookworm) [64-bit]
  • LemonCord: 0.1.2

Additional Context
The executable runs as intended when you cd into the cloned repo and run ./target/release/lemon-cord

@Freemason-12 Freemason-12 added the Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. label Aug 16, 2023
@github-actions github-actions bot added the Status: Needs Triage This has not been labeled or discussed for handling yet. label Aug 16, 2023
@japandotorg
Copy link
Owner

Hello there @Freemason-12 , a temporary fix for this issue is pinned in the lounge channel of my discord server.

@japandotorg japandotorg added Type: Enhancement Something meant to enhance existing features. Good First Issue Good for newcomers Status: Needs Discussion Needs more discussion. High Priority High priority. labels Aug 19, 2023
@ryzendew
Copy link

Hello there @Freemason-12 , a temporary fix for this issue is pinned in the lounge channel of my discord server.

not everyone wants another discord to join best to add it here also

@VioletJewel
Copy link

yes, please. Add it here! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Good for newcomers High Priority High priority. Status: Needs Discussion Needs more discussion. Status: Needs Triage This has not been labeled or discussed for handling yet. Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. Type: Enhancement Something meant to enhance existing features.
Projects
None yet
Development

No branches or pull requests

4 participants