New Perforce plugin delayed

Few days ago I promised to release a new version (non-VCS) in a few days.
Trying to distribute my time among my family, job and this work, Perforce
didn't get enough time assigned and may need few more days to collect
enough work hours to get finished (at least some consistent functionality).

Will notify upon any changes.

Richard


18 comments

Don't rush. I'd rather have quality than timeliness. I've gone this long
without a Perforce Plug-in (years it seems!) I can wait a few more days or
weeks :)

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:b57drp$4j2$1@is.intellij.net...

Few days ago I promised to release a new version (non-VCS) in a few days.
Trying to distribute my time among my family, job and this work, Perforce
didn't get enough time assigned and may need few more days to collect
enough work hours to get finished (at least some consistent

functionality).
>

Will notify upon any changes.

>

Richard

>
>


0

OK, just posted the plugin:
http://www.intellij.org/twiki/bin/view/Main/PerforceDirectPlugin

Notes (more of them see on the plugin page)
- auto-add functionality not implemented (just manual Add) - the listener
would add everything and I have to find simple and intuitive (and
working!)
way to add just user-created files.
- in Move, Rename and Delete some prompts may appear twice
(stupid workaround for the Messages problem - see my other post
in the API newsgroup)
- the biggest warning - this is not IDEA VCS API based plugin - you may turn
the LVCS on or off - I don't care :)
- please try also some unusual/rare situation (like moving files accross
clientspecs etc.)

Please, consider this beta version (v0.9) - after I get enough feedback
I'll fix all fixable bugs
and release v1.0.

Richard


0

Forgot to say:
- tested only on IDEA 3.0.2 so far - will try 807 later

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:b5vkk8$h3p$1@is.intellij.net...

OK, just posted the plugin:
http://www.intellij.org/twiki/bin/view/Main/PerforceDirectPlugin

>

Notes (more of them see on the plugin page)
- auto-add functionality not implemented (just manual Add) - the listener
would add everything and I have to find simple and intuitive (and
working!)
way to add just user-created files.
- in Move, Rename and Delete some prompts may appear twice
(stupid workaround for the Messages problem - see my other post
in the API newsgroup)
- the biggest warning - this is not IDEA VCS API based plugin - you may

turn

the LVCS on or off - I don't care :)
- please try also some unusual/rare situation (like moving files accross
clientspecs etc.)

>

Please, consider this beta version (v0.9) - after I get enough feedback
I'll fix all fixable bugs
and release v1.0.

>

Richard

>
>


0

Just posted an update - 0.9.1:
- few exceptions fixed (during renaming just added file)
- auto-add feature implemented - let me know whether you like it that way.

r.

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:b5vkk8$h3p$1@is.intellij.net...

OK, just posted the plugin:
http://www.intellij.org/twiki/bin/view/Main/PerforceDirectPlugin

>

Notes (more of them see on the plugin page)
- auto-add functionality not implemented (just manual Add) - the listener
would add everything and I have to find simple and intuitive (and
working!)
way to add just user-created files.
- in Move, Rename and Delete some prompts may appear twice
(stupid workaround for the Messages problem - see my other post
in the API newsgroup)
- the biggest warning - this is not IDEA VCS API based plugin - you may

turn

the LVCS on or off - I don't care :)
- please try also some unusual/rare situation (like moving files accross
clientspecs etc.)

>

Please, consider this beta version (v0.9) - after I get enough feedback
I'll fix all fixable bugs
and release v1.0.

>

Richard

>
>


0

I was playing with the new plugin (0.9) today (on Win2K with IDEA 3.0.2). It
looks great!

Comments:

- I renamed a class, but some of its subclasses were not already checked
out. The plugin didn't automatically check those files out. I seem to
remember some discussion about this but I didn't see anything about it in on
the wiki page.

- When I right-clicked on the classes in the refactoring preview, I didn't
get the Perforce menu (to allow me to check a file out). Is that on the
future feature list? (Or maybe it's not needed if the problem above is
fixed.)


Erik


0

I knew I forgot something to write...

I don't know about any way to:
- add something to the context menu in the search (and similar) windows
- auto-checkout when replacing/renaming in files
(that is subject of the request we voted for)

