ColdFusion icon indicating copy to clipboard operation
ColdFusion copied to clipboard

add Railo/OpenBD functions/tags

Open atomi opened this issue 12 years ago • 13 comments

_1 Upvote_

atomi avatar Jun 21 '12 20:06 atomi

I'm not sure how to "vote" for this issue so I'm posting a comment instead. +1.

igal-getrailo avatar Oct 30 '12 00:10 igal-getrailo

A current Eclipse dictionary file for OpenBD and Railo would be helpful.

atomi avatar Oct 30 '12 01:10 atomi

hi Atomi,

I don't know about OpenBD, but for Railo you have a couple of options:

  1. extract the information from xml files:

tags: https://github.com/getrailo/railo/blob/master/railo-java/railo-core/src/resource/tld/web-cfmtaglibrary_1_0

notice that the name-space is "cf" so prefix all names with "cf" (but I'm sure you knew that ;])

functions: https://github.com/getrailo/railo/blob/master/railo-java/railo-core/src/resource/fld/web-cfmfunctionlibrary_1_0

you might want to switch to the 4.0 branch as 4.0 is due to be released very soon

  1. this is the less-preferred method as it is not up to date, but you can probably grab it from the cfeclipse project https://github.com/cfeclipse/cfeclipse

I hope that this helps, and keep up the good work!

Igal

igal-getrailo avatar Oct 30 '12 02:10 igal-getrailo

Yes it's very helpful! Thanks! I didn't know those xml files were available. I'll see if I can whip something up during lunch tomorrow or later in the afternoon.

I have a lot of catching up to do with other work tonight.

atomi avatar Oct 30 '12 03:10 atomi

awesome :)

On 10/29/2012 8:13 PM, atomi wrote:

Yes it's very helpful! Thanks! I didn't know those xml files were available. I'll see if I can whip something up during lunch tomorrow or later in the afternoon.

I have a lot of catching up to do with other work tonight.

— Reply to this email directly or view it on GitHub https://github.com/SublimeText/ColdFusion/issues/45#issuecomment-9893751.

Igal Sapir Railo - Open Source CFML Engine http://getrailo.org

igal-getrailo avatar Oct 30 '12 03:10 igal-getrailo

+1 : we use railo a lot here, so having the railo specific tags and functions built in would be awesome

arthurblake avatar Oct 30 '12 10:10 arthurblake

Just a heads up. The web-cfmtaglibrary_1_0 xml file doesn't contain nodes for each attribute value available in Railo tags. They're in the attribute description which needs to be parsed as text. So it's going to take more time to do and it wont be as complete as the current ACF attribute completions.

atomi avatar Oct 30 '12 20:10 atomi

where can I see the data that you use for the ACF dictionary? what file is that in? can you post a link?

igal-getrailo avatar Oct 30 '12 20:10 igal-getrailo

Sorry for the late reply here you go:

https://github.com/SublimeText/ColdFusion/blob/master/taglib/cf10.py

atomi avatar Oct 30 '12 21:10 atomi

By the way, the current cfscript function completions will need to be moved to a python plugin format to include the Railo functions. This is probably a good thing since we might be able to improve the completions. I'm not sure which way is the best way to go with that yet though.

Edit: here is the current cfscript function completions file : https://github.com/SublimeText/ColdFusion/blob/master/CFScript.sublime-completions

I would likely replace it with something like the tag-operator completions: https://github.com/SublimeText/ColdFusion/blob/master/tagoperators.py

It might be worth moving them to their respective taglib/dictionary.py file.

atomi avatar Oct 30 '12 21:10 atomi

actually you're one of the more responsive people here so no worries about response times.

in general Railo tries to maintain full compatibility with ACF so maybe we can merge the attributes from ACF into the Railo file programmatically and then make the required tweaks manually?

there are also a lot of users on the Railo mailing list who are usually eager to help.

did you generate cf10.py programmatically from some source xml file (I shudder at the thought that you built it manually)?

igal-getrailo avatar Oct 30 '12 22:10 igal-getrailo

@bbluemel imported all the dictionary files from the Eclipse xml files using his own implementation ( https://github.com/SublimeText/ColdFusion/blob/master/importer/import.cfc ).

But yeah merging the cf10.xml Eclipse dictionary file into this sounds ideal.

atomi avatar Oct 30 '12 23:10 atomi

oh yea, @bbluemel did a great job on the Notepad++ CF plugin before.

I will check with @cybersonic and @denuno if they can shed more light on this as they were heavily involved with the CFEclipse project.

igal-getrailo avatar Oct 30 '12 23:10 igal-getrailo