Sproutcore issuing errors on starting - sproutcore

I am new to sproutcore, and have installed the sproutcore properly as explained in the tutorial, including from rvm, to ruby 1.9.2 to all the gems dependencies. But whenever, i am issuing any sproutcore command, it throws me this error.
sproutcore server fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git /home/love/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.1.3/lib/bundler/rubygems_integration.rb:223:in `block in replace_bin_path': can't find executable sproutcore (Gem::Exception)
from /home/love/.rvm/gems/gems/sproutcore-1.8.2/bin/sproutcore:16:in `<top (required)>'
from /home/love/.rvm/gems/ruby-1.9.2-p320/bin/sproutcore:19:in `load'
from /home/love/.rvm/gems/ruby-1.9.2-p320/bin/sproutcore:19:in `<main>'
Hope, if some one can solve, Thanks in advance.

There was an issue with the 1.8.2 gem that was fixed and pushed up as 1.8.2.1
Just run gem update sproutcore to get the latest version.
Check the blog update for more details: http://blog.sproutcore.com/sproutcore-1-8-2-released/

Related

How does a Ruby gem becomes invalid?

My Ruby on Rails dev server has been running for a while on Windows 2016 server. But I had to restart it yesterday.
Then it raised the following error:
The git source https://github.com/fchampreux/write_xlsx_rails.git is not yet checked out. Please run `bundle install` before trying to start your application
I don't understand where this suddenly comes from !?! I created this gem 2 years ago by forking an obsolete version from DatozMX/write_xlsx_rails. And it used to work as expected. It is declared in Gemfile as the following:
# XLSX format support
gem 'write_xlsx'
gem 'write_xlsx_rails', git: 'https://github.com/fchampreux/write_xlsx_rails.git', branch: 'master'
If I replace the remote reference by the former local path (used when updating the gem), the gem is made available. But this cannot be used for deployment.
So I tried to run bundle install as suggested, and I get the following error:
Retrying `git clone --bare --no-hardlinks --quiet --no-tags --depth 1 --single-branch --branch master -- https://github.com/fchampreux/write_xlsx_rails.git
C:/Ruby27-x64/lib/ruby/gems/2.7.0/cache/bundler/git/write_xlsx_rails-858752332ce805e34a469f55ad6a2b115033800a` at C:/Sites/sis-portal due to error (2/4):
Bundler::Source::Git::GitCommandError Git error: command `git clone --bare --no-hardlinks --quiet --no-tags --depth 1 --single-branch --branch master -- https://github.com/fchampreux/write_xlsx_rails.git
C:/Ruby27-x64/lib/ruby/gems/2.7.0/cache/bundler/git/write_xlsx_rails-858752332ce805e34a469f55ad6a2b115033800a` in directory C:/Sites/sis-portal has failed.
fatal: unable to access 'https://github.com/fchampreux/write_xlsx_rails.git/': SSL certificate problem: self signed certificate in certificate chain
As other gems are correctly updated by the Bundler, I suspect a certificate issue. But why only on this gem from my GitHub repository? This is beyond my competency!
I finally solved the problem by updating Git.
We use the SSL version built into Git install. We installed it more than 2 years ago ... and its certificates were over 2 years old and had expired.

RoR: Rake failing - "Not a git repository : .git" & "Could not find activesupport-4.2.3 in any of the sources"

UPDATE 2: This gem is definitely causing the git errors as well. In the gemspec files it has git commands which when I commented out, got rid of the git errors.
UPDATE 1: So after uninstalling ruby and all gems and going back through and reinstalling I found the source of at least one of the issues. The devise-neo4j gemfile.lock requires version 4.2.3 of activesupport and all other rails gems. Currently looking to see if there's a fix. Not sure if that is also causing the weird git errors but they seemed to crop up at the exact same time.
ORIGINAL POST:
When running any rake command I get the following error :
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Could not find activesupport-4.2.3 in any of the sources
Run `bundle install` to install missing gems.
Which makes no sense because when I run git status I get:
On branch master
nothing to commit, working tree clean
and I also have active support installed so I have no idea whats happening:
C:\Users\mcr43\RubymineProjects\Carbon>bundle show activesupport
D:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/activesupport-5.0.1
I've tried looking for a solution via other people with similar issues but nothing seems to be working.
Where do run a rake command. in development or in production? In development it should not have anything to do with git. Are you using rails 5+? than you can also try rails db:migrate instead of rake. at least in development. Did you check git remote? did you run git add . and git commit -m "com" correctly? Did you push everything into git? Can you see your app in your git folder online? Try these things and double check.
Have you tried running bundle install?
You have activesupport-5.0.1 installed, but it is looking for activesupport-4.2.3
So after uninstalling ruby and all gems and going back through and reinstalling I found the source of at least one of the issues. The devise-neo4j gemfile.lock requires version 4.2.3 of activesupport and all other rails gems. Currently looking to see if there's a fix. Not sure if that is also causing the weird git errors but they seemed to crop up at the exact same time.
UPDATE: This gem is definitely causing the git errors. In the gemspec files it has git commands which when I commented out, got rid of the git errors.