However, this is what you can do:
- in the search window go to the root (or select any files)
and hit Ctrl-Alt-E - that should checkout all selected files

Hopefully, I will not forget to add it to the plugin page.

r.

BTW, I strongly suggest to switch to 0.9.1.


"Erik Hanson" <ehanson@comsys.com> wrote in message
news:b62630$ng5$1@is.intellij.net...

I was playing with the new plugin (0.9) today (on Win2K with IDEA 3.0.2).

It

looks great!

>

Comments:

>

- I renamed a class, but some of its subclasses were not already checked
out. The plugin didn't automatically check those files out. I seem to
remember some discussion about this but I didn't see anything about it in

on

the wiki page.

>

- When I right-clicked on the classes in the refactoring preview, I didn't
get the Perforce menu (to allow me to check a file out). Is that on the
future feature list? (Or maybe it's not needed if the problem above is
fixed.)

>
>

Erik

>
>


0

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:b626lb$okl$1@is.intellij.net...

BTW, I strongly suggest to switch to 0.9.1.


Done. I'm now trying 0.9.1 with IDEA 809.

When I choose "Edit" from the "Perforce" window, then try to edit the file,
I get a message that says: "File status in Perforce suggests it should not
be readonly..."

Then IDEA tells me there is an internal error. The log entry is attached.
I'll try it with IDEA 3.0.2 now.

- - - - -

2003-03-28 11:30:22,133 ERROR - plication.impl.ApplicationImpl -
Assertion failed: Write access is allowed inside write-action only (see
com.intellij.openapi.application.Application.runWriteAction())
2003-03-28 11:30:22,143 ERROR - plication.impl.ApplicationImpl -
IntelliJ IDEA (Aurora) Build #809
2003-03-28 11:30:22,143 ERROR - plication.impl.ApplicationImpl -
JDK: 1.4.1_02
2003-03-28 11:30:22,143 ERROR - plication.impl.ApplicationImpl -
VM: Java HotSpot(TM) Client VM
2003-03-28 11:30:22,143 ERROR - plication.impl.ApplicationImpl -
Vendor: Sun Microsystems Inc.
2003-03-28 11:30:22,143 ERROR - plication.impl.ApplicationImpl -
OS: Windows 2000
2003-03-28 11:30:22,143 ERROR - plication.impl.ApplicationImpl -
Last Action: EditorEnter
2003-03-28 11:30:22,143 ERROR - plication.impl.ApplicationImpl -
Current Command: Enter
2003-03-28 11:30:22,143 ERROR - plication.impl.ApplicationImpl -
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:102)
at
com.intellij.openapi.application.b.e.assertWriteAccessAllowed(e.java:160)
at com.intellij.openapi.vfs.b.b.bi.refresh(bi.java:97)
at com.intellij.openapi.vfs.b.m.refresh(m.java:104)
at
com.rne.perforce.PerforceListeners$3.readOnlyModifactionAttempt(PerforceList
eners.java:184)
at com.intellij.openapi.vfs.b.m.fireReadOnlyModificationAttempt(m.java:148)
at com.intellij.openapi.fileEditor.b.t.a(t.java:0)
at
com.intellij.openapi.editor.a.p.fireReadOnlyModificationAttempt(p.java:191)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(Ed
itorWriteActionHandler.java:6)
at
com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.jav
a:1)
at com.intellij.openapi.command.b.b.executeCommand(b.java:40)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(Editor
Action.java:12)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(Editor
Action.java:5)
at com.intellij.openapi.a.c.e.a(e.java:91)
at com.intellij.openapi.a.c.e.b(e.java:80)
at com.intellij.openapi.a.c.e.a(e.java:110)
at com.intellij.ide.t.dispatchEvent(t.java:78)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2003-03-28 11:30:28,222 INFO - lij.localVcs.impl.LocalVcsImpl -
enter: save(repositorySize=39)


0

I can't seem to add a file that's been previously deleted from P4. (IDEA
3.0.2, PDP 0.9.1.)

(No big deal; I can add it manually.)


0

