Has anyone added source control (particularly Git) functionality to Simplicity Studio 2.0? I've tried using multiple sources of EGit (its own repository, Eclipse Indigo release and so on) and I've never been able to get it to work.
Any help would be appreciated.
We use git (and EGit within Eclipse) when developing Studio, so it should work. I've never tried it personally inside of Studio, so let me try it.
OK, it seems to be working fine for me. Here are the steps that I followed:
1) Add EGit site to the list of available update sites (Window->Preferences->Install/Update->Available Software Sites, click add and enter http://download.eclipse.org/egit/updates for location).
2) Help->Install New Software and select the site you just added at the top.
3) Expand Eclipse Git Team Provider and check its child with the same name. You probably don't need the source code for it, and the task focused item is optional. I don't use it personally.
4) Walk through the rest of the install wizard and restart Studio when prompted.
5) Window->Open Perspective->Other..->Git. Now you should be able to clone or create a new repo, etc.
I hope this helps.
This failed for me in v2 Simplicty Studio v1.1.1 at point #2 as the "Help" menu does not contain an "Install New Software" item, only "Add and Remove Software..." and "Update Software...", both do not work.
How should we proceed to install 3rd party plugins?
From "Add and Remove Software...", in the "Add / Remove Packages" page, there is a link near the bottom left for "Advanced Install..." and that should give you access to install third party software.
Yep, that did it for me. Thanks!
Unfortunately, it doesn't work any more since 3.1 release
Try Control-3 and search for Install New Software
Thanks, it seems to work !
For Egit, use 3.7.1 version instead of last 4.0.1 ( http://download.eclipse.org/egit/updates-3.7.1 )
Naïve, Mac OS X, command line git solution.
First the throat clearing: I'm calling this naïve because I haven't tested this against a non-trivial project structure, so hopefully someone wiser than I will chime in with further info. This is strictly attempting to solve the problem of sharing a single MCU project across multiple dev machines while maintaining a sane git workflow. Also, obviously you'll need command line git installed. I'm using the version installed via the Xcode developer tools install.
So, after spending all morning trying permutations of MCU project and git repository relationships I've landed on this general approach:
Make your repo from an entire Eclipse workspace. (Plus one extra step, see below)
Here is an outline of the steps I'm using, with further detail below:
Step 1: (On Dev Machine 1)
Open Simplicity Studio, select File > Switch Workspace. You're going to create a new workspace which will become the root of your new repo. It's important that this be a new, clean file structure. It can't be nested inside any existing workspaces. ex: In the Switch Workspace dialog, browse to ~/Documents and create a new folder called 'GitWorkspace.' Complete the Switch Workspace dialog flow.
Note the .metadata folder which now exists in ~/Documents/GitWorkspace (Make sure you're showing hidden files in the Finder. Google 'Mac OS X show hidden files'. It's a one line Terminal command) Eclipse seems to use this .metadata folder to stand up various parts of the IDE.
In Terminal, cd to the workspace you've created (~/Documents/GitWorkspace). Type: 'git init' Add a README.md with some stuff in it, if that's your gig.
I'm using the following .gitignore. It's the standard c gitIgnore plus a few extra lines for toolchain artifacts. This .gitIgnore hasn't been tested against complex projects, so your mileage may vary.
# Object files
# Compiler Artifacts
# Precompiled Headers
# Shared objects (inc. Windows DLLs)
# Debug files
git remote add origin https://github.com/whatever_your_remote_is_if_youre_using_gihub.git
git add (-i if you're fastidious)
git commit -m "Firsties"
git push -u origin master
Step 6 (Switching over to Dev Machine 2 now):
On Dev 2, create a directory to hold the workspace you're about to clone. ~/Documents/GitWorkspace will work fine here as well. Though note that the workspace directory path/naming needn't match between Dev 1 and Dev 2.
Still on Dev 2, Launch Simplicity Studio, and click File > Switch Workspace.
Point it at ~/Documents/GitWorkspace
SimpStu should relaunch and the Project Explorer should look pretty good. Any projects in the workspace/repo pushed from Dev 1 should appear.
For me the emlib and CMSIS folders are missing. A little examination shows that the FIRST switch of the workspace on Dev 2 overwrites the .project file with something kind of dumb. Subsequent switches don't seem to do this. So the fix is, AFTER the initial workspace switch on Dev 2, simply paste the contents of REMOTE .project files from Dev 1 into their respective .project files on Dev 2. Again, you should only have to do this once on Dev 2.
The project explorer should update immediately, projects should build cleanly on Dev 2, and you should be set up for a fairly sane git workflow among Dev 1, Dev 2, ..., Dev N.
Again, your mileage may vary here, but this works for me with a simple MCU project with SimpStu v3.
Saving the entire workspace is not necessary and will cause problems because of the .metadata folder having a lot of history/log files and hard-coded paths. Only the files under the project are needed (.project, .cproject, .settings, src, inc, emlib, CMSIS, Drivers, Radioconfig, etc). Make sure that emlib source files and any other sdk files get copied into the project folder.
With Simplicity V3 (3.3?) Egit does not work, at least not egit 3.6.2 or 3.7.1. Egit 4.4 doesn't even seem to install properly. Subversive works, though.
For Simplicity Studio version 4:
1) Go to Launcher.
2) Click the download arrow at upper left. This will bring up the Package Manager.
3) Select Tools->EPP Marketplace Client.
4) Restart Studio when asked.
5) Help->Eclipse Marketplace
6) Search egit finds 'egit integration for Eclipse 4.6.0' (for me). Install.
7) Restart Studio when asked.
8) Window->Perspective->Open Perspective->Other...
9) Select the Git perspective
10) Clone a Git repository
11) Enter https://bitbucket.org/mydev...
And they're off....