A double semicolon is accepted by the galaxy editor, so it is not a syntax error.
Yeah, I see that the auto completion list wasn't correctly sorted - I forgot to convert the text I check against to lowercase. It is sorted in the next version.
About highlighting function.. It seems weird to me.. I usually program in eclipse(java) or visual studio(c#), and they don't highlight correctly typed functions.. I don't even think such a feature is included in the framework I use for the text editor, so it would require a lot of work rewriting it. It seems like too much work to implement.
Sounds really weird that the autocomplete form is displayed behind the main form, since I set it to always be display as the topmost. Would be nice if you could recreate it, but multithreadding probably makes that a bit difficult.. I can try periodically reminding it to be on top.
Sounds really weird that the autocomplete form is displayed behind the main form, since I set it to always be display as the topmost. Would be nice if you could recreate it, but multithreadding probably makes that a bit difficult.. I can try periodically reminding it to be on top.
It happened several times, however I was not able to notice a pattern behind this. Manually reproducing did not work once.
A new version is up and awaiting approval.
I implemented the tooltip thingy you talked about, and I think I fixed the bugs :)
I wasn't able to recreate the crash, but I did change a bit so it hopefully won't occur again.
Tried it out, no crash until now, the sorting works nicely now, just like the parameter tooltip. The autocompletion-in-background thing did not happen again until now.
Some little things bug me a little, but most of them are no big deal and would not require an update from my perspective:
The installer is kinda... slow, it takes a quite huge amount of time for such a small program. Additionaly it always creates a desktop shortcut without being able to skip that (at least I did not find where to skip it)
When starting the program, about 50% of the time it starts with an open autocompletion window either in the front- or background.
autocompletion has some noticeable loading time, when there is a huge number of functions found, which leads to a bit of irritation. Maybe start autocompletion only when you enter 2 characters to shrink the list thus decrease the loading time? For 1-2 character stuff, you probably would not need the autocompletion anyway.
autocompletion also triggers, when you open a string with " (only for the first word, it seems).
I would like to see another template, just with the standard include without the whole map script bunch, so one does not have to c/p the include or use the whole map bunch when he just wants to write one quick function.
maybe (maybe :p ) customizable syntax highlighting styles? Either completely customizable, so everyone could choose preferred colors and styles or some predefined styles to choose from or something.
As stated, these are minor issues/suggestions and partly personal preference, so you do not need to bother that much ;)
Tried it out, no crash until now, the sorting works nicely now, just like the parameter tooltip. The autocompletion-in-background thing did not happen again until now.
When you say "until now" dose that mean it crashed/showed the autocompletion in the background now?
About the installer.. mm.. I'm just using the standard installer creation tool from visual studio, so I didn't actually write that myself. I was looking for a way to make the shortcuts optional, but it would seem that that is not possible with visual studio. I might look around for another program to generate msi files, but I don't really consider it a big issue.
As for customizable syntax highliting.. If you open up the install directory of the program, you'll find a file called "Galaxy Style.syn". That's an xml file which specifies how the syntax highlighting should be done. I pretty much just copied an example document for c# highlighting, so it is a bit messy with a bit of unused gunk, but that's what you want to edit to change the highlighting.
As for the rest of your suggestions, they don't seem too difficult to implement (apart from that dahm autocompletion list acting up :) )
@Kueken531: Go
When you say "until now" dose that mean it crashed/showed the autocompletion in the background now?
It did not crash at all, the "until now" was just to point out, that I did not really test it that much, so it is still possible that it can happen.
The autocompletion popping up at the start of the program seems to be another issue, but caused no further trouble than having to click the main window one time.
I am not that familiar with xml files, how could I highlight functions like described earlier without having to include all of them in the file?
Well, the xml file is just a static file which is loaded when the program starts up.. so you can't make the program dynamical highlight functions by altering that file. Like I said, I haven't found such features in the framework I'm using, so I would need to start rewriting it, which I would rather not do, sorry.
Just had another crash, this time right after creating a new file with a default skeletion. Right after the parsing was complete, it crashed; I did not touch anything besides creating the new empty skeleton, so I was obviously not able to reproduce it.
Crash Message (translated again):
The register was changed. It is possible, that the enumeration process cannot be continued.
Added a new version. It just contains some minor changes - implemented/fixed some of the suggestions/bugs you posted about above. Don't know what's up with that crash.. Did you just open up the program and load the default skeleton?
Added a new version. It just contains some minor changes - implemented/fixed some of the suggestions/bugs you posted about above. Don't know what's up with that crash.. Did you just open up the program and load the default skeleton?
yep, indeed. Nothing more.
€ other things (will probably edit in more):
Autocompletion does not seem to work in a line you start with a return.
When copying some code into the editor, some line breaks get lost. For example:
if(Foo(u)){Bar(u);}
becomes
if(Foo(u)){Bar(u);}
Tabs get translated to 6 spaces in the editor, should be 4.
maybe add a standard include folder in the programs directory, where you can put script files which should automatically be included?
the program asks, if you want to save an unsaved file, when creating a new file, but not, when you close the program.
some functions do not show the parameter tooltip, for example DialogCreate or DialogControlCreate
Auto completion after return should be fixed in 1.3.2.. Are you sure you got that one?
Copying seems to work for me.. Where do you copy from?
I'm pretty sure it inserts 4 spaces.. tried to do
tabbed
1234
and it lines up (unlike here)
Hmm. I don't like the idea of a automatically including stuff, since there is no such thing in the sc2editor(correct me if I'm wrong), so doing that would cause my program to accept code which will be rejected by the sc2editor.
Auto completion after return should be fixed in 1.3.2.. Are you sure you got that one?
Nope, got the old one. Works now.
Quote:
Copying seems to work for me.. Where do you copy from?
I wrote a new function in your editor and copied it in a custom script. Still the same problem occasionaly (not every time)
Quote:
I'm pretty sure it inserts 4 spaces.. tried to do
tabbed
1234
and it lines up (unlike here)
Tab translates to 4 spaces in your editor, but when copying these tabs to the galaxy editor, they become 6 spaces. Notepad+ has the same issue, though (it has an option to convert all tabs in the script to 4 "real" spaces, that fixes the problem)
Quote:
Hmm. I don't like the idea of a automatically including stuff, since there is no such thing in the sc2editor(correct me if I'm wrong), so doing that would cause my program to accept code which will be rejected by the sc2editor.
Good point. Maybe add the include only thing to the configuration to add optional includes with it?
I would like to be able to drag&drop script files in the editor, currently it seems to freeze the program
€ and another crash when creating a new function. unfortunatels the crash log disappeared (message was something like "count must not be negative" if I saw it correctly)
Interestingly enough, when crashing it asked me, if I want to save the file before closing the program, so I did that and it worked fine; however I was not able to simply continue, the program did shut down itself after saving. Very unusual crashing behavior xD.
€ I was able to reproduce the crash:
I entered a new function, like this:
voidfoo(){
Then, the } was added automatically. Then I pressed enter, so the } would drop a line:
voidfoo(){}
After that, I pressed }, because I was not aware about the bracket being already there, and got a crash:
voidfoo(){}}
I have the possibility to ignore the error or to end the program, but both choices lead to the question if I want to save my work and to the shutdown of the program.
Other things:
Remove the save file question for empty files
The include only skeleton includes about 20 linebreaks as well (no big deal, though)
tabs still translate to 6 spaces in the galaxy editor (or better: some kind of 6-space-tab. If you press tab in the editor, it becomes a 4-space-tab, but copied tabs from any sorce become 6-space-tabs)
A double semicolon is accepted by the galaxy editor, so it is not a syntax error.
Yeah, I see that the auto completion list wasn't correctly sorted - I forgot to convert the text I check against to lowercase. It is sorted in the next version.
About highlighting function.. It seems weird to me.. I usually program in eclipse(java) or visual studio(c#), and they don't highlight correctly typed functions.. I don't even think such a feature is included in the framework I use for the text editor, so it would require a lot of work rewriting it. It seems like too much work to implement.
Sounds really weird that the autocomplete form is displayed behind the main form, since I set it to always be display as the topmost. Would be nice if you could recreate it, but multithreadding probably makes that a bit difficult.. I can try periodically reminding it to be on top.
It happened several times, however I was not able to notice a pattern behind this. Manually reproducing did not work once.
A new version is up and awaiting approval.
I implemented the tooltip thingy you talked about, and I think I fixed the bugs :)
I wasn't able to recreate the crash, but I did change a bit so it hopefully won't occur again.
Tried it out, no crash until now, the sorting works nicely now, just like the parameter tooltip. The autocompletion-in-background thing did not happen again until now.
Some little things bug me a little, but most of them are no big deal and would not require an update from my perspective:
As stated, these are minor issues/suggestions and partly personal preference, so you do not need to bother that much ;)
When you say "until now" dose that mean it crashed/showed the autocompletion in the background now?
About the installer.. mm.. I'm just using the standard installer creation tool from visual studio, so I didn't actually write that myself. I was looking for a way to make the shortcuts optional, but it would seem that that is not possible with visual studio. I might look around for another program to generate msi files, but I don't really consider it a big issue.
As for customizable syntax highliting.. If you open up the install directory of the program, you'll find a file called "Galaxy Style.syn". That's an xml file which specifies how the syntax highlighting should be done. I pretty much just copied an example document for c# highlighting, so it is a bit messy with a bit of unused gunk, but that's what you want to edit to change the highlighting.
As for the rest of your suggestions, they don't seem too difficult to implement (apart from that dahm autocompletion list acting up :) )
It did not crash at all, the "until now" was just to point out, that I did not really test it that much, so it is still possible that it can happen.
The autocompletion popping up at the start of the program seems to be another issue, but caused no further trouble than having to click the main window one time.
I am not that familiar with xml files, how could I highlight functions like described earlier without having to include all of them in the file?
Well, the xml file is just a static file which is loaded when the program starts up.. so you can't make the program dynamical highlight functions by altering that file. Like I said, I haven't found such features in the framework I'm using, so I would need to start rewriting it, which I would rather not do, sorry.
Just had another crash, this time right after creating a new file with a default skeletion. Right after the parsing was complete, it crashed; I did not touch anything besides creating the new empty skeleton, so I was obviously not able to reproduce it.
Crash Message (translated again):
The register was changed. It is possible, that the enumeration process cannot be continued.
Added a new version. It just contains some minor changes - implemented/fixed some of the suggestions/bugs you posted about above. Don't know what's up with that crash.. Did you just open up the program and load the default skeleton?
yep, indeed. Nothing more.
€ other things (will probably edit in more):
Auto completion after return should be fixed in 1.3.2.. Are you sure you got that one?
Copying seems to work for me.. Where do you copy from?
I'm pretty sure it inserts 4 spaces.. tried to do
tabbed
1234
and it lines up (unlike here)
Hmm. I don't like the idea of a automatically including stuff, since there is no such thing in the sc2editor(correct me if I'm wrong), so doing that would cause my program to accept code which will be rejected by the sc2editor.
As for the last to things - I'll get those done
Nope, got the old one. Works now.
I wrote a new function in your editor and copied it in a custom script. Still the same problem occasionaly (not every time)
Tab translates to 4 spaces in your editor, but when copying these tabs to the galaxy editor, they become 6 spaces. Notepad+ has the same issue, though (it has an option to convert all tabs in the script to 4 "real" spaces, that fixes the problem)
Good point. Maybe add the include only thing to the configuration to add optional includes with it?
I uploaded a new version. Should have gotten most of the above, you might still be missing line breaks when copying though.
I would like to be able to drag&drop script files in the editor, currently it seems to freeze the program
€ and another crash when creating a new function. unfortunatels the crash log disappeared (message was something like "count must not be negative" if I saw it correctly)
Interestingly enough, when crashing it asked me, if I want to save the file before closing the program, so I did that and it worked fine; however I was not able to simply continue, the program did shut down itself after saving. Very unusual crashing behavior xD.
€ I was able to reproduce the crash:
I entered a new function, like this:
Then, the } was added automatically. Then I pressed enter, so the } would drop a line:
After that, I pressed }, because I was not aware about the bracket being already there, and got a crash:
I have the possibility to ignore the error or to end the program, but both choices lead to the question if I want to save my work and to the shutdown of the program.
Other things:
Sorry about that crash - I got it fixed, and will get it uploaded.
The include only skeleton is meant to have some empty lines.. I found myself adding them anyway
To resolve your tab problem, I added an option to convert them into spaces.. look under edit
Ah, okay. What about making it toggleable instead of having to use it every time you copy?
results in
A double semicolon is nothing more than an empty statement. It's not exactly unreachable code nor a syntax error. Just something that does nothing.
Like good old DoNothing() in Jass2.