"Erik Hanson" <ehanson@comsys.com> wrote in message
news:b6286n$sak$1@is.intellij.net...

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:b626lb$okl$1@is.intellij.net...

BTW, I strongly suggest to switch to 0.9.1.

>

Done. I'm now trying 0.9.1 with IDEA 809.

>

When I choose "Edit" from the "Perforce" window, then try to edit the

file,

I get a message that says: "File status in Perforce suggests it should not
be readonly..."

>

Then IDEA tells me there is an internal error. The log entry is attached.
I'll try it with IDEA 3.0.2 now.


Works fine in 3.0.2...


Erik


0

Will fix in 1.0 (or earlier, if there will be other pre-1.0 versions).
r.

"Erik Hanson" <ehanson@comsys.com> wrote in message
news:b628d4$slu$1@is.intellij.net...

I can't seem to add a file that's been previously deleted from P4. (IDEA
3.0.2, PDP 0.9.1.)

>

(No big deal; I can add it manually.)

>
>


0

"Edit" from the "Perforce" window, then try to edit the file,
I get a message that says: "File status in Perforce suggests it should

not

be readonly..."


I'll have to investigate more... will let you know...

r.


0

Should be fixed in 0.9.2.
r.

"Erik Hanson" <ehanson@comsys.com> wrote in message

I can't seem to add a file that's been previously deleted from P4. (IDEA
3.0.2, PDP 0.9.1.)



0

VirtualFile refresh behaves differently in 807+
Ver. 0.9.2 contains some fix that should help.
r.

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:b62bmk$3p9$1@is.intellij.net...

"Edit" from the "Perforce" window, then try to edit the file,
I get a message that says: "File status in Perforce suggests it should

not

be readonly..."

>

I'll have to investigate more... will let you know...

>

r.

>
>


0

I haven't thoroughly put it through its paces yet, but it's been performing
flawlessly in my every day casual usage.

Thanks very much for this!!

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:b63cqf$te2$1@is.intellij.net...

Should be fixed in 0.9.2.
r.

>

"Erik Hanson" <ehanson@comsys.com> wrote in message

I can't seem to add a file that's been previously deleted from P4.

(IDEA

3.0.2, PDP 0.9.1.)

>
>


0

Thanks, these are the words every developer needs (time to time).
:)
I'll release official v1.0 soon (=few days).

r.

"Paul Bradshaw" <pbradshaw@vignette.com> wrote in message
news:b6hril$o37$1@is.intellij.net...

I haven't thoroughly put it through its paces yet, but it's been

performing

flawlessly in my every day casual usage.

>

Thanks very much for this!!



0

Thanks a lot for this highly expected plugin.

It works well for me, it just lacks the support for 'move package', i.e. when I right click on a package in the project pane and select 'move', it complains that the files are read-only but does not offer to open them for edit.

Move at class level works well at least for one class, if you select several class to move and the files are read-only it proposes only to open for edit the first file ignoring the others.

0

It works well for me, it just lacks the support for 'move package',
i.e. when I right click on a package in the project pane and select

'move',

it complains that the files are read-only but does not offer to open them

for edit.

I plan to add 'package/directory rename/move' after v1.0.
It contains too many subtle options that can go wrong.
If there is general feeling that this is the highest priority, I'd like to
know about that.

Move at class level works well at least for one class,
if you select several class to move and the files are read-only
it proposes only to open for edit the first file ignoring the others.


This is known IDEA behavior and I know no better way other than wait for
this bug to be fixed... Uh-oh, I cannot find it... Will ask, and perhaps
file
a new one.

Note that after the fist file is checked-out, the move/rename doesn't
finish.
The problem is that IDEA doesn't call ModificationAttemptListener when it
tries
e.g. move classes and so when they are read-only, the whole operation
fails. But, it still tries to modify the first class (and our auto-checkout
will
make it R/W) but that's all.

The best thing I can suggest now, is to checkout the files (or whole
package)
- Alt-1, select package, Ctrl-Alt-E
Then move the files
- Alt-1, select files with shift-arrow, F6
This should work.

r.



0

Thanks for the suggested workaround, it is still better than doing all manually

0

Please sign in to leave a comment.