Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
This is to let you know that I've just released a plug-in for the Perforce source control system. This is fairly bare-bones, but it does support Checkout, Add, Delete and Revert. Also, when you start typing in a file, it is automatically checked out.
The plugin requires you to have the p4.exe file in your %PATH% somewhere. And note that since I'm only using the Unicode version of Notepad++ these days, I have not tested the Ansi version.
Thanks to davegb3 for hosting it and for help with the release.
Thank you! This works very well for me :-)
Sven Erik Knop
well done for creating and releasing this plugin. You beat me by 3 weeks :-)
**I have a few comments:**
I have created a very similar plugin that uses the P4API instead of executing P4, which has the advantage that you do not depend on P4.exe being the PATH. Would you mind me publishing this plugin on this forum as well?
My version has a couple of additional extras:
1. It sets the current working directory to where the current file is in. This makes sure that P4CONFIG is picked up - useful if you have more than one workspace.
2. I have hacked the refresh operation of Notepad++, so the file status changes smoothly and securely.
3. Additional functionalities
I can send you the source if you are interested.
Can anyone help me with setting the Path on WinXP? I have tried a few additions to my Env Variables>Sys Variables _Path_, but not functioning as described in Notepad++ or Perforce.
Doesn't work for me : Nothing happens when I try to edit a "not checked out" file. If I try to check it out from the menu, nothing happens and the file isn't added to my change list.
P4.exe is in my path.
seknop : Can I test your plugin?
Sven Erik Knop
magicone-fr: Of course you can:
You can also have a look at my blog entry on this plug-in here:
Your version is working perfectly. Thank you very much sknop.
Sven Erik Knop
You are very welcome. Enjoy the plug-in.
I tried both the plugins mentioned in this thread, but none of them worked for me. The thing is in my case the host-name for perforce is not "perforce:1666", it is something else. So whenever I try to select any action in your plugin it gives me an error window saying:
Connect to server failed; check $P4PORT.
TCP connect to perforce failed.
perforce: host unknown.
A configuration screen for this plugin would be really nice where we can set up all those things. Any plans on doing that?
Thanks in advance
That was me in the previous comment. Logged in with gmail so it was not showing my name up there.
The Notepad++ plugin was designed to work seamlessly with a standard Perforce environment.
You will need to set up your environment to work with Perforce before you can use the plugin. The easiest way to do so is to run 'p4 set' from the command line:
p4 set P4PORT=yourserver:port # for example, server:1666
p4 set P4USER=youruser # for example, manu
p4 set P4CLIENT=yourworkspace # for example, manu_work
Alternatively, you can use P4CONFIG if you have more than one workspace. The details are described in the Perforce documentation here:
Let me know if you need any more details or if you have any additional questions.