Installing CocoaPods on virtual machines

I am using OS X El Capitan, Version 10.11.4 using VMWare
I am able to install the gem by using sudo gem install cocoa pods
I want to use Firebase in my project and followed the guideline mentioned on official website.
On pod install, I am getting the below error
pod install --verbose
Preparing
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`.
(/usr/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
)
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/sources_manager.rb:35:in `rescue in find_or_create_source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/sources_manager.rb:38:in `find_or_create_source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:654:in `block in sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:653:in `map'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:653:in `sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:144:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:114:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/install.rb:37:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
What i have tried so far
Went to ~/.cocoapods/repos and executed the below command
git clone https://github.com/CocoaPods/Specs.git master
And got error
Cloning into 'master'...
remote: Counting objects: 798955, done.
remote: Compressing objects: 100% (26/26), done.
~/.cocoapods/repos 9% (73183/798955), 14.57 MiB | 113.00 KiB/s
After above line it hangs for ever, With no network activity on Activity monitor
Further, I increased the buffer size by executing
git config --global http.postBuffer 157286400
It is a connection problem.
To solve this issue, you have to go to VM settings to Bridge the physical connection.
VMware Player-->Removable Devices-->Network Adapter-->settings
You will find Network connection and check both
Bridged: Connected directly to the physical network
Replicate physical network connection state(if you are using a laptop).
Check following link for detail:
https://pubs.vmware.com/workstation-9/index.jsp?topic=%2Fcom.vmware.ws.using.doc%2FGUID-826323AD-D014-475D-8909-DFA73B5A3A57.html
It takes some time for Cloning into 'master'... You should wait for few minutes to complete it.
I'm not sure about this particular error, but I solved similar error in either:
downloading the needed library through Windows operating system, then copy the library
to maciOS on the VMware. (download still takes a very long time though, about a day)
upgrading my RAM and get 12GB of ram and using ssd hard. This makes it very easy to
develop using VMWare

bundle install leads to git clone error. Not sure what this response means

Getting a strange error on bundle install..
bundle install
Fetching gem metadata from http://rubygems.org/.....
Fetching gem metadata from http://rubygems.org/..
Fetching git://github.com/maccman/gdata.git
fatal: The remote end hung up unexpectedly
Git error: command `git clone 'git://github.com/maccman/gdata.git' "/Users/elephanttrip/.rvm/gems/ruby-1.9.2-p318#shasta/cache/bundler/git/gdata-811f852468ac76e0019108d8c5320da12b6683d4" --bare --no-hardlinks` in directory /Users/elephanttrip/Sites/shasta has failed.
This wasn't happening until I installed the mysql2 gem and mysql with brew.
Any ideas what this error means?
UPDATE
Also none of the folders it is trying to clone this to exist. It's probably something to do with my bundle paths and juggling .rvm
The problem is not on your end. Trying:
git clone 'git://github.com/maccman/gdata.git' "foobar" --bare --no-hardlinks
Fails on my machine with the same error.
Interestingly a non-bare clone seems to work as expected.
resolution: Clone from the https interface: https://github.com/maccman/gdata.git instead.
In your Terminal write bundle config github.https true
In your Terminal write bundle install
Add your SSH key to the github.
Or as #brice mentioned, you need to add your team to the repo.

Heroku / "fatal: pathspec '.gems' did not match any files"

I am trying to deploy one ROR app on Heroku.
As I typed "git push heroku master", I got this :
-----> Heroku receiving push
-----> Rails app detected
-----> WARNING: Detected Rails is not declared in either .gems or Gemfile
Scheduling the install of Rails 2.3.8.
See http://docs.heroku.com/gems for details on specifying gems.
I wanted to know what it meant especially what was behind the "WARNING" message.
On Heroku's website (http://docs.heroku.com/gems) it's said you can fix this issue with the following instructions :
git add .gems
git commit -a -m "added .gems file specifying framework
git push heroku master
The problem is when i type "git add .gems", I get this :
fatal: pathspec '.gems' did not match any files
What do you think i should do ?
Thanks in advance for your time.
Have been learning Ubuntu, Heroku+ROR for a few days
OS : Ubuntu
Ruby : 1.8.7
Rails : 2.3.8
You have to create the .gems file first, if it doesn't exist already:
$ touch .gems
$ git add .gems
$ git commit

Resources