This Question is Answered

1 "correct" answer available (5 pts) 14 "helpful" answers available (3 pts)
8 Replies Last post: Feb 20, 2008 9:30 AM by rshiplett

IDE editor while refactoring across projects

Feb 7, 2008 8:01 AM

Click to view rshiplett's profile MVP rshiplett 29 posts since
Oct 17, 2007

Our Curl editor is extensible. Any info available on any of the following would be appreciated ....

Is there a prospect of splitting the edit window not on one file but on 2 files ? Could we not use Curl's IDE Editor to do DIFF's ( I am still using WinMerge on scurl files ... )

Is there a prospect of a 'view' which excludes {doc-next} etc when trying to view files side-by-side ( especially useful when one is CURL-documented and the other is not )

Is there a prospect of a view which is just {method ... :Type expression "headers" ?

I am wondering if out among JA and KR developers there was any effort to move towards tools better suited to refactoring ( I am more at home with Smalltalk-style class browser, hierarchy browser, package browser and RefactoringBrowser )

I would like to see a "Future Directions" discussion that looks at what was done for TCL as a language when an IDE was built for XOTcl ( Extended Object Tcl )

Who is able to initiate "Future Directions" discussions over on that Forum? And then there is Curl and JetBrains IDEA ...

Anyone interested in an open-source or other project to promote a Curl-based RefactoringBrowser, rather than contacting me, please respond so CURL can see where this belongs as a project.

PS A presenter on LAX java UG from Atlanta speaking on Ruby-On-Rails confided that he is still a commandline guy. I am an IDE guy ( After IDEA, "Borland C++ for OS/2" is my fave, followed by Dolphin Smalltalk , VisualWorks Smalltalk, Borland JBuilder and Microsoft QuickPascal and "QuickC with Assembler" - the last had a user-accessible hot-link help file format ). Least fave: IBM workbenches, VisualAge for Java, Eclipse, Visual Prolog. See a pattern ? ;-)

Click to view friedger's profile MVP friedger 95 posts since
Jan 13, 2008
1. Re: IDE editor while refactoring across projects Feb 8, 2008 12:32 AM

I am not familiar with the specification of a "refactoring browser" but sometime ago I wrote some extension for the Curl IDE, e.g.
a manifest editor to explore the reference between packages/projects,
an "immediateWindow" where you can type some code and evaluate it immediately,
a todo editor,
a package browser, showing the content of a package

I am happy to throw that into an open source project.

However, I am an "Eclipse" guy and I am not sure how IDE editors would fit into an Curl Eclipse plugin. So a comment from Curl would be appreciated how Curl IDE and Eclipse plugin are related, especially whether IDE editors can be reused in the plugin.


Friedger

Click to view friedger's profile MVP friedger 95 posts since
Jan 13, 2008
2. Re: IDE editor while refactoring across projects Feb 8, 2008 1:08 AM
in response to: friedger
Click to view phil's profile Curl phil 28 posts since
Oct 17, 2007
3. Re: IDE editor while refactoring across projects Feb 8, 2008 11:08 AM
Is there a prospect of splitting the edit window not on one file but on 2 files ? Could we not use Curl's IDE Editor to do DIFF's ( I am still using WinMerge on scurl files ... )
You can currently have two different editor windows open at the same time. Right click on an editor tab and choose Split to Right, for example. We don't have an integrated diff tool though.

Is there a prospect of a 'view' which excludes {doc-next} etc when trying to view files side-by-side ( especially useful when one is CURL-documented and the other is not )
This is a perennial request that will hopefully get implemented, someday.

