Jump to content

Photo

ZScript Code Editor


  • Please log in to reply
123 replies to this topic

#76 kurt91

kurt91

    Follower of Destiny

  • Members
  • Real Name:Kurtis
  • Location:Eastern Washington University

Posted 26 January 2014 - 09:21 PM

Well, I wasn't planning on doing any real work on my script today, having a lot of real-life issues I need to figure out at the moment, so I opened the program long enough to re-do the formatting with how I use the comments, since NotePad kind of screwed them up. The issues didn't come up while doing that, so you may have to wait until I have time to try working on my script in the program, and see if it happens again. Sorry.



#77 kurt91

kurt91

    Follower of Destiny

  • Members
  • Real Name:Kurtis
  • Location:Eastern Washington University

Posted 29 January 2014 - 04:21 AM

I'm working on my script today, with it needing totally reorganized in order to work properly, as well as adding in a couple additional features, so I can give a more thorough bug report.

 

First off, the different keys only stop working in the code editor. I saved what progress I had, and the enter key worked just fine in the save window. I also checked for that log file you mentioned, but never found it. I did see an rText folder, and assumed that it might be in there, but that turned out nothing as well.

 

I also haven't tried the demo application, I've only been using the normal program. I'll look into seeing if the problems persist there.

 

EDIT: Been using the demo version and I haven't had any problems come up. I'll stick with the demo version until the main program is fixed, it works more than well enough for my needs. (mainly color-coding, collapsing conditional statements, and the error-catcher)


Edited by kurt91, 29 January 2014 - 05:31 AM.


#78 David

David

    Fallen leaves... adorn my night.

  • Administrators
  • Real Name:David
  • Pronouns:He / Him

Posted 02 February 2014 - 09:05 AM

I was wondering: Is there a chance that you can make this retina ready? It isn't something I desperately need, just a suggestion. :)



#79 symbiote01

symbiote01

    Doyen(ne)

  • Members
  • Real Name:Doug
  • Location:WA

Posted 11 February 2014 - 05:35 PM

I just (re)downloaded this on my other (read, 'work'.  As in, "Shame on you for playing games at...") computer and just saw that the Ctrl+Shift+Z command is still trying to scrape code from PureZC.com instead of PureZC.net.  Any quick fix for this?



#80 Alucard648

Alucard648

    Magus

  • Members
  • Location:castle Dracula

Posted 24 February 2014 - 03:42 AM

When I try to open script file by double-clicking on him I get an error message: "An error occured creating the spelling parser".

Here is details:

java.io.FileNotFoundException: D:\Zelda Classic\english_dic.zip (Не удается найти указанный файл)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at org.fife.ui.rsyntaxtextarea.spell.SpellingParser.createEnglishSpellingParser(SpellingParser.java:175)
    at org.fife.rtext.SpellingSupport.createSpellingParser(SpellingSupport.java:135)
    at org.fife.rtext.SpellingSupport.access$300(SpellingSupport.java:35)
    at org.fife.rtext.SpellingSupport$CreateParserRunnable.run(SpellingSupport.java:458)
    at java.lang.Thread.run(Unknown Source)

