I have moved it from the MBED Online Compiler environment to Keil and successfully compiled and run it in Keil. I am following the recipe to "Convert to a GitHub repository". It says I haven't connected to my GitHub account yet. In Keil I select "Connect to Github". Nothing happens. When I continue with the recipe it says "An error while creating <my project>". Wise words would be appreciated!
Hello,
Were you trying to convert a Mercurial project to Git?
developer.arm.com/.../Convert-a-Mercurial-project-to-Git
Yes. I was using the recipe you gave the link to in your reply.
I had a freshly created GitHub account with nothing in it when I tried the conversion.
Thanks for getting back to me!
Al
What is the error message you get exactly?
When trying to connect to GitHub from Keil Studio, a separate tab should appear in your browser. Did you get a separate tab?
Have you checked this page to connect to GitHub? https://developer.arm.com/documentation/102497/1-5/Source-control/Work-with-Git/Set-credentials-for-GitHub
What OS and browser are you using?
Elise, I've been wasting your time. I switched to Microsoft Edge and it looks like I migrated successfully. Let me know if I can ever help you or your organization.
No problem at all. Happy that you managed to achieve what you wanted to do. :-)
I migrated successfully in that all of my sources came over and compiled and ran, but my two libraries weren't brought over as libraries. Their source code was simply put into the newly created Keil project.
I'm going to try creating a new Keil project + libraries and import my sources. Basically I'm going to experiment.
I have not taken the import route mention in my last message.
My Keil project (transferred from MBED Online Compiler) works in that I can modify sources in the main project and also a library and the modifications show up in the executable, and the changes and are kept when I log out and log back in. I do not know where the sources are being stored. I look directly in GitHub and can see the files but those versions do not have my changes. Along the way I got the message "You are now authenticated for access to your GitHub account." I'm using Microsoft Edge. Any ideas.
When I close a file in the Keil editor after making changes, there is no "do you want to save the changes". Surprising.
Still trying to do a complete migration. Have eliminated all libraries except mbed-os. Sources come into Keil and I can edit, build, run.
First here are my steps to import to Keil:
In Keil I do file->Import from MBED Compiler. Get my files, each with an "A" (added) on the right. Go to Source Control view, says my source control is Mercurial. At this point I have no repository in GitHub. Do "Convert to a Git Repository and Fork on GitHub". That created a repository in GitHub with the correct name, but it has no files in it. Keil still says my source control is Mercurial.
You said earlier than when I try to connect to GitHub from Keil Studio, a separate tab should appear. I got a separate sub-window within the Keil window but no separate browser window. I'm using Microsoft Edge.
I think I understand GitHub basics but certain things about the way Keil interfaces to it is not clear to me.
I appreciate your help so far and hope you can help again.
We are working on improvements for the Mercurial > Git conversion. Hopefully these improvements will solve the problems you see.
Would you be able to share more details on the problems you have? Screenshots maybe?
For the other point about importing libraries, a recent update (not in production yet) will allow you to import programs or standalone libraries.
I've been away for awhile because I had an eye problem. Sticking needles in the eyeball, cutting into it. The good news is that none of it hurt.
I tried the same recipe as before for connecting to github and gues what ... it worked!
It is very scary for me to be moving my source code and libraries from one place to another, but maybe I'm now ok in Keil and Github. I eliminated my two libraries by copying their source into my project.
Need more documentation on libraries (maybe it's now there).