sublimerepl

How to run existing Clojure programme in Sublime REPL

本秂侑毒 提交于 2019-12-08 13:11:50
问题 I have setup sublime REPL(Sublime 2, MAC) and able to run small Clojure programs like (+ 2 2) . I have created a small project using lein lein new app clojure-noob and I am able to run it via lein repl . And it loads the main class defined inside the project. How can I load the same main class in Sublime REPL. 回答1: All you need to do is open your project's project.clj file in Sublime, make sure it has focus, then select Tools → SublimeREPL → Clojure → Clojure . This runs lein repl in project

Red lines coming up after strings in SublimeREPL (python)?

二次信任 提交于 2019-12-08 03:10:26
问题 In writing a simple python application, I'm printing out some strings to the console in SublimeREPL (for python), using Python 2.7.8 and Sublime 3, 64 bit for Windows 8.1. However, I'm getting some very annoying red lines after each of the strings that I'm printing. Does someone know why this is happening? I would appreciate any help. Thanks! 回答1: The apostrophe ' character is causing Sublime's syntax highlighting engine to think that you're beginning a single-quoted string. Since ending a

Set working directory to location of active script in SublimeREPL

一个人想着一个人 提交于 2019-12-07 09:53:16
问题 I use Sublime Text 3 with SublimeREPL for my commands in both R and Python. Whenever SublimeREPL is booted up, it has the present working directory set to the Sublime Text installation directory. This occurs on both Windows and Mac OSX. Often, I need to run code from R or Python which opens a file that is located in the same folder as the R or py file that I'm running. Under normal circumstances (i.e. not using Sublime Text), this works fine, as the R or Python interpreter knows to look in

Red lines coming up after strings in SublimeREPL (python)?

邮差的信 提交于 2019-12-07 03:13:20
In writing a simple python application, I'm printing out some strings to the console in SublimeREPL (for python), using Python 2.7.8 and Sublime 3, 64 bit for Windows 8.1. However, I'm getting some very annoying red lines after each of the strings that I'm printing. Does someone know why this is happening? I would appreciate any help. Thanks! The apostrophe ' character is causing Sublime's syntax highlighting engine to think that you're beginning a single-quoted string. Since ending a line with a string "open" is an error, it is being highlighted with the reddish invalid.illegal scope in your

Sublime2 and SublimeREPL

谁都会走 提交于 2019-12-06 02:13:00
Using Windows 7, Python 3.2 and Sublime Text 2 I went through all of the instruction to install SublimeREPL and when I go to Tools -> SublimeREPL -> Python -> Python I get an error: "WindowsError(2, 'The system cannot find the file speificed.'). I went to the FAQ and added the following (exactly as stated) to the user preferences: { ... "default_extend_env": {"PATH": "C:/Python32"} ... }` When I try to save the file I get another error: "Error trying to parse setting: Expected value in..." and it points to the SublimeREPL file. The entire file is the generic version that comes with the install

Sublime Text, SublimeREPL, Clojure & Windows 8

余生长醉 提交于 2019-12-05 23:58:23
问题 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? 回答1: Please see this SublimeREPL issue for instructions on how I got a Clojure REPL to work, at least on XP

Set working directory to location of active script in SublimeREPL

て烟熏妆下的殇ゞ 提交于 2019-12-05 16:12:49
I use Sublime Text 3 with SublimeREPL for my commands in both R and Python. Whenever SublimeREPL is booted up, it has the present working directory set to the Sublime Text installation directory. This occurs on both Windows and Mac OSX. Often, I need to run code from R or Python which opens a file that is located in the same folder as the R or py file that I'm running. Under normal circumstances (i.e. not using Sublime Text), this works fine, as the R or Python interpreter knows to look in the same directory as the script is located. However, with SublimeREPL, commands are 'transferred' as

How to run Python 3 in Sublime 2 REPL Mac

落爺英雄遲暮 提交于 2019-12-05 09:21:59
My question is the following, I have sublime 2 and sublime repl plugin installed all working fine, the only thing i need is to change the version of python that is running on the sublimerepl built in console. What I mean is, I have python 2.7.5 (which is pre installed with maveriks) running fine in sublime (via sublimerepl), and I have installed via the installer from python.org, python 3.3.3 , that I need to use, I want to run this version of python on the sublimerepl console but I don't know how. I know that there are alternatives to sublime but none of those are so beautiful as sublime is.

Send Text to REPL Using SublimeREPL and Sublime Text 2

谁说我不能喝 提交于 2019-12-04 09:41:06
I'm having trouble getting started with SublimeREPL. I have a python program, and can start a python interpreter inside of SublimeText2. However, I would like to use either the Eval In Repl and Transfer to Repl features, but they don't seem to do anything. How do I associate a repl with my file in sublime text 2 so these will work? History To be honest eval for python never worked reliably. It was plagued with strange compilation errors (mainly caused by whitespace/blank lines) and dozens of unnecessary ">>> " prompts showing up during evaluation. My attempt to fix it using temporary files was

Sublime Text, SublimeREPL, Clojure & Windows 8

北慕城南 提交于 2019-12-04 05:01:50
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? Please see this SublimeREPL issue for instructions on how I got a Clojure REPL to work, at least on XP (I haven't tried it on Win7 or 8 yet). Basically, I edited the menu file for Clojure, and changed the command