EzDevInfo.com

SublimeREPL

SublimeREPL - run an interpreter inside ST2 (Clojure, CoffeeScript, F#, Groovy, Haskell, Lua, MozRepl, NodeJS, Python, R, Ruby, Scala, shell or configure one yourself) wuub/SublimeREPL · GitHub sublimerepl - run an interpreter inside st2 (clojure, coffeescript, f#, groovy, haskell, lua, mozrepl, nodejs, python, r, ruby, scala, shell or configure one yourself)

Pry in SublimeREPL

Has anyone had any luck using swapping irb out for pry in SublimeREPL? I'm close, I think. I don't get an error however I don't get a response when I enter a command either. It behaves like the buffer is being reset each time I hit return.


I'm using rbenv and have set my SublimeREPL PATH as follows:

  "default_extend_env": {"PATH": "{HOME}/.rbenv/bin:{HOME}/.rbenv/shims:{PATH}"}

Source: (StackOverflow)

SublimeREPL and rails console

Is there any method to run rails console via SublimeREPL (or another plugin) in Sublime Text?


Source: (StackOverflow)

Advertisements

Sublime Text: Permission denied when running Sublime REPL by non-root user under Ubuntu

When trying to run Sublime REPL, I get a message box with permission denied error: IOError(13, 'Permission denied') unless I launch Sublime Text with root privileges (sudo sublime). It holds for any REPL language.

I'm using Ubuntu 12.10, and Sublime resides in /opt/ directory.

Since I can't google anyone else having this problem, probably there's something special about my filesystem privileges somewhere. What can cause files that Sublime REPL use be protected?


Source: (StackOverflow)

SublimeREPL to python

How i can tune sublimeREPL to python in Sublime Text 2? My use (Python 3.3 on windows 7):

"default_extend_env": {"PYTHONPATH": "C://Python33"},

It not work, because in build (Tools -> SublimeREPL -> Python -> Python (or Python RUN current file)) alert error and not have message on bottom console.

Error message:

error


Source: (StackOverflow)

How to configure SublimeREPL for mit-scheme?

I have installed SublimeREPL, and now I am trying to customize the interpreters a bit. How can I add MIT Scheme to the Tools->SublimeREPL menu? I am new to Sublime Text 2.


Source: (StackOverflow)

how to run python code on SublimeREPL

I really like using sublime text 2 to write python codes, however any time I try to run a script which has an input, the sublime text console reports an error. So, I decided to try SublimeREPL, however I've been searching for hours and I still didn't find how to run the code there.. could you guys help me?

I wan to run the code on repl as we do with the sublime text console (crtl+b).. what I actually want to know is whether there's a way to do the same with repl or not, 'cause I couldn't find any answer yet

thank you in advance!


Source: (StackOverflow)

Running Python interactively from within Sublime Text 2

I have looked at all the answers on this forum but I'm missing something. I want to be able to hit Cmd+B while editing a Python file "myfile.py" in Sublime Text 2.

This should open up a Python shell that loads my file and returns me to the interactive prompt so the namespace in my Python script is available.

Setting the -i option in the build setting still closes the interpreter (see below)

> 81
> >>>  [Finished in 0.1s]

I downloaded sublimeREPL but I'm not sure how to set the -i option.
Any help is appreciated


Source: (StackOverflow)

sublime text 2 scala repl paste mode doesn't exit on ctrl-D

Has anyone seen this problem? Start the scala REPL and

scala> :paste
// Entering paste mode (ctrl-D to finish)

val x = 5

ctrl-D does not cause REPL to finish paste mode.


Source: (StackOverflow)

How to create a keyboard shortcut for SublimeREPL?

I am new to Sublime. I use the version 2 on mac. I have installed the package SublimeREPL.

Is it possible to create a keyboard shortcut to run the file with SublimeREPL?

More precisely, here is a screenshot. I want to avoid going through this menu and run quickly with a keyboard shortcut.

enter image description here


Source: (StackOverflow)

Is it possible to disable syntax highlighting in Sublime REPL-tabs?

Is there any way to disable the syntax highlighting in SublimeREPL-tabs when a script is running?

Please see this question for context: Red lines coming up after strings in SublimeREPL (python)?

For example, when python-scripts run in Sublime REPL, apostrophes (') in the output-text get highlighted as syntax. Because of this, the last part of the line is highlighted as if the string (which in fact is text-output and not actual code) was not closed properly.

This is what the output looks like: enter image description here

The highlighting is useful when Sublime REPL is running the interactive python shell, but when it just should run a script, I would like to get the text output without highlighting, like in any commandline-interface. Of course I could just run the scripts in the commandline, but it would be nice to keep all work focused in just one program.

Maybe there are settings for the different kinds of Sublime REPL-enveronments (Interactive, run from script, etc.) that could change this behaviour?

Thanks for any help! :)


Source: (StackOverflow)

SublimeREPL Unable to Find R

Okay, this is driving my crazy. I had set this up before, deleted Sublime Text, and now I can't remember what the right configuration was.

Very simple: I'm running R through SublimeREPL and need to point the REPL to where R is installed.

I followed the directions at http://sublimerepl.readthedocs.org/en/latest/, which say to go into the user-defined REPL settings and add this:

{
 ...
 "default_extend_env": {"PATH": "{PATH}:/home/myusername/bin"}
 ...
} 

where the path points to the right directory. I tried replacing it with

{
 ...
 "default_extend_env": {"PATH": "C:/Program Files/R/R-3.0.2/bin"}
 ...
}

and it's still unable to find R, plus now it's giving me the error:

Error trying to parse settings: Expected value in Packages\User\SublimeREPL.sublime-     settings:2:2

I know this is an easy fix. Can anybody point out what I'm doing wrong here?


*I'm using Sublime Text 3. I previously had this working, but on Sublime Text 2.


Source: (StackOverflow)

Using virtualenv with Sublime Text 3 and SublimeREPL

I'm trying to setup ST3 to work with Python's virtualenv, running on Windows 8.1. I usually use SublimeREPL with my global Python install to run files. Now that I'm using venvs, though, I'm having trouble getting anything to run. Here's what I've been trying:

I have a parent directory with a folder virtualenvs, then one scripts for my .py files that I muck around with. I usually just navigate to \virtualenvs\venv\scripts\activate and do my work using the python interpreter, but I'd like to be able to build the files without needing to go through command line stuff, using ST3 and SublimeREPL.

I made a build system that looks like this:

{
    "shell_cmd": ["\code\virtualenvs\venv\scripts\python.exe", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python",
}

But I'm not even sure if this is what I need to do to use SublimeREPL, as I've never had to worry about Tools > Build Systems before, just Tools > SublimeREPL > Python > Python - RUN current file.

How can I change the build system or customize SublimeREPL's RUN? For a test case, I have the requests module installed in the venv but not in my global python install. Importing it from command line works fine but a .py file with import requests returns an ImportError.


Source: (StackOverflow)

How to run a file in SublimeREPL?

To run a file via the SublimeREPL plugin, I select 'Tools' -> 'SublimeREPL' -> 'Eval In REPL' -> 'File'

When I select 'File' nothing happens. How do I configure Sublime Text 2 to use a specified REPL ?


Source: (StackOverflow)

Is it normal to have really slow text transfer in Sublime Text 2 with the Clojure REPL?

Text transfer is really slow for me in Sublime Text 2, especially multiline text (each line takes about 2 seconds to print in the repl before evaluating the whole expression...) Is it normal?

It would be better if I could remove line endings before sending expressions to the repl, so in my command, I've added a step:

text = text.rstrip()

but it doesn't work.

How can I make this faster?


Source: (StackOverflow)

Sublime Text, SublimeREPL, Clojure & Windows 8

I've got both Leiningen & Clojure working on Windows 8 separately from Sublime Text (e.g. I can get a repl working in Windows PowerShell).

My problem is that I can't get the SublimeREPL working in SublimeText (the REPL loads up but doesn't then do anything). Are there any simple traps that I might be missing or, failing that, are there a series of steps I could follow to troubleshoot?


Source: (StackOverflow)