This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Add Perforce versioncontrol support to 6.X and later versions. (http://perforce.com/perforce/partners/index.html) | ||
---|---|---|---|
Product: | third-party | Reporter: | wqtnetbeans <wqtnetbeans> |
Component: | -- Other -- | Assignee: | issues@third-party <issues> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | rstrobl |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
wqtnetbeans
2005-10-21 03:19:34 UTC
Although we would like to use NB 5.0 IDE, me and my team are unable to use 5.0 as there is no support for Perforce. I have been using perforce in netbeans 5.0 and now 5.5 without any issue. What seems to be the problem? One thing worth mentioning... as shipped, the Perforce profile doesn't work with newer Perforce servers. Specifically, there is an extra '%' character that needs to be added to one of the commands, as recent Perforce versions need the % character to be escaped (with another %). Not sure the best way to handle this, but here's the original LIST_CMD: ${OSSHELL} "${P4GLOBAL} fstat ${ROOTDIR}${PS}$[? MODULE] [${MODULE}${PS}] []$[? DIR] [${DIR}${PS}] []%1" ... and here's what's needed on more recent Perforce servers... ${OSSHELL} "${P4GLOBAL} fstat ${ROOTDIR}${PS}$[? MODULE] [${MODULE}${PS}] []$[? DIR] [${DIR}${PS}] []%%1" <--- notice the extra % jmwhite5, The problem is that it's not a good enough plugin to use. By "good enough", I mean the same kind of version control manangement as in what CVS is supported in post 5.0 releases. Alternatively, if you've ever worked with the Perforce plugin for IntelliJ IDEA or Eclipse, you'd know what I am talking about. I'm not sure if it's related to this % escape issue, but it's not been working for me either. All my files show as [Local] [r/o] and there's no menu option to edit the them... I'm using the NetBeans 5.5 GA + P4D/LINUX26X86/2006.1/102189. It seems many other users have the same issue: http://www.velocityreviews.com/forums/t366065-netbeans-50-amp-perforce-versioning-manager.html To 'bouteill' - that sounds like the symptom where the extra % symbol is needed. Here's how you can change the LIST_CMD... Open the options/preferences screen, make sure you select 'Advanced'. Look under: Source Creation and Management -> Version Control Settings -> Generic VCS Profiles -> Perforce. Edit the context commands for that profile, and add the extra % symbol to the value for 'LIST_CMD [hidden]'. Accept the preference changes and do a Perforce refresh from the IDE, it should correctly pull back state and revision number on your workspace. Ah! Did it for me, thanks doj! Hi! I use Netbeans 6.0 can I work with Perforce? wqtnetbeans: I agree with you. I currently use the built-in netbeans perforce VCS integration in 5.5.1 to automatically "edit" files I start changing (this is very convenient). For everything else, I use either command line p4 or p4v for diff/merge. This lack of basic integration with netbeans 6.0 forces me to stay behind at 5.5.1. Too bad, 6.0 looks really cool. There's a basic plugin for NB6.x available @ http://www.wonderly.org/netbeans/ It's not full featured but it has the basics. It'd be nice to get an official one doing automatic check out of files on refactoring. I had a chat with G Wonderly that I want to share with you. I got his permission to do so: vvvvvvvv dklotz wrote: > First a thank you for everything you have done. I too am a java > developer and I stumbled upon your page when searching for a perforce > module to run on netbeans 6.1. http://www.wonderly.org/netbeans/ . > > I am going out on a limb here, but I bet you have been asked this many > times... Have you thought about working with the netbeans team to > publish your module? What I've tried to encourage is that all the hard work that is being put into SVN integration be abstracted so that arbitrary SCMs can be plugged in. I've also tried to stress the frustrations with the IDE in how it deals with read only files that I've not asked it to mess with. I.e it tries to reformat old project XML files to be compatible with new versions of the IDE, but doesn't prompt me to check them out so that it can do the work it wants to do. > It has been an extremely frustrating experience > trying to find perforce support for netbeans 6.1 and I happened to > stumble upon your page. Yet to be honest I haven’t put your module > into mainstream development use. I’ve tested it with 6.0.1 inside of a > virtual pc sandbox. I use it on 5.5 and 5.5.1. I have a bunch of other modules that I use regularly that need the JMI stuff which they stripped out with no replacement for in 6.0. > I think you would get much more exposure and praise (I hope) if we > could put your hard work somewhere within the netbeans.org framework. I really don't have too much time to chase after things. I tried to get some things going, but the team is always busy with much larger things, and I have enough OS projects that I lead, that these little tools really are at the bottom of my todo list. > If you have the time to reply with your thoughts and or findings I > would greatly appreciate it. Thanks for your note dklotz. It's nice to know that some people are finding and using it. G Wonderly ^^^^^^^^^ So here I am, trying to drum up support for adding his module into the fold or having a new module developed if possible. Regards, dklotz Has the netbeans team tried to contact partners@perforce.com for a partnership on this? They seem eager to help (see http://perforce.com/perforce/partners/index.html) and have worked w/ many other vendors to date (see http://perforce.com/perforce/products/ide_table.html) I emailed them (Perforce support) several months ago about this exact topic. Here's the reply I was given: "No, I'm not aware that we're developing such a Plug-In, internally. I've linked your name to an existing request, nonetheless. I also don't know whether any third-party is doing anything. I'll ask people@Perforce and let you know if there is an additional info." I never heard anything else. Honestly, this is incredibly frustrating to me as I know that Perforce is an extremely popular SCM tool that is well supported by the other IDEs (IDEA, Eclipse, Visual Studio, etc.), yet the support in NetBeans 6.x is virtually non-existent, particularly if you want coherent refactorings and other meta-operations. It was being actively worked by a few folks at Sun a few months ago. I looked at the work-in-progress and it definitely wasn't even close to ready for prime time...I think the developers of it didn't "get" Perforce vs. other SCMs such as CVS, SVN, etc. Evidently it was sent to Perforce for certification (which I assume it didn't receive) and then the project was abandoned. Sucks... Given my own experience with this issue and reading the replies here, I think we must be going about this the wrong way. First off, I am new to the netbeans.org process so take the following with a grain of salt. Is this bug marked appropriately? Is it in the right area? If I understand Mr. Wonderly correctly, some of the problems stem from the underlying architecture. Perhaps we need to nail those problems first? Meaning, do we need to create a bug addressing a design flaw/feature that will move us in a direction that makes implementing a Perforce plug-in achievable? I know...I ask a lot of questions... Thoughts? -dklotz I am just the messenger on this one, but someone posted to the nbdev list this morning saying that he is working on a NB Perforce plugin: http://code.google.com/p/heresylabs/source/browse/trunk/p4nb Please check a new version of the perforce plugin published by Gregg Wonderley at his web pages (http://www.wonderly.org/netbeans/). Released for 6.1+ platforms No plans to do that. |