Closed UMSF-K13-3-Sahan closed 7 years ago
After installing phantomjs is it on your path? From the same terminal does phantomjs
start its prompt?
I add the Path and now i have new trouble.
" Running
"phantomjs" "" "C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jasmine-rails-0.12.6/lib/jasmine_rails/../assets/javascripts/jasmine-runner.js" "file://C:/Users/nikit/R ubymineProjects/SecondProj/tmp/jasmine/runner.html?spec="
Running: file://C:/Users/nikit/RubymineProjects/SecondProj/tmp/jasmine/runner.html?spec="
and my RubyMine have freezes and i need to restart it
I'm sorry, but this isn't enough information for me to help you with. Please post an example project that's exhibiting the issue and I'll re-open and investigate.
@searls https://github.com/UMSF-K13-3-Sahan/testProject.git my proj
I'm sorry, I don't think I can help you. I pulled the project down and ran:
$ bundle
$ bundle exec rake spec:javascript
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/version.rb:4: warning: already initialized constant JSON::VERSION
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-2.1.0/lib/json/version.rb:4: warning: previous definition of VERSION was here
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/version.rb:5: warning: already initialized constant JSON::VERSION_ARRAY
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-2.1.0/lib/json/version.rb:5: warning: previous definition of VERSION_ARRAY was here
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/version.rb:6: warning: already initialized constant JSON::VERSION_MAJOR
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-2.1.0/lib/json/version.rb:6: warning: previous definition of VERSION_MAJOR was here
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/version.rb:7: warning: already initialized constant JSON::VERSION_MINOR
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-2.1.0/lib/json/version.rb:7: warning: previous definition of VERSION_MINOR was here
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/version.rb:8: warning: already initialized constant JSON::VERSION_BUILD
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-2.1.0/lib/json/version.rb:8: warning: previous definition of VERSION_BUILD was here
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/common.rb:100: warning: already initialized constant JSON::NaN
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-2.1.0/lib/json/common.rb:100: warning: previous definition of NaN was here
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/common.rb:102: warning: already initialized constant JSON::Infinity
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-2.1.0/lib/json/common.rb:102: warning: previous definition of Infinity was here
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/common.rb:104: warning: already initialized constant JSON::MinusInfinity
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-2.1.0/lib/json/common.rb:104: warning: previous definition of MinusInfinity was here
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/common.rb:129: warning: already initialized constant JSON::UnparserError
/Users/justin/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-2.1.0/lib/json/common.rb:129: warning: previous definition of UnparserError was here
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from load at /Users/justin/.rbenv/versions/2.3.3/bin/rake:22)
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from load at /Users/justin/.rbenv/versions/2.3.3/bin/rake:22)
DEPRECATION WARNING: Using positional arguments in integration tests has been deprecated,
in favor of keyword arguments, and will be removed in Rails 5.1.
Deprecated style:
get "/profile", { id: 1 }, { "X-Extra-Header" => "123" }
New keyword style:
get "/profile", params: { id: 1 }, headers: { "X-Extra-Header" => "123" }
(called from load at /Users/justin/.rbenv/versions/2.3.3/bin/rake:22)
Running `"phantomjs" "--web-security=no" "/Users/justin/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/jasmine-rails-0.12.6/lib/jasmine_rails/../assets/javascripts/jasmine-runner.js" "file:///Users/justin/code/UMSF-K13-3-Sahan/testProject/tmp/jasmine/runner.html?spec="`
Running: file:///Users/justin/code/UMSF-K13-3-Sahan/testProject/tmp/jasmine/runner.html?spec=
Starting...
^C^C^Crake aborted!
Interrupt:
/Users/justin/.rbenv/versions/2.3.3/bin/bundle:22:in `load'
/Users/justin/.rbenv/versions/2.3.3/bin/bundle:22:in `<main>'
Tasks: TOP => spec:javascript
(See full trace by running task with --trace)
/Users/justin/.rbenv/versions/2.3.3/bin/bundle: Interrupt
The build started fine, but there's something in your tests or application that pegged all 8 of my CPUs such that macOS locked up entirely. I won't be able to help you further with this for free on the Internet, but my experience suggests you have some sort of halting problem in your JavaScript (or in the portions of the backend stack that get invoked necessarily when you run the app)
I trying to run my tests in terminal, but i see that: "C:/RailsInstaller/Ruby2.2.0/bin/rake: No such file or directory - which phantomjs". Also i trying install phantomjs gem and install cURL and simple phantomjs and both methods did not work. I have windows 10, Rails 5.0.3, ruby 2.2.6