atom-community / atom-community/atom-script

'ruby' is not recognized as an internal or external command ... error

Open
#1,235 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

Firstly, I expect viewers will read the title of this issue & think I haven't read [Atom can't find node | ruby | python | my socks](https://github.com/rgbkrk/atom-script#atom-cant-find-node--ruby--python--my-socks) but I have :innocent:

Even so, apologies if this is a stupid question, I'm new to this.

When I try to run [this](https://gist.github.com/aplssf/cc666ec1dec55c647efb4b733ac83b50) script, I get the error

> 'ruby' is not recognized as an internal or external command, operable program or batch file.

Before opening Atom from my command line, I have navigated to the directory that contains the file & run `ruby -v` which does return the current version of Ruby (2.2.6p396). But when I open the file using `atom .` & run [line 83](https://gist.github.com/aplssf/cc666ec1dec55c647efb4b733ac83b50#file-twitter_bio_search_public-rb-L83) only, I get the above error too.

**Platform**: Windows 10 Pro
**Atom version**: 1.13.1
**Script package version**: 3.14.1

I'm afraid I don't know where to find this - *Consider adding a failing spec, with an Atom package this isn't as simple but could really help speed up debugging the issue.*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.