Looks like the editor tries to find it`s needed files in ZC directory. Any way to fix this?



#81 bobby_light

bobby_light

    Experienced Forumer

  • Members

Posted 24 February 2014 - 08:06 AM

Thanks for all the feedback guys.  I'm making some last-minute fixes to the editor component for its next release. and I'm taking in all this feedback!

 

kurt91 - for the "certain keys stop working" issue - while I couldn't see why this would happen, I assume it's a bug somehow related to the code completion popups - when they display, the default functions of certain keys (arrows, Enter, Tab, Escape) are overridden to "do the right thing" for the popup windows.  It's possible that your usage pattern unearthed a way that those keys aren't returned to their default state.  I've put some extra checks in to make sure the key actions are reset when the completion popup windows are hidden.

 

DaviAwesome - The application should already be Retina-ready if you use an Oracle JDK 1.7u40 or newer; see this bug report.  There is however a workaround I can add to the application to make font rendering look right on Retina displays for more recent Apple JDKs as well (1.6); that'll be in the next release.  Thanks!

 

symbiote01 - Thanks for pointing this out!  I'll fix it.

 

Alucard648 - I haven't seen this before, thanks!  I'll fix it.


  • David likes this

#82 Gouanaco

Gouanaco

    Death Knight

  • Members
  • Real Name:Max
  • Location:Australia, Broome

Posted 24 February 2014 - 09:12 AM

Well, ive only done a small portion of Zscript programming but this program might just spire me into learning it abit more :)

 

Great Job! XD



#83 Russ

Russ

    Caelan, the Encouraging

  • Administrators
  • Location:Washington

Posted 24 February 2014 - 11:32 AM

So something I have noticed, and maybe it's just me, but it seems like the longer I'm using the editor, the slower it gets, until eventually I have to close and reopen it because of how slow it's running. Not sure how fixable that is, but it'd be nice if something could be done about it. Also, the box that pops up when you do do something like, say, Link-> that shows all the options you have is very nice, but at the same time, it's a bit slow and can get kinda annoying at certain times, so an option to toggle it would be great.

#84 David

David

    Fallen leaves... adorn my night.

  • Administrators
  • Real Name:David
  • Pronouns:He / Him

Posted 24 February 2014 - 12:40 PM

So something I have noticed, and maybe it's just me, but it seems like the longer I'm using the editor, the slower it gets, until eventually I have to close and reopen it because of how slow it's running. Not sure how fixable that is, but it'd be nice if something could be done about it. Also, the box that pops up when you do do something like, say, Link-> that shows all the options you have is very nice, but at the same time, it's a bit slow and can get kinda annoying at certain times, so an option to toggle it would be great.


Yes, that slow thing also happens to me. And no, it is not because I have a slow computer (I assure, you, it is fast enough as it is really new), so I don't know what is going on.

Edited by DaviAwesome, 24 February 2014 - 12:41 PM.


#85 bobby_light

bobby_light

    Experienced Forumer

  • Members

Posted 24 February 2014 - 10:50 PM

@Russ, @Davi - do you notice slowdown in the demo application, RText, or both?  If it's RText, maybe you could try using just the demo app for a little, to see if it happens there too?  That would help narrow down whether it's the ZScript-specific stuff (or code editor stuff), vs. all the extra functionality in RText.



#86 Master Maniac

Master Maniac

    Earth, Wind, Fire, and Water.

  • Members
  • Real Name:kris

Posted 25 February 2014 - 01:12 AM

So something I have noticed, and maybe it's just me, but it seems like the longer I'm using the editor, the slower it gets, until eventually I have to close and reopen it because of how slow it's running. Not sure how fixable that is, but it'd be nice if something could be done about it. Also, the box that pops up when you do do something like, say, Link-> that shows all the options you have is very nice, but at the same time, it's a bit slow and can get kinda annoying at certain times, so an option to toggle it would be great.

I can also confirm. However, most of the lag occurs when the dialog pops up for auto-complete stuff. I've seen this in RText. Haven't tried the demo.

 

However, this issue to me is trivial, since it's easy to save/reload anyway.



#87 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 25 February 2014 - 06:05 AM

I'll give it a try soon. I downloaded your W32 and OSX Betas. What are the requirements for the OSX programme? is it a Universal binary? I'm hoping that you didn't exclude those using PPC, or Tiger/Leopard. :D

 

As you've done an OSX port, would you also be planning to do a GTK/Gnome Linux port?



#88 David

David

    Fallen leaves... adorn my night.

  • Administrators
  • Real Name:David
  • Pronouns:He / Him

Posted 25 February 2014 - 09:32 AM

Well, it seems to happen after a while when I start scrolling; the scrolling lags a lot (basically like 3 frames per second). It only happens occasionally though, and after I use it for a while. I haven't tried the demo version yet, so I will try that to see if the same problem comes up there. :)

#89 bobby_light

bobby_light

    Experienced Forumer

  • Members

Posted 16 March 2014 - 04:37 PM

I've finally gotten around to updating this project.  I've tried to take into consideration all the feedback and fix the issues mentioned.

 

  • RText should not give (harmless) errors about english_dic.zip not being found in certain scenarios (hopefully - I could not reproduce this directly but could see what the problem likely was)
  • Trailing commas in script/function argument lists are now flagged as errors.
  • The demo now allows you to turn off the automatic display of the completions popup when you type "->", but it is still enabled by default.  RText has always allowed you to turn this off in the Options dialog.
  • Ctrl+Shift+Z in RText now fetches scripts from purezc.net instead of the now-defunct purezc.com domain.  Note that the retrieval of script ratings is a little slow now, as the new forum theme doesn't show script ratings on the forum listing pages, only in the topics themselves, so we have to do a little more work to grab these.
  • While I couldn't exactly pinpoint what might cause specific keystrokes to stop working, I added some extra defensive checks in the completion windowing code to help ensure this doesn't happen.

I think the only point I didn't specifically address is the gradual increasing slowness as the application is used.  I plan to tackle that next.  Note that the editor code in general (not specific to ZScript) has evolved quite a bit since the last release, so there's a small chance that it has already been fixed (though not likely).

 

Give it a whirl!  Feedback as always is welcome.

 

Downloads still here:  http://fifesoft.com/zscript/

 

Everything is still open source, but the code has moved:

 

Editor library:  https://github.com/bobbylight

ZScript-specific extension:  http://svn.fifesoft....iptLangSupport/


  • David likes this

#90 Alucard648

Alucard648

    Magus

  • Members
  • Location:castle Dracula

Posted 17 March 2014 - 05:55 AM

Downloaded latest update. Double-click on Zscript file opens Rtext without any syntax highlighting (like a plain old TXT file).




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users