←  Programs

ComputerCraft | Programmable Computers for Minecraft

»

LuaIDE 1.0 - You Might Actually Like Editi...

GravityScore's Photo GravityScore 21 Apr 2013

LuaIDE

Version 1.0



Try out a live demo using 1lann and my HTML5 emulator online!
Visit here!

Hey all!

I present a project I've been working on for a while - a concoction of procrastination and code. It's LuaIDE, an in game Integrated Development Environment. Fully featured with things like live errors, code highlighting, go to line function, automatic saving, error aid, running with and without arguments, and a functional clipboard. You might actually want to edit in game more often.

Note: LuaIDE is licensed under the MIT license - this means you can basically do whatever you want with the code without asking me. See here for the full license.

Features
- See errors in your code pop up live as you type
- Click on the ! on a line with an error to see what's wrong
- Syntax highlighting
- Set syntax function
- Brainf**k Interpreter
- Re-indent function (by Engineer and I)
- Go to line function
- Run your program from within LuaIDE with or without arguments
- Got an error in your program? Use the in app error aid to help diagnose the problem!
- Cut, copy, paste, delete and clear lines of code
- Keyboard shortcuts (such as control+n for a new file, or control+o to open a file)
- Customisable themes
- Disable live errors and syntax highlighting for normal text documents
- Use the command (mac) or control key to execute keyboard shortcuts

Feedback is greatly appreciated! Please leave a comment below suggesting anything you'd like to see added, changed, amended, modified, removed, etc...

Coming Soon
See all planned features in the GitHub Features List

Known Bugs
Tracked using the GitHub Bug Tracker

Usage
Either use LuaIDE just like the edit program, by including the file you want to edit as an argument, or just run the file, and open a file or create a new one from within the program.

Screenshots - Need Updating
Editor:
Posted Image

Main Menu:
Spoiler

Creating a File:
Spoiler

Settings:
Spoiler

Open Menu Bar when Editing:
Spoiler

Download
Download LuaIDE from Pastebin or Hastebin, with the Pastebin ID: vyAZc6tJ or the Hastebin ID: munewakine.lua
Or just type into your computer:
pastebin get vyAZc6tJ luaide

Credits
- Code by GravityScore
- 1lann, for his keyboard shortcut monitoring function (a solid 1.8% of the entire program)
- Engineer, for the re-indent function
- Cruor, for his simplified theme loading function (using regex)
Edited by GravityScore, 30 November 2014 - 04:49 AM.
Quote

lieudusty's Photo lieudusty 21 Apr 2013

Been waiting for this, Grav :P
Quote

theoriginalbit's Photo theoriginalbit 21 Apr 2013

Very nice! I always like seeing what you have done, and you never disappoint. Always works well and looks fantastic! Great work!

P.S. Now that a decent editor is around I may start to code in-game again ;) :P
Quote

GravityScore's Photo GravityScore 21 Apr 2013

View Posttheoriginalbit, on 21 April 2013 - 05:01 AM, said:

P.S. Now that a decent editor is around I may start to code in-game again ;) :P

That was the purpose! :P
Quote

SuicidalSTDz's Photo SuicidalSTDz 21 Apr 2013

Well done Grav! I think this beats the Taco Editor by far. I still don't like to edit in game though :P

EDIT: I take that back... Yours is much better than Sublime :)
Quote

M4sh3dP0t4t03's Photo M4sh3dP0t4t03 21 Apr 2013

definitely the best in-game editor I have seen so far
Quote

theoriginalbit's Photo theoriginalbit 21 Apr 2013

View PostGravityScore, on 21 April 2013 - 05:03 AM, said:

That was the purpose! :P
I know, I read the title :P

btw you need to wrap the text http://puu.sh/2DGA4.png
also idk how you have implemented it, but maybe the error help should give a little more detail, for example, for 'end' expected to close 'function' at line 1, you only state in the help about missing the end (http://puu.sh/2DGCU.png) maybe you should also mention that it was missed for the function and what the name of the function is.
I do like the 'Go To Line' button that you provide...
Lastly, however you do the error checking for the line as typing needs to be tweaked a little I think. I'm getting it showing an error mid type, it probably should have some kind of delay so as to not make the user think something is wrong when its not, its just that the error checker is checking before they have finished typing out the line.
EDIT: Oh and since you got the multi keyboard shortcut going, should add a shortcut for us awesome Apple people with laptops, ⌘ + → as the 'end' key, and ⌘ + ← as the 'home' key...
EDIT 2: http://puu.sh/2DGQF.png I'm assuming the error there is because you are making sure there are no nested block comments? also block comments don't highlight.
Edited by theoriginalbit, 21 April 2013 - 05:13 AM.
Quote

GravityScore's Photo GravityScore 21 Apr 2013

1. For the delay on the error system, maybe something like it doesn't detect errors on the line you're typing? Or a timer delay? Or both?

2. I'll get onto wrapping those errors

3. The help is not very detailed at all. It's sorta in prototyping version at the moment (the help), I need a list of Lua errors that are possible to get...

4. I'm using a similar highlighting system found in the edit program, which also doesn't highlight block comments. I'll look into changing it so I can support it.

5. Those keyboard commands for us Apple people should be easy to do, on it right away :P

Thanks for the feedback!
Quote

GravityScore's Photo GravityScore 21 Apr 2013

View PostSuicidalSTDz, on 21 April 2013 - 05:04 AM, said:

Well done Grav! I think this beats the Taco Editor by far. I still don't like to edit in game though :P

EDIT: I take that back... Yours is much better than Sublime :)

