NoMethodError: undefined method 'perform' for nil:nilClass
The message above is what I'm getting from my command line. This is after a type in my path and then the sass --watch input.scss:output.css then it returns the above error message.
SASS version: 3.2.14
Ruby version: 2.0.0 (The most recent version)
Windows 8
Using a localhost and a testing server.
I need help! :)
Hi this is "usually" a problem with your sass code and not with the compiler itself. Track back a few steps and see if you added any unusual code like IE filters etc.
You can refer here for more
Sass error on compilation NoMethodError: undefined method `count' for nil:NilClass Use --trace for backtrace
Related
I Don't know anything about Ruby, found code below which reports AWS status
https://gist.github.com/ktheory/1604786
/1.rb https://status.aws.amazon.com/rss/a4b-us-east-1.rss
Error fetching status: undefined method `text' for nil:NilClass
ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
latest_status = xml_doc.css("item title").first.text
print lastest_status
in `<main>': undefined method `text' for nil:NilClass (NoMethodError)
If first comes up empty and returns nil you can't just blunder along or your code will crash. You need to tread carefully:
latest_status = xml_doc.css("item title").first&.text
Or, if you're using an older version of Ruby and have ActiveSupport from Rails:
latest_status = xml_doc.css("item title").first.try(:text)
Or else you're going to need to do it the hard way:
latest_status = xml_doc.css("item title").first
latest_status &&= latest_status.text
You should probably figure out why that selector isn't working as it might not be correct and ends up returning nothing.
undefined method executeScript' for <Selenium::WebDriver::Chrome::Bridge:0x007ffd0fa16e90> Did you mean? execute_script (NoMethodError)
I'm getting this error on any line with element.fire_event('onClick')
Chrome version 53.0.2785.143 (64-bit)
ChromeDriver 2.24.417412
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin16]
I'm using selenium-webdriver/page object.. I defined my element..
checkbox(:check_the_box, :id => 'checkboxid')
then tried to execute a fire_event on it..
check_the_box_element.fire_event('onClick')
then i receive the error above.
undefined method `executeScript' for # Did you mean? execute_script (NoMethodError)
Exception clearly states, It should be WebDriver#execute_script(script, *args) instead
Hi i am tryng to installs rails for the first time, following steps given in http://installrails.com/. But I am facing this problem when I give this command in git bash
curl http://installrails.com/update_rubygems.rb | ruby
this error comes up:
Downloading ...
-:55:in 'filename': undefined method 'split' for nil:NilClass <NoMethodError>
from -:25:in 'download'
from -:14:in 'call'
from -:60:in '<main>'
When I try to run the compile command below for compass I get an error saying sub is undefined for nil:Nilclass.
Command
compass compile hack-stack/app/styles --relative-assets --sass-dir hack-stack/app/styles --output-style expanded --images-dir images --css-dir public
Error
compass-0.12.6/lib/compass/compiler.rb: undefined method `sub' for nil:NilClass
I'm running ruby version 2.0.0p0 and compass version 0.12.6.
What is wrong with the command I'm running?
You need the compass pre-release.
gem install compass --pre
I'm attempting to set up a Watir environment. I had several issues actually installing the gems necessary, so I uninstalled and reinstalled Ruby 1.9.3 (I'm running Windows 7.) Now, I can't do any installs, updates, etc. from the ruby command line. Here is an example of some simple commands that should work but are not:
C:\Users\Matt Adams>irb
irb(main):001:0> gem -v
NameError: undefined local variable or method `v' for main:Object
from (irb):1
from C:/Ruby193/bin/irb:12:in `<main>'
irb(main):002:0> gem update
NameError: undefined local variable or method `update' for main:Object
from (irb):2
from C:/Ruby193/bin/irb:12:in `<main>'
I can start ruby irb, but that's it. Its almost as if none of the ruby commands were installed. Anyone have any suggestions? Note that I've already done a re-install.
IRB is there for you to try out Ruby commands or snippets and see immediate responses. If you want to install or update gems, I suggest you get off IRB first by running "quit" and follow whatever instructions you have on your hand.