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

Swift support #132

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Swift support #132

wants to merge 8 commits into from

Conversation

paulober
Copy link
Collaborator

@paulober paulober commented Dec 5, 2024

Swift Support

This PR adds support for generating Swift projects.
Currently supported setups:

  • Experimental Swift Toolchain only
  • macOS and Linux (Windows experimental swift toolchain does not included embedded targets)
  • Pico 2 only (Pico still generated a SDK header error)
  • Pico SDK v2.1.0

Setup steps are explained in the README.

TODO

  • Add swift toolchain check and disable UI element if no experimental swift toolchain was detected

@@ -1771,7 +1811,7 @@ export class NewProjectPanel {
</div>
</div>`
: `<h3 class="text-xl font-semibold text-gray-900 dark:text-white mb-4">
Warning: Project Import Wizard may not work for all projects, and will often require manual correction after the import
Warning: Project Import Wizard may not work for all projects, and will often require manual correction after the import. Swift Projects aren't supported at the moment.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe just say only C/C++ projects are supported, rather than swift isn't supported, as the import wizard also doesn't support Python?

Suggested change
Warning: Project Import Wizard may not work for all projects, and will often require manual correction after the import. Swift Projects aren't supported at the moment.
Warning: Project Import Wizard may not work for all projects, and will often require manual correction after the import. Only C/C++ Projects are supported at the moment.

const execAsync = promisify(exec);

export default async function checkSwiftRequirements(): Promise<boolean> {
return true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this line be removed?

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.

2 participants