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

Automatically switch targets #2742

Closed
andcor02 opened this issue Sep 19, 2016 · 5 comments
Closed

Automatically switch targets #2742

andcor02 opened this issue Sep 19, 2016 · 5 comments

Comments

@andcor02
Copy link

Automatic switch of target when importing new program

  • Type: Enhancement

- Priority: Minor

Enhancement

So currently, when a new user imports a program for specific platform the online IDE does not automatically switch to that target. While this may not be an issue to a lot of people if we think about the user case of the micro:bit i have had reports of people not understanding why the issue they receive is due to having a different platform selected.

Seems a silly issue to have when this platform should be as streamlined as possible.

Thoughts?

@sg-
Copy link
Contributor

sg- commented Sep 19, 2016

There is no relationship between a program and a target.

When importing a program it selects the last board you were using. It does maintain the last used for a program. @screamerbg

@theotherjimmy
Copy link
Contributor

Just a thought: we could include a .mbed for those examples and heed that. It would take some doing thought.

@BlackstoneEngineering
Copy link
Contributor

I think this would cause more confusion than it would help. A corner case that can be solved via better documentation rather than a tools issue.

@jaustin
Copy link
Contributor

jaustin commented Oct 8, 2016

We do actually have some places where an example is imported to the IDE with a platform hinted:
the "Example programs" sidebar on the platform pages - for example:
https://developer.mbed.org/teams/BBC/code/microbit_blinky/?platform=Microbit

I spent a while trying to include the platform parameter in a <> segment, but couldn't see a way to do so. I think it'd be useful in the same situations as the 'example programs' above - IE on platform pages.

@sg-
Copy link
Contributor

sg- commented Oct 10, 2016

IIRC, there is an API for importing to the IDE with the platform specified. Would need to get the details from @screamerbg

I don't recall specifically where we used it but I remember exploiting something like this a while ago

@andcor02 andcor02 closed this as completed Jan 4, 2017
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

5 participants