Code Monkey home page Code Monkey logo

ted2go's People

Contributors

d-a-n-i-l-o avatar doctorwhoof avatar drcox85 avatar engor avatar hezkore avatar xanozoid avatar

Stargazers

 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

ted2go's Issues

Small behavioral bugs (Window title, Save As, etc)

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.

tab mid-line?

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.

Please add an option to disable auto-indentation on new lines.

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.

Ctrl-E on macos.

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

[Feature request] Mouse cursor does not change when mousing over the text editor.

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.

The running application is not relaunched when pressing the build/run button while stopped.

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.

capitalizing in comments.

Hi,

Still having problems with stuff capitalizing in comments - means I can't write any docs.

Bye,
Mark

Can't build latest

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"

rebuilding ted2go takes hours.

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.

Many errors "File not found" from new mx2cc

Issue with ted2go parse-on-the-fly and new mx2cc.

  • ted2go create temporary files to parse them (in tmp/ folder)
  • mx2cc produces "File not found" errors because relative imported paths became incorrect.

How to fix that? Maybe to deny such errors for geninfo stage. Or something better?
@blitz-research

MacOS shortcut mixup

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!

Can't "Save As" on MacOS

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.

Crashing a lot...

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

Auto kill running app?

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?

Crash with something..Extension?

Hi,

Ok, I can semi-reliably crash ted2go by doing the following:

  1. Paste this code into a new document:
Class C Extension
	
	Method M()
	End

End
  1. Delete method 'M' (including the method 'End') so it's just an empty class.

  2. 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.

Green-highlighted lines for debugging cannot be removed without breaking the text-view

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.

Here's a gif of this happening:
2016-12-02_08-57-39-hf

Crash using backspace at the end of file

There is an issue in Ted2Go v2.7a application.

Step by Step

  1. Open a new blank file

  2. write some lines like this (or real code):
    dasd
    fsdgdf
    gr
    344
    34
    gdf

  3. The last lines left you blank (hit return only)

  4. then press backspace -> application crash

A few issues...

Hi,

Possibly something I'm doing but...

  1. 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?

  2. Autocomplete seems to close itself when I type '(' - is this normal?

Ted2Go closes unexpectedly

Open Ted2Go. Type "Self." without the quotes. When you press the . the IDE closes. Only happens when autocomplete is enabled.

unable to build on develop branch ( Linux )

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.

IntelliSense + Zoom out

Hey,
there is a issue with IntelliSense in combination with zoom in. When I zoom in more than 2 times IntelliSense doesn't works correctly.
issue
empty window.

state.json issue.

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.

Colorizing .h files

Hi,

Ted2go is colorizing .h files with the mx2 colorizer. Doesn't happen with plain Ted2.

Bye,
Mark

Eating my Main()!

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?

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'.

Esc key stops working.

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.

Theme changing bug

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.

Here's the video

No syntax highlighting for monkey2 files accepted by mx2cc

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.

Project treeview weirdness

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

Weird Tab behavior

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!

New tabs overflow out of view.

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).

Crash on Windows 10

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)

'find' going out of sync.

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.

Tabs on the end of line

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.

Crash!

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

Feature Request: More ordering options?

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)
ted1_vs_ted2_source

Debug | Left: Top-to-Bottom | Right: Bottom-to-Top
ted1_vs_ted2

Thoughts?

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.