When leveraging Cojure for special projects at work, or introducing the language to a student worker or friend or working at a new/temporary machine, I pull down Nightcode and am instantly ready to go. (If you want to make the message go away Java is looking for a missing Prefs key under HKEY_LOCAL_MACHINE\Software\JavaSoft) You'll just let people know it's not a problem if they're worried by it. On windows, you sometimes get a complaint about a Prefs Registry Entry but it doesn't stop or break anything.(Typing "exit" in the REPL leaves things clean) Only on Windows, I've caught it leaving a java instance running after stopping a REPL with the button.Sometimes Paredit gets confused in the REPL, or a dangling " messes with the REPL's syntax highlighting.For running programs with the button, it does expect a :main target to be specified in project.clj.Special thanks to Adam Neilson for his StackOverflow answer: Update: This can be mitigated by specifying a longer timeout in project.clj The REPL can time-out while dependencies are downloading. Sometimes you need to do an initial run of a new project before running the project with the REPL.Nightcode is Open Source and fully Public Domain.I suspect that I've run it somewhere with just the JRE (no JDK) but I'll have to check. Run anywhere with Java JDK: Windows, Mac, Linux no install: It's one.Commit, pull and push from inside Nightcode. Plug in a github URL and pull down a project, ready to go. GIT built in (no GIT installation necessary).Push-Button project templates for, among others, seesaw GUI, ring-served web, and quill projects.Pop-up documentation and code completion (also toggled with an on/off button).Pressing the tab key anywhere in a line shifts the whole line to the "correct" indentation. Pressing enter within a vector indents the next line even with vector's first element, in a function call it indents to the first argument, def forms indent to a standard 2-chars relative, etc. Semi-Automatic formatting: There's an opinionated but effective code formater built into the editor.Paredit, Syntax Highlighting and Code Completion all work in the REPLs There's also an extra non-linked REPL running all the time in the bottom-left corner of the window. Use the button (or hotkey) to run whatever form your cursor is on in the editor. Use the button to reload everything in the saved file.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |