Shakespeare Analyzer missing bin/setup file?

Howdy, I was working through setting up the Shakespeare Analyzer code challenge. The setup instructions tell me to run bin/setup, but it doesn’t look like it exists in the repo. The only file in the repo is the README.

Should I just build out the files myself or am I missing something?

1 Like

Having same problem. What do we miss here? Anyone?

3 Likes

@lompy sorry for the trouble. The file is there, see the output from my terminal below:

[~/projects] git clone git@git.thoughtbot.com:cpytel/shakespeare-analyzer.git
Cloning into 'shakespeare-analyzer'...
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 13 (delta 1), reused 0 (delta 0)
Receiving objects: 100% (13/13), done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.
[~/projects] cd shakespeare-analyzer
[master][~/projects/shakespeare-analyzer] ls
README.md bin
[master][~/projects/shakespeare-analyzer] ls -la bin
total 8
drwxr-xr-x  3 cpytel  staff  102 Jul  2 09:39 .
drwxr-xr-x  5 cpytel  staff  170 Jul  2 09:39 ..
-rwxr-xr-x  1 cpytel  staff  222 Jul  2 09:39 setup

If that’s not what you’re seeing, can you try recloning and if that doesn’t resolve the issue, paste the similar output from your terminal?

thanks,
-Chad

So I’ve tried to checkout first three exercises. Only third (‘Extract Class’) has /bin directory.

Contents of first two:

lompy@uh ~/code/learn$ git clone git@git.thoughtbot.com:lompy/shakespeare-analyzer.git 
Clonage dans 'shakespeare-analyzer'...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "fr_FR.UTF-8",
	LANG = "fr_FR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 9 (delta 1), reused 0 (delta 0)
Réception d'objets: 100% (9/9), done.
Résolution des deltas: 100% (1/1), done.
Vérification de la connectivité... fait.

lompy@uh ~/code/learn$ ls -la shakespeare-analyzer
total 16
drwxrwxr-x 3 lompy lompy 4096 juil.  3 00:59 .
drwx------ 4 lompy lompy 4096 juil.  3 00:59 ..
drwxrwxr-x 8 lompy lompy 4096 juil.  3 00:59 .git
-rw-rw-r-- 1 lompy lompy 1536 juil.  3 00:59 README.md

lompy@uh ~/code/learn$ git clone git@git.thoughtbot.com:lompy/sudoku-validator.git
Clonage dans 'sudoku-validator'...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "fr_FR.UTF-8",
	LANG = "fr_FR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 13 (delta 6), reused 0 (delta 0)
Réception d'objets: 100% (13/13), done.
Résolution des deltas: 100% (6/6), done.
Vérification de la connectivité... fait.

lompy@uh ~/code/learn$ ls -la sudoku-validator
total 32
drwxrwxr-x 3 lompy lompy 4096 juil.  3 01:00 .
drwx------ 5 lompy lompy 4096 juil.  3 01:00 ..
drwxrwxr-x 8 lompy lompy 4096 juil.  3 01:00 .git
-rw-rw-r-- 1 lompy lompy  231 juil.  3 01:00 invalid_complete.sudoku
-rw-rw-r-- 1 lompy lompy  231 juil.  3 01:00 invalid_incomplete.sudoku
-rw-rw-r-- 1 lompy lompy 2143 juil.  3 01:00 README.md
-rw-rw-r-- 1 lompy lompy  231 juil.  3 01:00 valid_complete.sudoku
-rw-rw-r-- 1 lompy lompy  231 juil.  3 01:00 valid_incomplete.sudoku

Sorry for my french and banch of locale warnings, don’t know how to get rid of them.
Somehow my clones of the repos are not full.

I also cloned and did not have the files. I moved on and completed the exercise because I assumed the instructions were out of date. The instructions also said to fork and send a pull request, which I believe is out of date (?) since you push to your own repo and then submit the solution via the form on the excercise page.

bin is also missing for me when I do a fresh clone, and I also get a locale warning (no idea where that comes from, how is Perl involved here?!).

$ git clone git@git.thoughtbot.com:andyw8/shakespeare-analyzer.git
Cloning into 'shakespeare-analyzer'...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
remote: Counting objects: 21, done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 21 (delta 2), reused 0 (delta 0)
Receiving objects: 100% (21/21), 4.42 KiB | 0 bytes/s, done.
Resolving deltas: 100% (2/2), done.
Checking connectivity... done.
$ cd shakespeare-analyzer/
$ ls -al
total 48
drwxr-xr-x  11 andy  wheel   374  3 Jul 23:07 .
drwxrwxrwt  36 root  wheel  1224  3 Jul 23:07 ..
drwxr-xr-x  12 andy  wheel   408  3 Jul 23:07 .git
-rw-r--r--   1 andy  wheel   119  3 Jul 23:07 Gemfile
-rw-r--r--   1 andy  wheel   584  3 Jul 23:07 Gemfile.lock
-rw-r--r--   1 andy  wheel   693  3 Jul 23:07 README.md
drwxr-xr-x   3 andy  wheel   102  3 Jul 23:07 lib
-rw-r--r--   1 andy  wheel   393  3 Jul 23:07 macbeth_analyser.rb
-rw-r--r--   1 andy  wheel   855  3 Jul 23:07 output.txt
-rw-r--r--   1 andy  wheel   381  3 Jul 23:07 runner.rb
drwxr-xr-x   3 andy  wheel   102  3 Jul 23:07 spec

Yo Chad. I just cloned it fresh (not a fork) and not only do I not see a bin/setup but I see no instructions that mention the file. I don’t remember it from when I completed the task awhile back: GitHub - therubymentor/shakespeare_analyzer: A Thoughtbot Upcase Ruby Challenge

Is this about a different repo than: GitHub - thoughtbot/shakespeare_analyzer: An exercise for Prime subscribers.

Just trying to lend a hand

Sorry for all the confusion here. I think there are a few things which are tripping people up.

The shakespeare-analyzer exercise existed as a Git repository before we launched our new exercise system. If you start the exercise now, you should start it from the new exercise page.

If you submitted a solution to this exercise before we launched our new exercise system, we may have imported your solution from GitHub. The old, GitHub version did not have a bin/setup script. This means that, if you submitted a solution before we launched the new system, your personal clone will not have a bin/setup script.

We’ve since fixed the references to GitHub in the README, but the README gets copied into your personal clone when you start the exercise, so you may still see references to GitHub.

We’re still working out the best way to handle source changes after personal clones are created, and we’re open to suggestions and feedback.

Thanks for your patience, and feel free to reply back if you’re still confused or having trouble.