Live data from Hacker News

A new Light Table experience

chris-granger.com

101–110 of 152 posts

Re: A new Light Table experience

#101
This looks great! It's getting more and more usable.

It would be nice if, when a computation is running in the instarepl, the computation indicator would display inline e.g. with the previous result - perhaps graying the result out?

How would I go about implementing this myself? Or is LightTable reflection not yet publicly available?

Re: A new Light Table experience

#102
post #87

So how do you see these inline results? I'm told cmd-enter or cmd-shift-enter will evaluate code; on Windows 7, for me, none of ctrl-enter, alt-enter, or windows-enter seem to do anything. ctrl-shift-enter in a .js file creates a checkmark next to my first line, 2+3; (though not the lines I'd written after it). Trying to create a .clj or .cljs file, by 'Create a new file' and then 'Save file', it remains as 'untitled…

Looks like Ctrl+Enter and Ctrl+Shift+Enter start to work after saving the file with a recognised extension. You'll have to use the mouse, as pressing Enter cancels, despite the 'Save' button being highlighted as if it were the default. Unfortunately, even just (defn id [x] x) gets me "java.lang.RuntimeException: Unable to resolve symbol: defn".

Take a look here: http://news.ycombinator.com/item?id=5300653

Re: A new Light Table experience

#103
post #95

It just so happens that I started playing with Clojure yesterday! I didn't quite manage to get anything to work in LT, however. E.g. if I do Cmd+Enter on a definition, I get this: clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: defn in this context, compiling:… If I click 'Make current editor and instarepl' I get errors like this: clojure.lang.Compiler$CompilerException:…

All files in Clojure require a namespace form at the top: (ns foo.bar) Since you don't have one, clojure.core isn't available and it freaks out. I'll look into setting the default namespace of file so that it's a little nicer for newcomers :)

oh. Thanks.

It's not a problem when using 'clj' from the command line.

Here are some other issues I ran into (FWIW):

- println works, but print doesn't. - I was expecting cmd+A and then cmd+enter to evaluate everything. - Why are there (seemingly) no shortcuts for the command bar? - Activating 'Make current editor and instarepl' twice in a row, clears all the text in the editor… that's weird - The text cursor got confused at some point

But I guess it's an alpha version. :)

Re: A new Light Table experience

#105

Earlier quoted context omitted.

I was wondering the same thing. Neither ctrl+space or cmd+space works on osx for me, maybe because I have alfred installed?

doesnt do anything for me either.. and i dont have alfred installed... guess this isn't quite ready for primetime yet

To be fair, this is an alpha release. I wouldn't expect it to be ready for primetime quite yet.

Re: A new Light Table experience

#106
post #14

This is a very pretty editor. That said, I have no freaking idea what I'm supposed to do. I've been messing around with it for around 15 minutes now, and I still don't understand it. I added a PHP website folder and got no code hinting or anything else beyond "here is the match for your parenthesis" for either PHP or Javascript. This also resulted in my "navigate" tab being filled with SVN meta-files. I am quite conf…

Think of LT as something more akin to an editor in spirit - you won't see watch windows and all the craziness you often see in "big" IDE's. In that regard, you use it like you use any editor. If you're working with Clojure, ClojureScript, or Javascript code, however, you can evaluate a block inline by pressing Cmd-Enter (or Ctrl-Enter). Now that we have an experience we plan to stick with more documentation and getti…

.pyc files also seem to be showing up.

I've opened a python file, typed 1 + 1 and hit Ctrl+Enter and it doesn't seem to do anything.

Re: A new Light Table experience

#107
post #81

Small bug I found: When I change the editor theme to something other than `default`, the next time I start up the editor, the theme isn't loaded. Instead, I just get some light grey text on a dark grey background. UX Annoyance: When clicking on an exception, there's no visual indication that it's been clicked on. I found that Shift+Tabbing brings you back to the editor pane (other than using the mouse). A couple more…

Created an issue for the first [1] Not sure about the ctrl+shift+enter not working, I'll see if I can come up with a repro. Keys are delimited with -, so Ctrl-Shift-Enter For (doc ..) take a look at the bottom console, click the little arrow which should be blue when there's new content in there. All prints go to that console. Thanks for the report! :) [1]: https://github.com/Kodowa/Light-Table-Playground/issues/281

the little arrow is white on a grey button. If I click it opens up something grey that it's empty. I cannot write or anything it's just a grey box.. :s

Re: A new Light Table experience

#109
post #4

It is absolutely gorgeous, but it is also looking a lot more like a traditional text editor from what i can gather. I'll download and play with it a bit anyway, to see what i get from it.

It is, but that's because we have to have a solid editing experience for the "simple" stuff before we can do the more interesting things. What good is it to have these awesome function oriented editors when you can't even modify a file efficiently? :) We use tabs as a simple way of wrapping up a context. In the future they will include all sorts of neat things - and they aren't limited in any way. If we want, we can…

I for one am glad you're nailing the editor part first. Because if this is ever to replace my usage of emacs, you have to at least get that part right. This hasn't yet replaced my emacs, but i'm more optimistic now. Some editing features missing are paredit, viewing source code of a clojure core function. (Alt-. in emacs.) When you eval something and it never terminates, you need a way to kill that thread. For IDE like features, #1 on my list is refactoring clojure code quickly, e.g. renaming symbols. As someone who's anal about prioritizing time, I don't ever customize the themes, etc, I just want killer useful features that save me time and "just work".

Re: A new Light Table experience

#110
I've been playing with this editor, except it seems Syntax Highlighting doesn't work (Linux x64). Which is kind of a killing point for me. Does anybody know of a forum / mailing list I can get on to figure out configuration and such? I have heard so much about this IDE, but it kills me that it doesn't seem to be working properly.

EDIT: Restarting twice seemed to fix the problem.

Post reply on HN