Is there a prospect of a view which is just {method ... :Type expression "headers" ?
Are you asking for an outline view in the source editor so you can collapse method bodies? Or a separate view that just shows a list of definitions in a file? An outline view would be nice to have. The drop down menu at the top of the editor shows all the symbols in a file, in declaration order.

I am wondering if out among JA and KR developers there was any effort to move towards tools better suited to refactoring ( I am more at home with Smalltalk-style class browser, hierarchy browser, package browser and RefactoringBrowser )
We are working on refactoring for a future release. In the meantime, try using the Class Browser. You can use it to look at object hierarchies and see which objects override which methods. In the source editor, right click on a method name and choose Show In Class Browser.

I would like to see a "Future Directions" discussion that looks at what was done for TCL as a language when an IDE was built for XOTcl ( Extended Object Tcl )

Who is able to initiate "Future Directions" discussions over on that Forum? And then there is Curl and JetBrains IDEA ...
It would be great to have a feedback forum like that online. For now, posting messages here will have to do, I guess. Unless there is some other open forum on curl.com I'm not aware of.

Anyone interested in an open-source or other project to promote a Curl-based RefactoringBrowser, rather than contacting me, please respond so CURL can see where this belongs as a project.
If you want to work on this, go ahead, but we are also working on this problem. Not that I'm saying it will be done anytime soon, of course. :-)

PS A presenter on LAX java UG from Atlanta speaking on Ruby-On-Rails confided that he is still a commandline guy. I am an IDE guy ( After IDEA, "Borland C++ for OS/2" is my fave, followed by Dolphin Smalltalk , VisualWorks Smalltalk, Borland JBuilder and Microsoft QuickPascal and "QuickC with Assembler" - the last had a user-accessible hot-link help file format ). Least fave: IBM workbenches, VisualAge for Java, Eclipse, Visual Prolog. See a pattern ? ;-)
I've been working on IDEs for a long time (I worked on LightspeedC for the Mac a few years back) and I have my own preferences about what IDEs are good/bad/etc. Regardless, right now the market leader appears to be Eclipse so that is where we're aiming our efforts, in terms of feature parity, IDE workflow, etc.
Click to view rshiplett's profile MVP rshiplett 29 posts since
Oct 17, 2007
4. Re: IDE editor while refactoring across projects Feb 8, 2008 11:23 AM
in response to: phil

Phil

Ah, "split to right" on Editor. Thanks. I had never seen that (using EDIT menu is my habit)

The SPLIT on the Edit menu splits vertical on one and the same tab

Here is a BUG

We had some developers use 't' as a variable identifier

Searching for 't' as an identifier goes to every apostrophe-t in every "don't" and "shouldn't" in the documentation in our CURL source files

Click to view rshiplett's profile MVP rshiplett 29 posts since
Oct 17, 2007
5. Re: IDE editor while refactoring across projects Feb 8, 2008 11:34 AM
in response to: friedger

At the moment I am having Eclipse call TextPad on Windows with my own Curl syntax and templates.

Have you tried Aptana as an Eclipse variant? It is not fast, but I like the features for work with Javascript ...

' " breakr, breakr ", curlr ', he said ...

Click to view phil's profile Curl phil 28 posts since
Oct 17, 2007
6. Re: IDE editor while refactoring across projects Feb 14, 2008 2:15 PM
in response to: rshiplett
rshiplett wrote:
Here is a BUG

We had some developers use 't' as a variable identifier

Searching for 't' as an identifier goes to every apostrophe-t in every "don't" and "shouldn't" in the documentation in our CURL source files

Yes, the identifier search in the current IDE is a plain text regular expression search. It doesn't know anything about what objects are identifiers or not. We plan to improve this behavior in a future release.

In the meantime, maybe using 't' for an identifier is a bad idea? :-)
Click to view cbarber's profile Curl cbarber 72 posts since
Sep 27, 2007
7. Re: IDE editor while refactoring across projects Feb 19, 2008 9:06 AM
in response to: rshiplett

FWIW, an identifier search in the IDE is actually turned in to a regular expression using:

"(?<!\w_?-)" & {regexp-escape pattern} & "(?!\w_?-)"


The (?<!) and (?!) expressions are zero-width expressions that specify that the characters before and after the identifier cannot be identifier characters. If you do a regexp search and add ' to the first expression you can get rid of all of the apostrophe matches in this case:

(?<\w_?-)


  • Christopher


Click to view rshiplett's profile MVP rshiplett 29 posts since
Oct 17, 2007
8. Re: IDE editor while refactoring across projects Feb 20, 2008 9:30 AM
in response to: cbarber

I look forward to the day when we have a release of Curl with the blurb

"Not only can you use the regexp that you may have used in Perl, but you can use string-based pattern-matching with optional backtracking (as once found in ICON, the programming language)"

Which has about a SNOBOL's chance in a mid-summer Boston BarBQ ;-)

But hey, some winter ...