How to run a file in SublimeREPL?
Asked Answered
K

2

6

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 ?

Kermie answered 10/1, 2013 at 19:54 Comment(2)
Could you specify with which language does this happen? :)Modernistic
@wuub it happens for all languages, so it does not mater what file type is open, be it .java or .scala etc the resuls is sameKermie
E
0

I think SublimeREPL only supports this for python files, if you look here you'll see that it is only under the python heading that this feature is mentioned.

Python

  • Launch python in local or remote(1) virtualenv.
  • Quickly run selected script or launch PDB.
  • Use SublimeText2 Python console with history and multiline input.

Besides if you press(on windows) shift+ctrl+p you'll see that if you type repl current it will say: SublimeREPL: Python - RUN Current File

As the only alternative, well except for PDB.

Epos answered 9/4, 2013 at 11:29 Comment(0)
D
0

As @daniel-figueroa states, SublimeREPL only runs Python code as far as I'm aware.

If you are just trying to run Python with SublimeREPL, try:

Tools -> SublimeREPL -> Python -> Python -> RUN current file

Alternatively, if you're actually intending to evaluate with SublimeREPL, the plugin author, @wuub explains and offers a solution HERE.

Dionnadionne answered 17/1, 2014 at 20:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.