Sublime Forum

Seeing_is_believing

#1

I use ruby with rbenv and I’d like to know how to install seeing_is_believing properly.
The instructions are vague.

There’s plenty on how to make a wrapper for rvm but I have rbenv…

0 Likes

#2

Seems you should follow the steps on:

  1. https://github.com/JoshCheek/seeing_is_believing/wiki/Installation

And later at:

  1. https://github.com/JoshCheek/sublime-text-2-and-3-seeing-is-believing

If you have some problem with the install instructions, open issue on the respective issue tracker:

  1. https://github.com/JoshCheek/seeing_is_believing/issues
  2. https://github.com/JoshCheek/sublime-text-2-and-3-seeing-is-believing/issues

Explain what did you have tried so far and where are you stuck at.

0 Likes

#3

The part I am struggling with is the instructions:

'You will need to update the settings that tell this plugin how to run the code. This is in your package directory.

Update the settings where? in Sublime? In rbenv?
What package directory? Sublime’s ?

If you are using rbenv, make sure the ruby_command is pointed at ~/.rbenv/shims/ruby, or wherever you have your rbenv ruby installed, then edit the environment variable specifying the RBENV_VERSION, you can see a list of possible values with rbenv versions.’

I don’t know how to point ruby_command to where rbenv is installed.
I don’t know what ‘editing the enviornment variable’ means

0 Likes

#4

You open your Sublime text packages directory via Preferences > Browse Packages….
There you checkout from git or put the unzipped zip file you can download on the page.
This should be a folder, which contains .py and .sublime-* files and you may rename it to SeeingIsBelieving

Inside that folder you can edit the file Seeing Is Believing.sublime-settings or create a copy of it in the folder User. There you can edit ruby_command and other settings. Changing environment variable is OS dependent and you may just search for it.

0 Likes

#5

These are common terms used in programming and system configurations. I am try to point you to the right directions.

You will need to update the settings that tell this plugin how to run the code. This is in your package directory.

Here he is directing you to the Sublime Text settings file for the seeing_is_believing package. You can find them on the menu. To understand how Sublime Text settings work, read:

  1. https://www.sublimetext.com/docs/3/settings.html
  2. http://docs.sublimetext.info/en/latest/customization/settings.html

Update the settings where? in Sublime? In rbenv?

In Sublime Text. You can assume this because you are reading the Sublime Text package installation instructions. If it was some other settings, he would explicitly state which one.

What package directory? Sublime’s ?

Again from the context you can assume the Sublime Text packages directory. You can access it on the menu:

If you are using rbenv, make sure the ruby_command is pointed at ~/.rbenv/shims/ruby, or wherever you have your rbenv ruby installed, then edit the environment variable specifying the RBENV_VERSION, you can see a list of possible values with rbenv versions.’

I don’t know how to point ruby_command to where rbenv is installed.
I don’t know what ‘editing the enviornment variable’ means

How to configure it, depends on which Operating System you are using. The environment variables are used by the system applications as configurations. You can learn more about them on:

  1. https://www.google.com.br/search?q=environment+variables
  2. https://www.google.com.br/search?q=setting+system+variables
  3. https://www.google.com.br/search?q=environment+variables+on+windows
  4. https://www.google.com.br/search?q=environment+variables+on+linux
  5. https://www.google.com.br/search?q=environment+variables+on+mac

If you are on windows, the ruby installer, should already configure them for you.

0 Likes

#6

I have the folder SeeingIsBelieving via Preferences > Browse Packages.
It’s named properly.
I created a copy of it in the folder Preferences > Browse Packages > User.

Here I assume I edit the RBENV_VERSION:
However, my version does not have a p which shows automatically in the file as "RBENV_VERSION": "2.2.2p95",
my terminal says the following

 rbenv versions
  system
* 2.1.5 (set by /Users/NEWCOMPUTER/.rbenv/version)
  2.3.2
  2.3.3

Does the lack of p matter?

0 Likes

#7

Then when I do this

rbenv -v
rbenv 1.1.0

I get an entirely different version, so I’m not sure what to do here

0 Likes

#8

SeeingIsBelieving is still not inside my Prevferences > PackageSettings…

0 Likes

#9

It wont show up because the developer had commented out the main menu entry on the source code:

  1. https://github.com/JoshCheek/sublime-text-2-and-3-seeing-is-believing/commit/2cf3b018d1e5f3ca103611a5873d1417e59e8cd8

If you want the entry there you would need to edit the file pointed, uncomment it and remove the trailing []

0 Likes