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

get the sdk path to find the executable on linux #45

Merged
merged 3 commits into from
Aug 6, 2023

Conversation

lyonbeckers
Copy link
Contributor

The method for running the PlaydateSimulator on Linux assumes that it's in your PATH. The desktop file that gets set up from the setup.sh script in the linux Playdate SDK just executes it from the SDK path, so I figure it's probably safe to do it the same way

@lilyinstarlight
Copy link
Contributor

lilyinstarlight commented Aug 5, 2023

Could we maybe have it try to execute PlaydateSimulator first and if that fails, then fallback to trying something based on the SDK path, maybe on all platforms?

This change would break running the simulator from crank on my system, but I admittedly have an uncommon setup so I can just patch crank or work around this if generalizing this behavior is undesired by the maintainers

@lyonbeckers
Copy link
Contributor Author

I think that's a good idea, I was considering making this change for all platforms, but noticed both Windows and Mac get some kind of installer, so I assumed there's less variability in the way the environments might be set up. I haven't tried the SDK on either Mac or Windows so I wasn't sure. I'll try a fallback for this cfg in the meantime

@boozook
Copy link
Member

boozook commented Aug 6, 2023

error: the feature lang_items is internal to the compiler or standard library

This is something new. Did I miss something? Is this feature was renamed or denied somehow? 🤔

@boozook
Copy link
Member

boozook commented Aug 6, 2023

LGTM, but what about error on CI? 🙄

@lyonbeckers
Copy link
Contributor Author

Looks like it might be something new on nightly, I found this tracking issue for adding an internal_features lint, and based on the error message, it sounds like it's set to deny by default
rust-lang/compiler-team#596

@boozook
Copy link
Member

boozook commented Aug 6, 2023

Seems to you're right 🙄

@lyonbeckers
Copy link
Contributor Author

lyonbeckers commented Aug 6, 2023

Updated on my machine, then tried adding an #![allow(internal_features)] to crankstart's lib.rs but that doesn't seem to have done it for me 😬

EDIT: Would have probably worked better if I had actually put it into the right directory, oops. It does work lol

@boozook
Copy link
Member

boozook commented Aug 6, 2023

Looks like fixed:

@boozook
Copy link
Member

boozook commented Aug 6, 2023

@boozook boozook merged commit 6d046ce into pd-rs:main Aug 6, 2023
6 of 7 checks passed
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.

3 participants