You can't be serious!??!?!?! Sublime is the most sublimely epically astonishing fantastic amazing impressive intuitive awesome text editor know to man. This can't possibly be better!
Quote

SuicidalSTDz's Photo SuicidalSTDz 21 Apr 2013

View PostGravityScore, on 21 April 2013 - 05:19 AM, said:

You can't be serious!??!?!?! Sublime is the most sublimely epically astonishing fantastic amazing impressive intuitive awesome text editor know to man. This can't possibly be better!
I am dead serious. I love this text editor. The colours are soo nice, the highlighting is superb. I am just speechless ^_^

Nice big words Grav :P
Quote

theoriginalbit's Photo theoriginalbit 21 Apr 2013

1. I think a timer delay, but only after you have stopped typing, like maybe a couple of seconds after no keystrokes, or clicks, but not scrolling, scrolling should force a check...

3. Ahh ok fair enough, like I said, didn't know how you did it, just thought it might be a nice addition.

4. Yeh I figured that was why, I assume it wouldn't be too hard, boolean flag.

5. Yay! :) :P


View PostGravityScore, on 21 April 2013 - 05:18 AM, said:

Thanks for the feedback!
Your welcome! Thanks for the program! :)
And you know me, always willing to help :)
Quote

Zudo's Photo Zudo 21 Apr 2013

OMG! Ive been waiting for something like this for ages! If its ok I might include this in my new OS :) :) :) :)
Quote

GravityScore's Photo GravityScore 21 Apr 2013

View PostZudoHackz, on 21 April 2013 - 05:34 AM, said:

OMG! Ive been waiting for something like this for ages! If its ok I might include this in my new OS :) :) :) :)
Sure go ahead!

The command key on a mac can now be substituted for the control key, and added a go to start and go to end of line functions under the functions menu (with keyboard shortcuts) :D

To update, go to settings in the menu, then hit the update button in there.
Quote

NDFJay's Photo NDFJay 21 Apr 2013

Oh gravity, top work as always! loving it! think it might be time to redownload minecraft and actually start playing and programming in game again!
Quote

Symmetryc's Photo Symmetryc 21 Apr 2013

Fantastic Job! I really like it. Maybe someday you could make it so that there are plugins, just like Sublime Text ;).

View PostNDFJay, on 21 April 2013 - 05:37 AM, said:

Oh gravity, top work as always! loving it! think it might be time to redownload minecraft and actually start playing and programming in game again!
Not only is it helping people program in-game, but also playing minecraft itself! :P.
Quote

theoriginalbit's Photo theoriginalbit 21 Apr 2013

I do love how you have themes! You can't click anything in that menu though :( only keys, also a scroll bar to indicate there are more themes might be nice.
Lastly, it wont update, it says there is an update, but it just exists to the shell.... what happened to the yellow thank you message :(

EDIT: Oh a way to get back to the main menu from the editor would be nice :)
EDIT 2: In the original theme the line numbers are unreadable on the selected line http://puu.sh/2DHSw.png
EDIT 3: A visual bug... in the themes the 'exit' button is different colours to the rest, except in the fire theme, it is the same colour.
Edited by theoriginalbit, 21 April 2013 - 05:45 AM.
Quote

diegodan1893's Photo diegodan1893 21 Apr 2013

I found a bug on error checking:

http://i.imgur.com/30T8a5d.png?1
Quote

GravityScore's Photo GravityScore 21 Apr 2013

View Postdiegodan1893, on 21 April 2013 - 05:45 AM, said:

I found a bug on error checking:

http://i.imgur.com/30T8a5d.png?1

I noticed that in testing too. No clue why Lua does that.

BIT... help? :P

EDIT: Anyway, got the error wrapping working, and the themes list is now clickable and scrollable. Can't believe I forgot about mouse interactions in my scrollingList function... :P
Quote

theoriginalbit's Photo theoriginalbit 21 Apr 2013

View PostGravityScore, on 21 April 2013 - 05:57 AM, said:

BIT... help? :P
You're using loadstring right?

View PostGravityScore, on 21 April 2013 - 05:57 AM, said:

Can't believe I forgot about mouse interactions in my scrollingList function... :P
Lol!
Quote

remiX's Photo remiX 21 Apr 2013

Oh so this is one of the secret projects you've been working on.

Well, as always - no disappointment. This is amazing Grav!
I'm speechless xD

Keep up the work :P
Quote