Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `split' for nil:NilClass #47

Open
VTDuyen1 opened this issue Nov 14, 2019 · 4 comments
Open

undefined method `split' for nil:NilClass #47

VTDuyen1 opened this issue Nov 14, 2019 · 4 comments

Comments

@VTDuyen1
Copy link

VTDuyen1 commented Nov 14, 2019

Hi everybody!
I am having the problem:

 var shell = require('shelljs');
 shell.exec('flick video -p ios -a start -u b540e68bbffcc1bb08bd518f7696a655acb9fc05');

/Library/Ruby/Gems/2.6.0/gems/commander-4.4.7/lib/commander/user_interaction.rb:359:in method_missing': undefined method split' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/lib/flick/checker.rb:5:in which' from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/lib/flick/checker.rb:15:in system_dependency'
from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/lib/flick/ios.rb:36:in devices' from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/lib/flick/ios.rb:41:in devices_connected?'
from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/lib/flick/ios.rb:45:in check_for_devices' from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/lib/flick/ios.rb:52:in get_device_udid'
from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/lib/flick/ios.rb:6:in initialize' from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/lib/flick/video.rb:13:in new'
from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/lib/flick/video.rb:13:in initialize' from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/bin/flick:34:in new'
from /Library/Ruby/Gems/2.6.0/gems/flick-0.4.6/bin/flick:34:in block (2 levels) in <top (required)>' from /Library/Ruby/Gems/2.6.0/gems/commander-4.4.7/lib/commander/command.rb:182:in call'
from /Library/Ruby/Gems/2.6.0/gems/commander-4.4.7/lib/commander/command.rb:153:in run' from /Library/Ruby/Gems/2.6.0/gems/commander-4.4.7/lib/commander/runner.rb:446:in run_active_command'
from /Library/Ruby/Gems/2.6.0/gems/commander-4.4.7/lib/commander/runner.rb:68:in run!' from /Library/Ruby/Gems/2.6.0/gems/commander-4.4.7/lib/commander/delegates.rb:15:in run!'
from /Library/Ruby/Gems/2.6.0/gems/commander-4.4.7/lib/commander/import.rb:5:in `block in <top (required)>'

Does anyone have a solution to this problem? I was really worried when it took 2 work days to find the answer to it.

@isonic1
Copy link
Owner

isonic1 commented Nov 16, 2019

Hi @VTDuyen1 - It looks like the code is failing because your PATH environment variable is coming back nil/null. If you open a termnial on this same machine and do a echo $PATH. Do you see any results?

@isonic1
Copy link
Owner

isonic1 commented Nov 16, 2019

@VTDuyen1 this particular code is checking to make sure you have the required dependencies installed before it can start the process. I can add an override to ignore the checks if for whatever reason the machine you're using doesn't have a $PATH which it technically should always.

@VTDuyen1
Copy link
Author

VTDuyen1 commented Nov 17, 2019

Hi @VTDuyen1 - It looks like the code is failing because your PATH environment variable is coming back nil/null. If you open a termnial on this same machine and do a echo $PATH. Do you see any results?

Hi @isonic1, I get the result:
➜ runtime git:(7280b65947) ✗ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Please tell me what this PATH is missing. I really need "flick" to record the automated testing process, so I look forward to hearing from you soon.

@VTDuyen1 VTDuyen1 reopened this Nov 17, 2019
@VTDuyen1
Copy link
Author

Hi @isonic1 , Can you tell me if I am missing any environment variables?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants