JEdit and TIDE fiddling...
by Stefan Beffy Moises · 11/23/2006 (3:30 pm) · 25 comments
Hey folks,
just wanted to let you guys know what I'm up to currently... besides doing some contract work and careing for our little baby-boy Erik (see my last blog), I found some late evening hours yesterday and today to re-visit our TIDE plugin suite for JEdit for Torque script file editing and debugging (torqueide.sf.net) - not sure if anyone else (still) uses JEdit for Torque, but wth :P To me, its still the best solution (and it works on linux, too, yay!)
I was using Codeweaver for quite some time but got annoyed with crashes and stuff some day, so I switched back to my beloved JEdit a couple of months ago... although I realized that TIDE was missing ONE major feature (to me, anyways): Code-completion!
So I was looking into the JEdit Sidekick plugin and tried to get it to work for Torque key words, so that I'd get some auto-complete features... basic completion (based on Codeweaver's "autocomplete.txt" file) wasn't very hard to get in, so I got that part working tonight:
If I find the time I'll also look into adding the exported engine classes for auto-completion just like Codeweaver does, but that may take a while... but I think the current completion already saves me lots of time, so I'm happy :) Got some more tests and little fixes to do still, but if anyone's interested in trying, just send me an email...
Other than that... little Erik is doing well, the Animal pack should hopefully be finished soon (it only needs some final sounds and some testing...) and I really need some sleep! ;)
until next time,
cheers,
beffy
just wanted to let you guys know what I'm up to currently... besides doing some contract work and careing for our little baby-boy Erik (see my last blog), I found some late evening hours yesterday and today to re-visit our TIDE plugin suite for JEdit for Torque script file editing and debugging (torqueide.sf.net) - not sure if anyone else (still) uses JEdit for Torque, but wth :P To me, its still the best solution (and it works on linux, too, yay!)
I was using Codeweaver for quite some time but got annoyed with crashes and stuff some day, so I switched back to my beloved JEdit a couple of months ago... although I realized that TIDE was missing ONE major feature (to me, anyways): Code-completion!
So I was looking into the JEdit Sidekick plugin and tried to get it to work for Torque key words, so that I'd get some auto-complete features... basic completion (based on Codeweaver's "autocomplete.txt" file) wasn't very hard to get in, so I got that part working tonight:
If I find the time I'll also look into adding the exported engine classes for auto-completion just like Codeweaver does, but that may take a while... but I think the current completion already saves me lots of time, so I'm happy :) Got some more tests and little fixes to do still, but if anyone's interested in trying, just send me an email...Other than that... little Erik is doing well, the Animal pack should hopefully be finished soon (it only needs some final sounds and some testing...) and I really need some sleep! ;)
until next time,
cheers,
beffy
#2
11/23/2006 (5:12 pm)
Hmm... as for me I'm on Codeweaver (can't use Torison as Unicode support is missing there).. but now I need to think about trying JEdit.. thanks for hint/reminder on that..
#3
11/23/2006 (7:48 pm)
Yessss!!!! JEdit w/ TIDE rocks!
#4
11/23/2006 (9:40 pm)
Let me be the first to say, thank-you! I've been using Jedit w/ TIDE from day one. I've tried all the other editors, but I come back to Jedit because it works best with torque scripting IMHO. Personally I'm not a big fan of Torque script debugging, it works like 65% of the time. But I've seen postings on the forums where they've modified the debugger within the engine to provide better hooks. Unfortunately for me, I've mostly worked on old Torque engines i.e. 1.3. I don't get to enjoy all the fixes that other people see, but hopefully that will change. Great work dude, hopefully we'll see an update.
#5
I've also added "auto-complete for all open files" last night, so you automatically get all variables and function names etc. defined in the currently open buffers in addition to the stuff defined in "autocomplete.txt"... one more thing I may add is "auto-complete for all project files", so I'd parse the project files once and write all keywords used there into a txt file to use for additional auto-completions - but I guess I'll just throw it out as-is for now so you guys can play with it :) I'll let you know when it's available here!
11/24/2006 (12:46 am)
Ah, so there are some JEdit users out there :) I've also added "auto-complete for all open files" last night, so you automatically get all variables and function names etc. defined in the currently open buffers in addition to the stuff defined in "autocomplete.txt"... one more thing I may add is "auto-complete for all project files", so I'd parse the project files once and write all keywords used there into a txt file to use for additional auto-completions - but I guess I'll just throw it out as-is for now so you guys can play with it :) I'll let you know when it's available here!
#6
You might want to backup your "jars/TIDEBrowse.jar" file if for some reason you don't like that feature ;)
Have fun and stay tuned for updates!
11/24/2006 (6:09 am)
Ok, if you already have JEdit 4.2 final installed and TIDE is setup and working, you can just copy the files from this zip into your JEdit folder (so that "autocomplete.txt" is in your JEdit root dir) - restart JEdit and you should have autocompletion as you type :)You might want to backup your "jars/TIDEBrowse.jar" file if for some reason you don't like that feature ;)
Have fun and stay tuned for updates!
#8
I also gotta revisit the TIDEDebug plugin if I find some time to include the TorqueScript debugger changes/extensions in TGE >= 1.4...
One thing I need to change for the autocompletion is that currently it scans for way too much stuff, e.g. it also offers the words found in comments etc. ;) should be easy to fix, though :)
11/24/2006 (7:23 am)
Yeah, I'd like that too, so I will implement it in the not too far future :)I also gotta revisit the TIDEDebug plugin if I find some time to include the TorqueScript debugger changes/extensions in TGE >= 1.4...
One thing I need to change for the autocompletion is that currently it scans for way too much stuff, e.g. it also offers the words found in comments etc. ;) should be easy to fix, though :)
#9
the term "datablock" (as opposed to "dataBlock") is used inside a function, e.g.
cheers,
beffy
11/24/2006 (9:07 am)
Ok, fixed the "autocomplete spamming" and updated zip! :) I've also fixed an old bug that would stop TIDEBrowse from parsing a file whenthe term "datablock" (as opposed to "dataBlock") is used inside a function, e.g.
%obj = new Item() {
datablock = %this;
rotation = "0 0 1 " @ (getRandom() * 360);
count = %amount;
};This was causing problems before and should now be fixed :)cheers,
beffy
#10
11/24/2006 (10:06 am)
Thank you x3, Stefan!
#11
From the change history:
Here you can see the TIDE menu with the new project completion feature...

