Author Topic: files opened from file system or search list are not recognized as in workspace  (Read 15555 times)

davecazz

  • Community Member
  • Posts: 17
  • Hero Points: 1
Hi, Here's another issue that just came up a few times. for some reason, if I open a file that is normally part of my workspace, from either the file system, open file dialog, or slickedit search panel, eclipse does not recognize it as part of my workspace and disables certain features (bookmarks, next/prev error)

Is there anyway to get around this?

davecazz

  • Community Member
  • Posts: 17
  • Hero Points: 1
Also, it seems like if I open a file from the search panel which is read only because it's not checked out, then check it out from perforce, when I move back to slickedit, it doesnt try and reopen it from the filesystem so it thinks it is still read only.

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Not too much luck reproducing either of these...

Quote
Hi, Here's another issue that just came up a few times. for some reason, if I open a file that is normally part of my workspace, from either the file system, open file dialog, or slickedit search panel, eclipse does not recognize it as part of my workspace and disables certain features (bookmarks, next/prev error)

I tried opening workspace files from an explorer window, the Open dialog, and the SlickEdit Search view and it let me create bookmarks each time.  Any chance these files aren't actually in your workspace?  Or there is any more information you can give me about this one?

Quote
Also, it seems like if I open a file from the search panel which is read only because it's not checked out, then check it out from perforce, when I move back to slickedit, it doesnt try and reopen it from the filesystem so it thinks it is still read only.

I mimicked this by opening a read only file from the Search view and then going to a command prompt and setting the write permission bit.  When I switched back to Eclipse/SlickEdit it is now writable in the editor. 

Are you using Core 3.4.0?  I ask because since it seems like you are manually checking out your files with Perforce, when there is a pretty good Perforce plug-in out there (http://www.perforce.com/perforce/products/p4wsad.html), which Core integrates with very nicely.  It will automatically check out your files for you when you go to edit them and they aren't checked out.  This might solve this problem for you...are you using this plug-in?

- Ryan

davecazz

  • Community Member
  • Posts: 17
  • Hero Points: 1
Thanks for checking into these for me. I am using 3.4.0, I looked at that plugin a while ago and didnt realize you could integrate it with slickedit, I thought you needed to use the perforce view to check out files. I will try this today.

About the opening files from search or the file system, I will check it again and see if I can reproduce it. the files are definately part of the workspace, I think I opened them by checking them out from perforce and then dragging them from perforce into the slickedit window. I will try and find better repro steps.

davecazz

  • Community Member
  • Posts: 17
  • Hero Points: 1
I justed installed p4wsad and I see that it's views can connect to my depot, but I dont see any options for checking out a file from slickedit. when I try and modify a read only file, I see the change rw button, and then the version control setup, but the version control setup button only brings me to the normal slickedit options window, I dont see any panels for setting up version control. I also dont see any shortcuts for checking a file out.

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
You shouldn't have to do anything to have Eclipse check out the file automatically...there is an option that (I thought should be turned on by default) should take care of it for you.  It's under the Preferences for P4WSAD...but I'm not at work right now and I can't remember exactly what it is  :-\.

Basically once you have this option checked (and if you are using the latest version of Core) and you try to modify a read only file, you'll get about a 1 second pause as Eclipse is checking out the file, and then it will become writable.  You should not have to mess with the version control setup in SlickEdit at all. 

dancap

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
I'm also having trouble with automatic Perforce checkouts ... I am seeing the behavior described by davecazz. I am using 3.4 and have the P4WSAD plugin installed correctly. I can do manual checkouts, but the auto-checkout feature is not working, and I couldn't find the option in Preferences you had alluded to.

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
"Enable support for Workbench edit, delete, rename, and refactoring operations" under Window > Preferences > Team > Perforce.

Does it not work when you use a normal Eclipse editor?  Or is that working fine?

- Ryan

dancap

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Yes, that Preference option was checked by default. No luck using either SlickEdit or the default Eclipse editor.

I am running Eclipse through Flex Builder 3 if that makes a difference.

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
If you can't get it working with the default Eclipse editor that's the first step...I have not tried that plug-in in conjunction with Flex Builder, but I can give it a go tomorrow when I get back to the office.

- Ryan


Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Re: files opened from file system or search list are not recognized as in worksp
« Reply #10 on: September 30, 2008, 03:15:26 PM »
P4WSAD seems to be working fine for me in Flex Builder 3.  Since you also aren't getting it to work even without the SlickEdit editor, I think something must be wrong with your project set up. 

This isn't really my area of expertise, but in whatever explorer view you use to view the structure of your project in Eclipse (Package Explorer, Flex Navigator, etc.), do you see the Perforce repository information in brackets next to the project name?  It should be like this: [Port;User;Client Workspace].

If you right-click on the project in this view, and select Properties > Perforce, is all the information there correct?

- Ryan

dancap

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
I figured it out ... there was a step I was missing in my Flex Builder project setup. I needed to right-click on my project and select Team > Share Project > Perforce. Verify the repo information and click Ok.

Then the project is associated with Perforce and the repo information appears like you described. From there, auto-checkout starting working ... all Perforce related commands are accessed by right-clicking on a file in the explorer view and accessing the Team submenu.

Thanks for the help, much appreciated.

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Ah...glad you figured that out because that would've taken me a while to remember :)

- Ryan