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…
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…
Seems you should follow the steps on:
And later at:
If you have some problem with the install instructions, open issue on the respective issue tracker:
Explain what did you have tried so far and where are you stuck at.
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
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.
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:
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:
If you are on windows, the ruby installer, should already configure them for you.
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?
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
It wont show up because the developer had commented out the main menu entry on the source code:
If you want the entry there you would need to edit the file pointed, uncomment it and remove the trailing []