Git Product home page Git Product logo

repl-sublimetext's Introduction

repl-sublimetext

SublimeREPL Package for Clojure Unity

Installation

Install SublimeREPL

Tools > Command Palette... > Install Packages > SublimeREPL

Install Clojure Unity support

$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/SublimeREPL/config/Clojure/
$ git clone https://github.com/clojure-unity/repl-sublimetext.git Unity

If you're on Sublime Text 3

$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/SublimeREPL/config/Clojure/
$ git clone https://github.com/clojure-unity/repl-sublimetext.git Unity

Usage

Install SetSyntax

Tools > Command Palette... > Install Packages > SetSyntax

Set the syntax of your file to Clojure (Unity)

Tools > Command Palette... > Set Syntax: Clojure (Unity)

Launch the REPL

Tools > SublimeREPL > Clojure > Unity

Use it as you would any other SublimeREPL language

Read the documentation for more, but ignore their Clojure notes. They do not apply here.

Legal

Copyright © 2014 Ramsey Nasser and Tims Gardner.

Licensed under the Eclipse License, the same as Clojure.

repl-sublimetext's People

Contributors

nasser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

defunctionalize

repl-sublimetext's Issues

FileNotFoundError

I am getting a

FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)

I looked here: SublimeREPL Doc

But am not sure what to modify to adjust the path for arcadia-unity only.

I am running on windows 8.1 at the moment.

Set Syntax instructions contain error

Shows
Tools > Command Palette... > Install Packages > Set Syntax: Clojure (Unity)

should be two parts

Tools > Command Palette... > Install Packages > SetSyntax
then Tools > Command Palette... > Set Syntax: Clojure (Unity)

Eval in REPL shortcut

What is shortcut to evaluate block from file in clojureunity REPL on Mac, Sublime 3?
When I manually click Tools -> Eval in REPL -> Block it says: Cannot find REPL for 'clojure'.
Probably because it's clojureunity REPL, not clojure.

Additionally how could I change shortcut to eval block in clojureunity REPL?

I've came across this snippet, which changes shortcut for clojure REPL

{ "keys": ["command+enter"], "command": "repl_transfer_current", "args": {"scope": "block"}, "context":
    [
        { "key": "selector", "operator": "equal", "operand": "source.clojure", "match_all": true }
    ]
}

When I try it, it prints whe same error Cannot find REPL for 'clojure'. So I tried to change source.clojure to source.clojureunity, no success.

Sorry, if this is newbie question, I don't use Sublime at all.

dgram.js:274 throw new RangeError

$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/SublimeREPL/config/Clojure
$ git clone https://github.com/clojure-unity/repl-sublimetext.git Unity

Launch Sublime Text 3 (dev channel build 3118)

Tools > SublimeREPL > Clojure > Unity

dgram.js:274
    throw new RangeError('Offset + length beyond buffer length');
    ^

RangeError: Offset + length beyond buffer length
    at Socket.send (dgram.js:274:11)
    at Object.<anonymous> (/Users/<USER>/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/config/Clojure/Unity/repl.js:45:8)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)
    at startup (node.js:117:18)
    at node.js:951:3

***Repl Closed***

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.