You can now also toggle the autocompletion in the TIDEBrowse option dialog:

I've also updated the TIDE project website and the sourceforge.net project website, so you can get the whole package containing all the TIDE jars and additional files over there... as well as the source code, which is now in SVN instead of the ancient CVS! :)
The zip file above is updated, too, if you just need the new TIDEBrowse jar!
Enjoy! :)
11/27/2006 (6:49 am)
Whee, got some basic additional project based autocompletion working!From the change history:
Quote:TIDEBrowse now features simple "autocomplete-as-you-type", which can be toggled in the Options Dialog.
It doesn't support fancy context-sensitive, object based function- ect. completions, but it's quite handy imho. For general completions, the file "autocomplete.txt" in the JEdit home dir is used. In addition to that,
a file named "project_autocomplete.txt" is generated and saved for every opened TIDE-project (for .cs and .gui files) the first time the project is opened. You can re-generate this file manually from the Plugins-TIDE-TIDEBrowse menu if your project has changed or if you've added a lot of stuff to your files which you'd like to have in the autocompletion.
Here you can see the TIDE menu with the new project completion feature...

You can now also toggle the autocompletion in the TIDEBrowse option dialog:

I've also updated the TIDE project website and the sourceforge.net project website, so you can get the whole package containing all the TIDE jars and additional files over there... as well as the source code, which is now in SVN instead of the ancient CVS! :)
The zip file above is updated, too, if you just need the new TIDEBrowse jar!
Enjoy! :)
#12
Speaking of linux... I need somebody to check if TIDEDebug still works on linux... I don't have a compiled DEBUG linux build here atm (just the 1.4 demo) and don't really have the time to setup the compiler and stuff for Torque there... any takers?
11/27/2006 (11:13 am)
Just resolved a problem that would prevent TIDEBrowse from finding "autocomplete.txt" on Linux systems... so if anybody is on linux and downloaded already, please download again :)Speaking of linux... I need somebody to check if TIDEDebug still works on linux... I don't have a compiled DEBUG linux build here atm (just the 1.4 demo) and don't really have the time to setup the compiler and stuff for Torque there... any takers?
#13
On 4.3 Jedit is a package on a Mac, you have to right click and 'Show Package Contents' and that's where the jars plugins and autocomplete.txt needs to go.
Thanks,
Greg
01/04/2007 (2:51 am)
On a Mac with Jedit 4.3, and it works great. I have used TIDE with Jedit for 8 months now, you do have some users.On 4.3 Jedit is a package on a Mac, you have to right click and 'Show Package Contents' and that's where the jars plugins and autocomplete.txt needs to go.
Thanks,
Greg
#14
In the meantime, I've already tested TIDEDebug on linux now, too... works as expected :)
01/04/2007 (2:55 am)
Ah, thx for the info, Greg! Glad it works for you :)In the meantime, I've already tested TIDEDebug on linux now, too... works as expected :)
#15
01/08/2007 (4:44 pm)
Great to have - thanks!
#16
I've fixed some nasty behaviour, e.g. the autocompletion would pop up if you didn't even type anything yet, or after ")" or ";", where it just made no sense to do any completion at all.
Just replace the .jar in "JEDIT_HOME/jars/" - and you should also update the project_autocomplete.txt file via the Plugin Menu since local and global vars are stored there separately now, which also makes the autocompletions more useful! Enjoy! :)
02/04/2007 (5:50 am)
Just in case anybody is monitoring this... I have just updated the intellisense/autocomplete feature - you can download the updated TideBrowse.jar file at Sourceforge!I've fixed some nasty behaviour, e.g. the autocompletion would pop up if you didn't even type anything yet, or after ")" or ";", where it just made no sense to do any completion at all.
Just replace the .jar in "JEDIT_HOME/jars/" - and you should also update the project_autocomplete.txt file via the Plugin Menu since local and global vars are stored there separately now, which also makes the autocompletions more useful! Enjoy! :)
#17
02/05/2007 (1:59 am)
Just a fyi... if you've downloaded yesterday, you may want to download again since I've updated the jar and added some more tiny improvements, e.g. local variables are only considered for the file you are currently editing, not all open buffers anymore (or the whole project)... so to make sure, just download again and also hit "(Re)Generate Project Autocompletions"! :) Have fun!
#18
Edit: never mind, had to select the parser.
02/07/2007 (3:55 pm)
i just got this all installed(been looking for a editor since torsion went pay), i love it i just cant get the auto completion to work, is there a setting or something?Edit: never mind, had to select the parser.
#20
02/08/2007 (8:47 am)
one thing i noticed, i bound F5 to start the debugger(from my old VB days) it doesnt seem to work all the time, at one point yesterday i was hammering f5 and nothing was happening, so i started clicking the debugger start button and nothing there either, till i opened the project viewer tab, then it started working, other times it works perfect its weird, but iam still getting used to jedit. also, does the debugger give any kind of feedback? i have yet to see it show any info from the game, errors or anything. 
Torque 3D Owner Tony Richards
Using a good editor with debugging, etc is definately a requirement when it comes to using Torque. I really like Codeweaver... Now that I'm used to it, I don't think I'd ever want to change to something else, but you've got my interest peaked... I'll take a look at JEdit and see if I like it.