[xwiki-devs] [VOTE] Create a XWiki Debug (IntelliJ) Idea project in the XWiki organization page
Hi guys, I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit. I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project. Here is my +1 -Fabio
On Fri, Oct 26, 2012 at 7:38 PM, Fabio Mancinelli < [email protected]> wrote:
Hi guys,
I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit.
I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea
http://dev.xwiki.org/xwiki/bin/view/Community/XWikiDebugIdea should works better :)
This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project.
Here is my +1
-Fabio _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Denis Gervalle SOFTEC sa - CEO eGuilde sarl - CTO
On Fri, Oct 26, 2012 at 1:38 PM, Fabio Mancinelli < [email protected]> wrote:
Hi guys,
I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit.
I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea
This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project.
Here is my +1
-Fabio
+0. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Fabio, I do this routinely with remote connect. Self-installed Tomcat. Invoked using the debug command. Deployed webapp folder (which uses symbolic links). Generally this means that the compilation in IDEA is kind of useless but is a good thing before expecting hot swap. How is this different? It seems to me it is more complex to run this inside IntelliJ IDEA, do I mistake? paul Le 26 oct. 2012 à 20:38, Fabio Mancinelli a écrit :
Hi guys,
I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit.
I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea
This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project.
Here is my +1
-Fabio _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Fri, Oct 26, 2012 at 8:55 PM, Paul Libbrecht <[email protected]> wrote:
Fabio,
I do this routinely with remote connect. Self-installed Tomcat. Invoked using the debug command. Deployed webapp folder (which uses symbolic links).
Generally this means that the compilation in IDEA is kind of useless but is a good thing before expecting hot swap.
How is this different? It seems to me it is more complex to run this inside IntelliJ IDEA, do I mistake?
I've always used Eclipse and the xwiki-debug-eclipse which has a nice property: you don't have to bother to make sure that the sources you modify (and the corresponding JARs) are available in the webapp. Eclipse (+ m2eclipse) does it for you by automatically synching every modification with the corresponding webapp. And, above all, it knows when to use a JAR coming from your repo instead of the one coming from one of your open projects. AFAIK if you don't use this kind of automation you have to manually copy JARs and make sure that the correct version is deployed. A very error prone operation involving a lot of steps, and switching back and forth from the shell. So the advantage is that: the IDE takes care and makes sure automatically that everything is synched without you touching anything. So starting an XWiki is just a matter of a click. Again, AFAIK many people were mostly using the "manual procedure". Now since I wanted to start using Idea, and because I was coming from a highly automated environmnet (Eclipse + xwiki-debug-eclipse) I simply wanted to recreate the same level of automation in this environment, not having to manually check/copy anything. So I found a way to "emulate" xwiki-debug-eclipse in IntelliJ Idea :) The init.sh with the symlinking is the best way I've found to make available to the webapp project all the files that belong to other places (i.e., xwiki-platform-web and skins). I could have duplicated these, but if you were hacking a skin you would have had to make sure that you copy back the modified files to xwiki-platform. Again an error prone situation. With symlinks this is automatic. In Eclipse we didn't need to do that because Eclipse supported symlinking at the project level. Infact there are links, but they are defined in the .project and you don't see it in the filesystem. I am no expert of IntelliJ Idea, and this is the first time I use it. So if you see something wrong in what I described please shout :) Hope this helps, Fabio
paul
Le 26 oct. 2012 à 20:38, Fabio Mancinelli a écrit :
Hi guys,
I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit.
I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea
This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project.
Here is my +1
-Fabio _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Le 26 oct. 2012 à 23:44, Fabio Mancinelli a écrit :
I've always used Eclipse and the xwiki-debug-eclipse which has a nice property: you don't have to bother to make sure that the sources you modify (and the corresponding JARs) are available in the webapp. Eclipse (+ m2eclipse) does it for you by automatically synching every modification with the corresponding webapp. And, above all, it knows when to use a JAR coming from your repo instead of the one coming from one of your open projects.
AFAIK if you don't use this kind of automation you have to manually copy JARs and make sure that the correct version is deployed. A very error prone operation involving a lot of steps, and switching back and forth from the shell.
Maven does it for me. And it's better so since I want maven to be used to build the webapp on the dev/beta/production servers. But I guess your description sounds more complete. Indeed a modification of, say, a .vm file needs me to copy that file, not a big deal. paul
On Sat, Oct 27, 2012 at 9:27 PM, Paul Libbrecht <[email protected]> wrote:
Le 26 oct. 2012 à 23:44, Fabio Mancinelli a écrit :
I've always used Eclipse and the xwiki-debug-eclipse which has a nice property: you don't have to bother to make sure that the sources you modify (and the corresponding JARs) are available in the webapp. Eclipse (+ m2eclipse) does it for you by automatically synching every modification with the corresponding webapp. And, above all, it knows when to use a JAR coming from your repo instead of the one coming from one of your open projects.
AFAIK if you don't use this kind of automation you have to manually copy JARs and make sure that the correct version is deployed. A very error prone operation involving a lot of steps, and switching back and forth from the shell.
Maven does it for me. And it's better so since I want maven to be used to build the webapp on the dev/beta/production servers.
Paul, I know that Maven does it :) My goal is just to have a very automated workflow *within* the IDE, that takes the least time from a source modification to an up=and-running XWiki incorporating that modification. With xwiki-debug-* you modify a .java source, you click a button and you're done (no round-trips to the shell, double-checks, or whatever) And IntelliJ looks to be also blazing fast wrt Eclipse. This workflow takes less than 20 secs on my laptop (including XWiki startup time). Btw, I am curious to know what is your development workflow. What do you do if you want to change something in, let's say, the xwiki-rest-server module? Maybe we can improve even more. Thanks, Fabio
But I guess your description sounds more complete. Indeed a modification of, say, a .vm file needs me to copy that file, not a big deal.
paul _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hello Fabio, Le 29 oct. 2012 à 10:22, Fabio Mancinelli a écrit :
Paul, I know that Maven does it :)
you bet!
My goal is just to have a very automated workflow *within* the IDE, that takes the least time from a source modification to an up=and-running XWiki incorporating that modification.
My fear there, at least of previous eras of such IDE integration is that some day you get a decoupling between what maven (or anything command-line) does and what the IDE does. Then you're in trouble. It seems to be not your case currently, so that is good.
With xwiki-debug-* you modify a .java source, you click a button and you're done (no round-trips to the shell, double-checks, or whatever) And IntelliJ looks to be also blazing fast wrt Eclipse. This workflow takes less than 20 secs on my laptop (including XWiki startup time).
The advantage of the remote setup is precisely that I can outsource my XWiki (curriki's basis is a bit bigger than xwiki's basis!) to a server, at home I have my little server for this but the debug and edit is still on the laptop. 20 second is really good indeed!
Btw, I am curious to know what is your development workflow. What do you do if you want to change something in, let's say, the xwiki-rest-server module? Maybe we can improve even more.
When changing any source, I generally deploy and run, build inside IntelliJ, connect with remote debug, then do the extra modification and compile the given file, this requests the hot-swap and takes a few seconds only. This fails for API changes however (but since CLIRR will hit me later on, I'd better be warned ;-)). I'm pretty sure that also works in your case as well. For a change of a resource, I need to copy manually (no filtering then), then re-run the view. This very fast and effective but it needs three apps (IDE, terminal, browser) instead of two. paul
On Oct 26, 2012, at 7:38 PM, Fabio Mancinelli <[email protected]> wrote:
Hi guys,
I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit.
I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea
This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project.
Here is my +1
+1 definitely Thanks -Vincent
+1, impatient to try it :) On Fri, Oct 26, 2012 at 7:38 PM, Fabio Mancinelli < [email protected]> wrote:
Hi guys,
I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit.
I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea
This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project.
Here is my +1
-Fabio _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Denis Gervalle SOFTEC sa - CEO eGuilde sarl - CTO
On Fri, Oct 26, 2012 at 7:38 PM, Fabio Mancinelli <[email protected]> wrote:
Hi guys,
I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit.
I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea
This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project.
I think it would be a good occasion to apply Denis's proposal: http://markmail.org/message/2ucmtrth2sdykq5q.
Here is my +1
-Fabio _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
+1 -- Thomas Mortagne
Ok, so we have 4 +1, 1 +0. Thomas proposed to apply Denis' suggestion, i.e., creating an xwiki-dev-tools containing xwiki-debug-eclipse xwiki-debug-idea other xwiki related development helpers If nobody is against this, I will create an xwiki-dev-tools project and put inside it the xwiki-debug-idea. How do we proceed for moving the xwiki-debug-eclipse? -Fabio On Fri, Oct 26, 2012 at 7:38 PM, Fabio Mancinelli <[email protected]> wrote:
Hi guys,
I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit.
I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea
This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project.
Here is my +1
-Fabio
On Mon, Oct 29, 2012 at 2:06 PM, Fabio Mancinelli <[email protected]> wrote:
Ok, so we have 4 +1, 1 +0.
Thomas proposed to apply Denis' suggestion, i.e., creating an xwiki-dev-tools containing
xwiki-debug-eclipse xwiki-debug-idea other xwiki related development helpers
If nobody is against this, I will create an xwiki-dev-tools project and put inside it the xwiki-debug-idea.
How do we proceed for moving the xwiki-debug-eclipse?
I would say rename its repository to xwiki-dev-tools.
-Fabio
On Fri, Oct 26, 2012 at 7:38 PM, Fabio Mancinelli <[email protected]> wrote:
Hi guys,
I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit.
I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea
This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project.
Here is my +1
-Fabio
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On Mon, Oct 29, 2012 at 2:39 PM, Thomas Mortagne <[email protected]> wrote:
On Mon, Oct 29, 2012 at 2:06 PM, Fabio Mancinelli <[email protected]> wrote:
Ok, so we have 4 +1, 1 +0.
Thomas proposed to apply Denis' suggestion, i.e., creating an xwiki-dev-tools containing
xwiki-debug-eclipse xwiki-debug-idea other xwiki related development helpers
If nobody is against this, I will create an xwiki-dev-tools project and put inside it the xwiki-debug-idea.
How do we proceed for moving the xwiki-debug-eclipse?
I would say rename its repository to xwiki-dev-tools.
I can't. The Admin menu doesn't show up for my user. -Fabio
-Fabio
On Fri, Oct 26, 2012 at 7:38 PM, Fabio Mancinelli <[email protected]> wrote:
Hi guys,
I spent some time trying to port the great work Thomas did for Eclipse (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. So I have something working to commit.
I've already written the documentation: http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea
This mail is to ask if I can commit it in the main XWiki repository by creating a xwiki-debug-idea project.
Here is my +1
-Fabio
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On 10/29/2012 09:46 AM, Fabio Mancinelli wrote:
On Mon, Oct 29, 2012 at 2:39 PM, Thomas Mortagne <[email protected]> wrote:
On Mon, Oct 29, 2012 at 2:06 PM, Fabio Mancinelli <[email protected]> wrote:
Ok, so we have 4 +1, 1 +0.
Thomas proposed to apply Denis' suggestion, i.e., creating an xwiki-dev-tools containing
xwiki-debug-eclipse xwiki-debug-idea other xwiki related development helpers
If nobody is against this, I will create an xwiki-dev-tools project and put inside it the xwiki-debug-idea.
How do we proceed for moving the xwiki-debug-eclipse?
I would say rename its repository to xwiki-dev-tools.
I can't. The Admin menu doesn't show up for my user.
I renamed it for you. -- Sergiu Dumitriu http://purl.org/net/sergiu/
On 10/29/2012 09:06 AM, Fabio Mancinelli wrote:
Ok, so we have 4 +1, 1 +0.
Thomas proposed to apply Denis' suggestion, i.e., creating an xwiki-dev-tools containing
xwiki-debug-eclipse xwiki-debug-idea other xwiki related development helpers
+ The release scripts.
If nobody is against this, I will create an xwiki-dev-tools project and put inside it the xwiki-debug-idea.
How do we proceed for moving the xwiki-debug-eclipse?
-- Sergiu Dumitriu http://purl.org/net/sergiu/
On Mon, Oct 29, 2012 at 4:21 PM, Sergiu Dumitriu <[email protected]> wrote:
On 10/29/2012 09:06 AM, Fabio Mancinelli wrote:
Ok, so we have 4 +1, 1 +0.
Thomas proposed to apply Denis' suggestion, i.e., creating an xwiki-dev-tools containing
xwiki-debug-eclipse xwiki-debug-idea other xwiki related development helpers
+ The release scripts.
Done. I've merged contrib/xwiki-release-script in xwiki/xwiki-dev-tools (preserving the history) -Fabio
If nobody is against this, I will create an xwiki-dev-tools project and put inside it the xwiki-debug-idea.
How do we proceed for moving the xwiki-debug-eclipse?
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Mon, Oct 29, 2012 at 7:22 PM, Fabio Mancinelli <[email protected]> wrote:
On Mon, Oct 29, 2012 at 4:21 PM, Sergiu Dumitriu <[email protected]> wrote:
On 10/29/2012 09:06 AM, Fabio Mancinelli wrote:
Ok, so we have 4 +1, 1 +0.
Thomas proposed to apply Denis' suggestion, i.e., creating an xwiki-dev-tools containing
xwiki-debug-eclipse xwiki-debug-idea other xwiki related development helpers
+ The release scripts.
Done.
I've merged contrib/xwiki-release-script in xwiki/xwiki-dev-tools (preserving the history)
FYI I've also updated the Agent1 machine so that the ~/xwiki-release-scripts directory now points to xwiki-dev-tools/xwiki-release-scripts. I've kept the old xwiki-release-script (the one pointing to xwiki-contrib/xwiki-release-scripts) and renamed it to xwiki-release-scripts.old. I think it's safe to delete it. -Fabio
-Fabio
If nobody is against this, I will create an xwiki-dev-tools project and put inside it the xwiki-debug-idea.
How do we proceed for moving the xwiki-debug-eclipse?
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (6)
-
Denis Gervalle -
Fabio Mancinelli -
Paul Libbrecht -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol