Recognizing Application.cfc

64 views
Skip to first unread message

MCL

unread,
Apr 8, 2014, 3:37:15 AM4/8/14
to cfml-plugin-fo...@googlegroups.com
Hi,

I am new to Intellij Idea and so far like the its support for ColdFusion. I am not sure if there is still anyone on this group, but I have a quick question. Is there a way to set up so that Intellij recognizes the variables / objects I set in Application.cfc?

Thanks.

Dave Merrill

unread,
Apr 8, 2014, 7:51:17 AM4/8/14
to CFML plugin for IntelliJ IDEA
Don't believe so, though I'm not certain exactly what you mean. If it's that certain variables are CFC instances that you'd like completion for and navigation to, then no, not as far as I know. I don't think that desire is specific to Application.cfc though.

I've requested similar features for a long time now. Specifically, one of the major apps I work on creates a bunch of UDFs in application space (application.udf.util.foo() etc), and it'd be great if IDEA could be made aware of them for completion and quick navigation. No can do, as far as I know.

Not to be negative, but of you're just beginning to consider IDEA for CFML, are you aware that IntelliJ no longer does much if any development for the CFML plugin? After it being stalled for a long time as an in-house project, they finally open sourced it, but apparently nobody outside of IntelliJ has any more time or higher priority for improving it than was happening inside. I'm doing just as much nothing about it as everyone else.

Don't get me wrong, I love IDEA, use it all day every day, and have for years now, for CFML, JS, SQL, CSS, HTML, and a smattering of other languages. To me it's by far the smartest, most efficient, and most pleasurable environment I've ever used for any language, and I'd be very sad if CFML support completely went way, not sure what I'd do. I'm not a fan of Eclipse, and that seems to be the other major game in town. CFML support in IDEA isn't perfect, but it's not bad in some respects, support for most other languages I work in is pretty great, and I cope well enough with its missing features and my unrealized dreams. It would be great if it knew about more recent versions of ColdFusion though, for instance.

Anyway, back to your actual question, I may be wrong, but I think the answer is no. Maybe someone else has a better thought.



--
You received this message because you are subscribed to the Google Groups "CFML plugin for IntelliJ IDEA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfml-plugin-for-inte...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

MCL

unread,
Apr 9, 2014, 5:19:32 AM4/9/14
to cfml-plugin-fo...@googlegroups.com
Hi Dave,

That is what I meant.  I instantiate a lot of my objects in application scope and I would like to be able to do code completion of their methods in my cfm files.  That's really too bad that they don't support that.  One of the main features that I am looking for is code completion (and navigation) of CFC objects, so not being able to access application scoped objects is a bit of a downside. 

I am quite aware of the lack of support for ColdFusion.  I am coming from Dreamweaver (been too lazy to change till now), so I find that even the current version of IDEA, however imperfect, is still light years better than DW.   I have tried CF Builder but I couldn't stand how slow it is.  I know a lot of people are switching to Sublime, but it doesn't seem to support code completion / navigation of CFC so I haven't really given it a try.   So far, I love working with IDEA.   I do see that IDEA 13 supports both CF10 and Railo (not sure what version), so it'll probably be fine for a year or two.  I am concerned though that I may need to switch again in not too distant future if the support for future version is not there.

Anyway, now that the plugin is open sourced, do you know if I could just use the community version? 

Thanks!
To unsubscribe from this group and stop receiving emails from it, send an email to cfml-plugin-for-intellij-idea+unsub...@googlegroups.com.

Cameron Childress

unread,
Apr 9, 2014, 9:29:38 AM4/9/14
to cfml-plugin-fo...@googlegroups.com
Another IDE that may be worth looking at is Atom, thought I'm not sure it even supports CF yet. I've been meaning to check it out.


-Cameron


To unsubscribe from this group and stop receiving emails from it, send an email to cfml-plugin-for-inte...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Cameron Childress
--
p:   678.637.5072
im: cameroncf

Dave Merrill

unread,
Apr 9, 2014, 3:15:22 PM4/9/14
to CFML plugin for IntelliJ IDEA

IDEA 13 supports both CF10 and Railo

Interesting, I wasn't aware of that. I actually hadn't upgraded to 13 from 12.1.6 because I thought there wasn't anything in it for CFML. I figured I would eventually, was kind of just being pissy about it. 12.1.6 definitely doesn't have any of the CF 10 functions I tried, so that's good to know.

I was already leaning towards upgrading for the improved multiple selection stuff, that probably pushes me over the edge.

Are you actually sure it supports CF 10, as in, knows about the new CF 10-specific language features? I didn't think IntelliJ was doing anything on CFML at all, and I didn't see anything to that effect with a quick googling.

MCL

unread,
Apr 9, 2014, 9:39:01 PM4/9/14
to cfml-plugin-fo...@googlegroups.com
Hi Dave,

This is what I found:

When I go to Settings -> ColdFusion -> Language Version, there is a drop down menu with the following choices: ColdFusion 8, ColdFusion 9, ColdFusion 10 and Railo.  I selected CF10, but when I tried typing in some of the new CF10 functions in the editor, none of them get recognized.  For example, when I typed it "<cfset struct", IDEA showed me all the functions starting with "struct", but there is no structEach and structFilter, both CF10 functions.

Sorry to have misled you.  I am not sure why they added CF10 as a language version option then.
--
Cameron Childress
--
p:   678.637.5072
im: cameroncf

--
You received this message because you are subscribed to the Google Groups "CFML plugin for IntelliJ IDEA" group.

Mark Mandel

unread,
Apr 9, 2014, 9:42:37 PM4/9/14
to cfml-plugin-fo...@googlegroups.com
Sounds like a pull request in waiting!

Mark


To unsubscribe from this group and stop receiving emails from it, send an email to cfml-plugin-for-inte...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Edward Beckett

unread,
Apr 9, 2014, 10:05:47 PM4/9/14
to cfml-plugin-fo...@googlegroups.com

Well the plugin is built in java so if you wanted to fork the source and add syntax support its possible ... of course you will have to grok the intellij plugin api to do that but its doable...

To unsubscribe from this group and stop receiving emails from it, send an email to cfml-plugin-for-inte...@googlegroups.com.

Dave Merrill

unread,
Apr 10, 2014, 2:58:37 PM4/10/14
to CFML plugin for IntelliJ IDEA
I've wondered how hard that'd be. Existing supported languages should serve as a very good model. I'm not much of a Java guy, and I've never even looked at the IDEA source, but you have to start somewhere. That basic level of CFML enhancement would be a great thing for the community to add.

Edward Beckett

unread,
Apr 11, 2014, 10:43:39 AM4/11/14
to cfml-plugin-fo...@googlegroups.com

A project like that would greatly benefit as an open-sourced initiative ... If its picks up traction with some of the key application developers with skill in tooling support (read: Camden, Corfield and definitely Mark Drew) then it could easily become a sustainable project that doesn't get soon abandoned ...  if the initiative supported compatiblity with Railo then it would probably be a bit more attractive to the community ...

Reply all
Reply to author
Forward
0 new messages