Git Product home page Git Product logo

luaide's Introduction

Lua IDE

An in-game IDE for ComputerCraft, complete with syntax highlighting, automatic indentation, live compiler errors, and support for coding and running Lua and Brainf**k code.

luaide's People

Contributors

coaster3000 avatar nevercast avatar superaxander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luaide's Issues

[Feature] Quit Without Saving

When you click exit while editing and the file in its current state hasn't already been saved, something should come up with the options Save and Quit or Quit Without Saving.

What I mean is I want a feature to be able to quit without saving. I don't know about you, but I make typos sometimes in CC, for example when I'm trying to edit startup I may type, and this happens a lot, 'edit stratup'. It will then create a 'stratup' file and if I try to quit, it will have a 'stratup' file saved on the pc that I may not notice/have to delete.

Crash when changing themes

luaIDE:275 attempt to index ? (a nil value)

Using luaIDE 1.1

Changing a theme causes a crash, says Downloading... downloads and crashes.

else problem

After typing else and then enter it adds an end but there was no need for one because it got added by the if

Problem pasting code from the system's clipboard

If you just press Ctrl+V, it doesn't paste. In order to paste you have to hold Ctrl+V for a few seconds but that causes it to paste multiple times, depending on how long you hold Ctrl+V. For example: I see some code on the internet I want to use in my program. Let's say the code is:
print("Hello world!")
I copy it using Ctrl+V and go to LuaIDE. I press Ctrl+V and it does nothing. I hold Ctrl+V and eventually it types:
print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")

Duplication issue

Your code completion is causing duplication issues. ideally when you press ' and there is a ' after the cursor it should just move the position and not actually add in another '.

When copy/pasting text in all the auto added characters are added, you should not do this to pasted text example

VIM Command support

This is something I really enjoy about Sublime Text 2/3 is the basic VIM command support. It helps me to keep my fingers on home row at all times.

Readability

The yellow 'exit' button in the fire theme makes the white text unreadable.

Bug when updated to latest version

I was using version 1.1 and it was working fine. Then when I went to update, it updated but there is an error when I try to start the program again. It says:

bios:366: [string "luaide"]:1084: '}' expected

Bug with live error.

When there is an error and you press the "!" to show the error message, you can still deleting the text but not writing. If you delete the line with the error, is impossible to click again in the "!" and you can't write in the file.

CenterPrint

Your centre print is off... why didn't you use the Sublime Text 2 one :P

Suggestion: Settings Menu Item

Basically, what's on the tin. A menu item that goes to the settings panel. Then, we don't have to close the file we're working on and head to the main menu to change something.

function() no auto functions

when you go to enter anonymous functions like

someTable.function1 = function()

or just plain

function1 = function()

This also includes functions with parameters

Then hit enter

It will not auto create the end section and the indent for you..

Not really bug but more of a nuisance..

Highlighting suggestion

I suggest changing

["pairs"] = "conditional",
["ipairs"] = "conditional",

to

["pairs"] = "function",
["ipairs"] = "function",

Also adding these would be nice... I haven't tested if they work, but they should, I based them off your other ones.

"Export" feature

Why not have a export function? It would copy the file to a chosen disk. I think it could be cool.

Pressing enter before a function creates an end

If I want to move some of my code down, I can't do it from the top of a line that auto-completes because it'll just auto-complete again. It needs to not auto-complete and just do the normal enter action when it's obvious that is what I want.

#40

Command palete

I would love to see the command palete. In windows and Linux you open it with ctrl+p and on mac with โŒ˜โ‡งP

Highlighting bug with strings

an empty string ( '' or "" ) is not highlighted
multiline strings are not highlighted
strings that contain \ will not be highlighted

suggestion:
have \ and the character after it highlighted as a constant, will be like sublime highlighting \ and \n and \t etc in strings.

unable to run from a program?

When I try to run luaide through my OS(DarkOS) it gives an error "luaide:36: attempt to index ? (a nil value)".

How to replicate:

  1. Create a while loop and wait for a mouse_click on a certain spot
  2. Click that spot and once clicked run luaide with os.run({}, "luaide") and shell.run("luaide")
  3. Get error!

I tried to run it out side of the OS by typing in luaide and it ran fine. I then opened a new file and had it run shell.run("luaide") just that and it worked.

Thanks in advanced.

Usability Issue

I know it will be a lot of work (maybe) but your scrolling prompt needs to implement a scrollbar.
It will be much better usability if they know that they can scroll in the themes section.

Theme Suggestion #2

constant should highlight numbers, only when they aren't in names
constant should highlight operators, such as + - * etc, etc, etc...

API/OS Specific Text Highlighting

I am a grad researcher with DePaul University in Chicago and we are using ComputerCraft to teach Lua to grade schools. The IDE is great but it would be nice if specific API functions were highlighted and if OS specific objects also had their own syntax highlight, e.g. turtle.select(1) would be some combo of colors. This seems easy enough given the highlight,lua would just need some additions. I'm more than willing to fork and submit a PR

Typos

Find them, there are 3, 2 of which the user sees

-- Advanced Comptuer Only
if not isAdvanced() then
    print("Advanced Comptuer Required!")
    print("Normal Comptuer Support Coming Soon!")
    error()
end

cannot execute code with the "Run" menu

If I try to run a simple program with the Run-menu, the program executes, but after pressing a key to return to luaide, it crashes:

parallel:22: luaide:924: Expected string

my program is only one print("hello")
so it shouldn't be a problem with my program

Theme Suggestion

Add the ability to change colours of the elements as well as the background colours

Bug: Normal Computer Support

I'm only opening this because I read that normal computers are supported now (#3). Well, luaide:282: Colour not supported.

&& crash in if statement

when using "&&" signs in an if statement the in-app error aid will show up saying there's something wrong and luaIDE wont run the file

String Syntax Highlighting

The syntax highlighting fails to detect strings properly that contain "

Also alongside with that bug. When you use a " to put " in the string. It will act as if you closed the string. Then if you try to put another " it will act as if you are opening another string with additional closing (Just need to hit delete key to remove the extra more of a nausance bug)

Then if doing a return statement in a function that returns a string.

And you concact table data with string keys. EX:

return "mining turtle ID:"..data["id"].." named:"..data["name"]

example for the escape chars just use this in ide

return "This id is \""..id.."\""

It will improperly highlight text..

Discovered this bug along with the escape characters..

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.