engor / ted2go Goto Github PK
View Code? Open in Web Editor NEWTed2Go IDE is a leading IDE for Monkey2 programming language. Written on Monkey2! Based on original Ted2.
Home Page: https://github.com/engor/Ted2Go
Ted2Go IDE is a leading IDE for Monkey2 programming language. Written on Monkey2! Based on original Ted2.
Home Page: https://github.com/engor/Ted2Go
Not anything complicated, but the window title doesn't change when saving to a new location (Save As).
As a side note: Saving an empty file only works once something's been done to the text area, meaning empty files require you to add and remove whitespace in order to save the file first. This basically means I keep hitting backspace before CTRL+S, which can get annoying.
I'm a bit surprised I can't use 'tab' in the middle of a line - it just tabs the whole line.
I use this quite a bit when doccing, eg: for tables.
I would prefer tab had it's old behaviour, but am willing to abide by the needs of power users if necessary! But still, would be nice if there was a way to use tab midline.
The original Ted2 does not add a tab/spaces after pressing enter when declaring a function, but Ted2Go does. Please add an option to toggle this behavior. I'd prefer to stay at the same indentation level when declaring a function body.
I don't write the contents of a function before specifying its declaration and end-point, so auto-indenting like this means I have to hit backspace every time I write a function.
Hi,
Ctrl-E is meant to take you to end-of-line on macos, but in ted2go it seems to delete line. Also, Cmd-X (at least) isn't working on Mac for 'cut'.
Just checked, and these are still working in classic Ted2 so you might need to copy some more code across! Or, perhaps some of your changes could be moved into TextView?
Bye!
Mark
As the title suggests, the mouse cursor does not change to the 'I' text select cursor when moving the mouse over the text area. Mojo2 and by extension, MojoX, use SDL2, so this is possible with a few SDL2 calls.
Something like this:
#Import "<sdl2>"
' Hold a pointer to the SDL mouse cursor:
Field text_cursor:sdl2.SDL_Cursor Ptr
' ...
' On startup/construction, create the system cursor:
text_cursor = sdl2.SDL_CreateSystemCursor(sdl2.SDL_SYSTEM_CURSOR_IBEAM)
' Add an override for 'OnMouseEvent' to the text view:
sdl2.SDL_SetCursor(text_cursor)
' ...
' When releasing resources:
'sdl2.SDL_FreeCursor(text_cursor)
The only thing I'm not too sure about is how to check if the cursor has left the text-view, which would allow us to set the cursor back to normal for everything else.
From what I gather, MojoX manages 'View' bounds-checking, so detecting if the mouse cursor left the view might be something that's not implemented yet.
When debugging, I tend to modify various files as I read debug information. Normally this ends with me taking a while and not seeing that the program's still running, and I hit the build/run button to rebuild. Ted2Go currently does not care about executing builds and instead tries to rebuild... Which is fine, and in fact, what I'd expect it to do, but it doesn't seem to close the running process. This results in native build errors.
Since there's a "debug-kill" button, I assume there's a way to stop the running program before building again, right? Is it possible to essentially perform that function when the build/run button (Or F5) is pressed? This would help a lot when debugging.
Hi,
Still having problems with stuff capitalizing in comments - means I can't write any docs.
Bye,
Mark
When typing Key.Space Ted2Go changes what I type to OnKeyEvent.Space
Hi, some file names don't match the code in the latest dev branch?
Parsing...
/Applications/Blitz/Ted2Go/Ted2.monkey2 [38] : Error : File not found "/Applications/Blitz/Ted2Go/dialog/LiveTemplateDialog.monkey2"
/Applications/Blitz/Ted2Go/Ted2.monkey2 [119] : Error : File not found "/Applications/Blitz/Ted2Go/DraggableTabs.monkey2"
I am wondering if it is normal for my computer to take hours to rebuild the ted2go? I downloaded the dev package and put it in the sr ted2go folder and ran the script rebuildted2go.
It normally also takes quite a long time but now it is been going for 2 hours already and is still showing compiling.
Issue with ted2go parse-on-the-fly and new mx2cc.
How to fix that? Maybe to deny such errors for geninfo
stage. Or something better?
@blitz-research
Hey Nerobot, BIG thanks for implementing the "jump to previous/next word" shortcuts on MacOS!
However, they're assigned to "Command+Left" and "Command+Right", instead of "Alt+Left" and "Alt+Right".
The actions previously assigned to Command+Left/Right (Jump to beginning/end of line), which were correct before, are now replaced by Jump to Previous/Next.
Sorry if my request wasn't clear before!
Strings can now be multiline in mx2, and ted2go doesn't seem to be dealing with this well.
After I create a new tab and type some code, I can't save the new file because the "save" button is greyed out. Same thing if I go into an existing file and try "Save As".
Saving over existing files works fine, but I can't make new files through Ted2Go.
(Workaround: create an empty file outside Ted2Go with the correct name, then open it in Ted2Go)
I would tell you which version I'm using, but the "About" dialogue doesn't tell me. I downloaded it last week from Itch.io.
Hi,
I am finding the IDE is still crashing a lot - no error, just a sudden exit.
HJave just upgraded to dev version and same thing happening.
Seems to be mostly when I'm typing, Think it may be autocomplete related, will keeping playing...
Bye,
Mark
Not sure if this is new, but if I get a runtime error in debug mode, and try to build/run again without first manually stopping app in debugger, I get permission denied with the exe. I have to manually click stop button on debugger to prevent this.
I don't remember this happening in older versions - didn't it used to nuke the app for you?
Hi,
Ok, I can semi-reliably crash ted2go by doing the following:
Class C Extension
Method M()
End
End
Delete method 'M' (including the method 'End') so it's just an empty class.
Type in the method again - the second char I type here (eg: the 'e' of 'Method' ) causes ted2go to crash.
Seems to only happen with 'Extension' in there. Disabling completion from prefs fixes it.
Kind of a weird corner case, but if you're editing a file that's say, small enough for an example, you can't remove the green line that's currently being debugged. Doing so breaks all text rendering for some weird reason. Given, I found this out of laziness, but it's still a really weird bug.
Here's some example source:
Function Main:Void()
F()
End
Function F:Void()
DebugStop()
Local x:= 10
Print(x)
End
The definition for 'x' should be highlighted green. Now, simply delete the green line completely. This should move the line back to line 7, but instead, it stops displaying text completely.
There is an issue in Ted2Go v2.7a application.
Step by Step
Open a new blank file
write some lines like this (or real code):
dasd
fsdgdf
gr
344
34
gdf
The last lines left you blank (hit return only)
then press backspace -> application crash
Hi,
Possibly something I'm doing but...
The bottom 'output' view seems to close itself when I build/run, and I have to hit 'ESC' to open it again to view program output. Actually, it does seem to open itself, but then closes when app ends. Could this be made optional?
Autocomplete seems to close itself when I type '(' - is this normal?
Ted2go is not saving all files before update/rebuild modules.
Open Ted2Go. Type "Self." without the quotes. When you press the . the IDE closes. Only happens when autocomplete is enabled.
The title pretty much says it all. Try declaring a variable of 'String' and assign it to a string literal with the \ character.
Global x:String = "\"
Function Main:Void()
End
This crashes the editor when background-compiling, and I'm not sure why.
From git clone of monkey2 develop branch ted2go build is broken.
The script expects ted2.monkey2 NOT Ted2.monkey2 perhaps?
Launcher expects binary to be called ted2 NOT Ted2 also.
To be able run on usb.
The first time ted2go runs without a state.json file, it works out its home dir, writes it to state.json correctly but starts in the bin/ted2_windows dir instead, ie: the 'projects' tree shows 'ted2_windows' instead of 'monkey2'.
Restarting ted2go fixes this.
Hi,
Ted2go is colorizing .h files with the mx2 colorizer. Doesn't happen with plain Ted2.
Bye,
Mark
Hi,
Thanks for the atuo-caps fix, but now, if I type 'Function Main()' the 'Main' disappears and I'm left with 'Function ()'!
Happens whether or not I autocomplete with tab.
Is this happening to you?
Block tab still seems to be acting weird to me - it's always tabbing an extra line, eg: if I select the middle 3 lines of:
Function Main()
New AppInstance
New MyWindow
App.Run()
End
...and hit tab, the 'End' line moves across too,
This doesn't happen in notepad++, android studio or 'plain' TextView (haven't tried any others...).
Check out TextView code for how I think it should work - this has been 'fixed' from an earlier version that was not 'notepad++ compatible'.
For some reason, the 'Esc' key stops working after a while ( about 10 mins?) - ie: it no longer toggles consoles/find. Restarting IDE fixes it.
Ted2go appears to be auto capitalizing stuff in #rem comments, eg:
#rem monkeydoc hex string
Capitalizes 'hex' and 'string' here.
I'm currently encountering a bug which creates some very weird results on theme change. The code editing view seems to be the only thing negatively effected, and it's very odd.
Although I've been told restarted the IDE is necessary, I was not encountering this problem in the TED2GO version bundled with the prior Monkey2 release.
The syntax highlighting seems to only work for files with .monkey2
extension. Though, this is inconsistent with the monkey2 extensions mx2cc accepts. Possibly just ignore the case when choosing a monkey file to parse or add the other reasonable .Monkey2
extension?
I believe most of the related files are here: /syntax/Monkey2Highlighter.monkey2
tldr; I can build .Monkey2
files, but syntax highlighting in Ted2Go only works with .monkey2
.
Hi,
Sometimes when you click on a folder in the project treeview, nothing happens.
Weirder: sometimes when you click on an open folder in the project treeview, the folder remains open but all the '>' icons for all child folders disappear, making it look a bit like the contents of all child folders have been deleted (they haven't)!
Can't get it to happen with plain Ted2.
Bye!
Mark
Enter the following in an empty file with auto indent disabled (haven't tested with enabled)...
Method Test
Local test
After you've typed the last 'test' go to the start of line and hit 'tab'. Here, I end up with this:
Method TTestArgsLocal test
Very strange!
When working on a lot of files, I keep finding myself unable to scroll to tabs I've already opened. This problem is caused by tabs continuing behind the right pane without some sort of scroll arrow(s).
open new file, type
Class Something
Field grid:=New Grid(20,20)
End
delete the 20,20. Type 4, then wait a second or two.
Class Something
Field grid:=New Grid(4,)
End
Ted2Go will crash at this point in Windows 10 (don't know about earlier versions or other OS)
Hi,
Something's weird about 'Find'. For example, if you enter this into a new file:
this is a test
this is a test
Then find the first 'this', esc out of find requester, delete last 's' of 'this', hit F3 to find again, the next find result is off by one charatcer, as if it was searching the document as it was before the edit.
This accumulates too, so F3 for finding stuff is messy if you're editting lots as you go.
EdzUp wrote:
@nerobot could you fix Tab when you press it on any line after typing some text it tabs the text along instead of from where the cursor is the original Ted and Ted2Go does the same which is annoying if your intending on adding remarks to the end of lines and want them nicely justified.
Hi,
I can reliably crash ted2go by type this into a new empty file:
Class Test
Method New()
Super.
As soon as I hit the dot after typing super, kablam! Ted2go just exits.
Bye!
Mark
Is it possible to add options for different ordering modes for the right pane? It currently shows source-code identifiers (Classes, methods, etc) in alphabetical order, rather than order-of-appearance. Is it possible to provide this option? If not, is this something we can get Mark to help with?
As a follow-up question, can the debug-stack be reversible? It's currently bottom-to-top in order of appearance (Making it a retroactive queue). It would be cool to have the option to reverse it so the current function is on the bottom, with 'Main' being at the top.
Here's some comparisons:
Source | Left: Accurate | Right: Inaccurate (Alphabetical)
Debug | Left: Top-to-Bottom | Right: Bottom-to-Top
Thoughts?
If we have concatenated words and split them by space - have no capitalizing.
If a>b then|Print "a > b"
v v v
If a>b then Print "a > b"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.