I tested that sample on a windows and a mac machine and was able to create a project. I think either of the two could be happening :
1) Try recreating the project. If you still get the error, it is possible something went wrong in XDK installation and the git/npm settings are not correct. To fix this, can you do a complete uninstall and then reinstall it. Follow these instructions to do a clean uninstall : https://software.intel.com/en-us/xdk/faqs/general#app-preview-login
2) some proxy setting or environment variable are not set correctly. Let us see where step #1 gets you and then dig more into #2 if needed.
Hi Anjali, i'm actually facing the same exact problem and i tried to uninstall the xdk and then re-install it following the steps in the link you posted, but it didn't solve the problem and i still get the same error when trying to open the BLE-Central sample
Interesting, but probably not coincidental. My XDK installation was fresh and the BLE-Central app was the first thing I tried.
Out of curiosity, I tried a fresh install of XDK v3641 on Windows 10. It also has problems when I tries BLE-Central with the project name 'ble-central", but with a different error signature:
Error creating project: Error copying tmp directory contents to project: Could not copy directory: C:/Users/ssbc/AppData/Local/Temp/tmp-7372ICNesF6rk3Bv/unzip/samples
Then I tried it again with a different project name "blecentral" (no dash)... and it worked (for Win10 anyway)! There was mention on another thread about special characters being problematic in project names... That would appear to be the case here.
Now I need to try this on Mac OS.
Alas, no luck on Mac OS. I created a new BLE Central project without the hyphen in the project name and still get the Plugin Resolution Error (albeit with slightly different details).
That said, looks like a Mac-specific issue. Hopefully this will provide some more clues...
Thanks for the feedback SSBC. We have filed a bug regarding this hyphen issue, it's not clear why some of you are seeing it and many are not. For example, I use a Mac and use dash characters in most of my project names, yet I do not experience this problem. Hoping we can get to the bottom of it.
Thanks for the bug filling. Just to be clear, the "Plugin Resolution Error" issue is still present (even without hyphens) for Mac OS. Amr N has independently found the same issue with the BLE-Central demo project.
Hi SSBC -- that one we have also been unable to reproduce. Every machine we've tried has been able to successfully create the BLE sample, with no plugin issues. :-( --Paul
Git is used under the hood to perform the "plugin add" process. On Mac and OSX systems a copy of git is included with the install. However, on Linux systems, the installed git is used, because there is no way for us to guarantee that a binary we provide will be compatible with your Linux system. I have seen some situations where the git config file caused odd problems, usually because it contained some config options that applied only to some very old versions of git.
Some details about your host OS (Linux, Mac, Windows) and the version of git on your system (git --version) might be helpful.
SSBC -- based on the error message provided, are you able to perform the following at the command-line?
git -c init.templatedir=/Applications/Intel\ XDK.app/Contents/MacOS/git/share/git-core/templates clone https://github.com/don/cordova-plugin-ble-central.git /tmp/test --single-branch --depth=1
Notice that I've changed the target folder to be "/tmp/test" instead of the long one, which is probably derived from $TMPDIR on your Mac. When I performed the command above it worked on my system.
Paul -- i'm running on OSX 10.11.4 and git version is 2.10.1 and tried to run the command
separately as you mentioned through the terminal and it worked fine and i was able to clone the repo successfully but not through the xdk i'm still getting the same error
Paul -- which gitconfig file do you mean ?! i'm sorry i'm not so good with git, i have two gitconfig files one in ~/.gitconfig and the other one in /usr/local/git/etc/gitconfig with different content which one should i check and what exactly should i check for ?
Both of them apply. You might want to start by renaming both to something like gitconfig.org so neither is used, to see if it makes a difference (in other words, remove them from the equation). If that fixes things, then you can do some experimentation with the contents to figure out which configuration option is causing the problem. Sorry, I don't know what is inside your config files or which option might be causing a problem. First step is to simply determine if those are the source of the problem. If they are not the source of the problem, we have to look elsewhere.
Amr -- did you remove all special characters, including dash characters, from the name of the project? Make another project from the sample, but do not include any dash characters or special characters in the name of the project, use just letters and numbers.
Paul -- i tried everything for the name and nothing passed.
The output of printenv :
I've asked the responsible engineer for some help. Nothing making sense. In the meantime, I recommend you try running the XDK on another machine, there's something about your environment on that machine that's got to be causing the problem, but I cannot put my finger on it.
What version of OSX are you running on your Mac? One thing that keeps popping up when investigating this issue is openssl, which makes sense, because https depends on that. For example, this post > http://kamituel.tumblr.com/post/40678251617/fix-for-git-error-fatal-unable-to-find-remote < I'm wondering if there's an issue with the openssl library on your system? It's a bit of reach...