Start perforce checkout from command line - perforce

I try to achieve a checkout from command line by using perforce helix.
It works with p4 edit.
But what i want is to open the regular window when you right click on files and click "checkout".
p4vc can open many window but what is the argument for this checkout window ?
Thank you.

The window you're talking about is just P4V; there's no stand-alone dialog for that.

Related

Sublime Text "Unable to save"

I didnt change any file paths and everything was working fine. I made one quick change saved it ok, did another change and I went to save it and got the following error. How can I solve this. It will save other files ok
Unable to save
D:\xampp\htdocs\websites\dev.liverpool\style\main.scss
Error:
MoveFileEx(D:\xampp\htdocs\websites\dev.liverpool\style\.sublae1.tmp, D:\xampp\htdocs\websites\dev.liverpoolzstylezmain.scss) failed,
Access is denied.
seems it's because Windows or another program is blocking the file. Sublime text uses a temporal file instead of editing the file directly, and when you save the file uses a API command to move this edited file to the original, so this command has restrictions when one file is locked and Sublime shows this alert.
Maybe this setting {"atomic_save": false} will work for you.
Go to the path where you installed sublime text 2 and...
Right click on the sublime_text 2.exe file.
Go to its properties.
Go to compatibility section under this.
Set its privilege level to "Run this program as an administrator".
Now change settings for all users and there also check the field "Run this program as an administrator".
Apply the changes.
I just solved the same issue on Sublime Text 3 beta, Stable Channel Build 3065 by doing the following under Windows 7:
Navigate to the Sublime Text 3 executable file, wherever you have it installed.
Right-click it and select properties.
Click on the tab marked "Security"
About half way down the tab, on the right hand side, under the list of group and user names is this little button:
Click it.
If your machine is setup the way I suspect it is (otherwise you probably would not be having this issue), you should be prompted for your administrator account credentials. Enter them.
Now, select the Users group in the list, then take a look in the box at the bottom labeled 'Permissions for Users'. Put a check mark in the 'Allow' column for the 'Write' item.
Click 'Apply'
Click 'OK'
You should be set. What this does is it essentially gives Sublime the ability to write files while running with regular user privileges, no administrator level access required. Upon taking a better look at your error, what is happening is Sublime Text is creating a temp file for editing, rather than editing to file itself, then attempting to overwrite the original file with the temp on save. The problem is that the program is not being run by a user with sufficient privileges to perform the overwrite, hence the failure with an 'Access denied' message.
A simple and effective solution: Right-click on the file you want to save, in my case it is index.html, go to the properties and uncheck read-only.
The Sublime text will start working fine.
I have come across this error quite many times and by un-checking read-only file attribute of index.html, I am able to get rid of it
I found out more ways to fix this:
Close and reopen the Sublime Text windows or
Open the file with Np++, add a space, save, quit, then you're prompted by ST to reload the file, click yes, and it works again... or
Open the FTP console to see if there's a transaction in progress - then cancel it
In my case the SFTP plugin seems to be causing this problem, as when the FTP connection is timed out, the file which is waiting to be uploaded is being used, and you try to overwrite it.
This happens because you're using ScoutApp or Compass, they block your SCSS files because they are checking for changes as you specified for a directory for those files.
I suggest you reading this:
http://aspirecode.com/how-to-add-sass-support-in-sublime-text/
Good luck!
On mac using a remote volume sometimes I experience this. The solution is to remove the temp file then save again and all fixed.
IE: if you are working on test.html then the temp file would be ._test.html
Remove ._test.html then save again.
For Mac-
Try changing the destination from 'Macintosh HD' to 'Documents' or any other folder.
Worked for me.
The plugin of Superlime solved this problem. It tries to save the file as root in SublimeText.
Reference Link: https://github.com/azubr/Superlime
Try switching your SublimeText process priority to higher level in process manager (it has to have higher priority than your scss compiling app, if you're using one).
It seems to have worked for me.
if it's not working after doing all suggestions, reinstall the program
On Mac I saved the file in Home directory and it gave me this alert, later when I re saved the file again this time in Document directory the file is working now. Using SublimeText 3.
I found this occurred when the folders are read-only. Right-click on the folders where your site is contained and see if read-only is selected in the properties.
Just open it as an administrator.
Because I want to edit anything and write as admin all the time, I set this program to always open as an administrator using "Configure Applications to Always Run as an Administrator".
Just got your file folder properties which you want to save and deselect to read only attribute.

Shortcut for reload jscript file

I am using notepad++ for jscript file editing and TestComplete for automation testing which uses the JScript files, but every time i exit and start the TestComplete whenever i change anything in Jscript file.
is there any short-cut-Key to reload without closing the TestComplete.
So, you are creating a script extension. Thank you for clarification. I have checked the Tools | Customize Keyboard... dialog and there is no a possibility to assign a shortcut to the Reload Script Extensions action. So, you can do this only by manually clicking the Reload button in the Script Extensions dialog. The Alt-F-E shortcut just opens this dialog (File | Install Script Extensions...).
http://www.philnicholas.com/2009/05/11/reloading-your-javascript-without-reloading-your-page/
This page explains what you're looking for, I think. All you need to do is change the event to when ur shortcut key is pressed.

How can I open nautilus with given location with selection

We can open Nautilus with given directory in Terminal like:
nautilus /home/jeeeyul/workspace
However, I want to open "/home/jeeeyul" and select "workspace" and reveal it rather than open "workspace" directory.
Can I do this from Terminal?
I do not know if this was recently added but you can open a folder's parent and select it using the following method:
nautilus -s /home/jeeeyul/workspace
This will open nautilus in the /home/jeeeyul/ path and with the workspace folder selected.
Just wanted to add this in case anyone else was still searching for a solution.
Nautilus can open the parent folder of workspace, but includes no option to control selection.
The only possible option I can think of is xdotool, which can emulate mouse and keyboard events within a window.
For mouse, if you can predict where the workspace icon or list item will be located within the Nautilus window, you can open the window with specific dimensions using --geometry, then use xdotool to cause a mouse click at that location. If you have trouble predicting the location, you can perhaps rename workspace to something that will appear at the top of a list, and have Nautilus sort items by name ... then rename it back after the click.
Keyboard might be a better option. You could use xdotool to send keyboard commands and/or type things in the Nautilus window that would force the selection. You'd need to experiment as to how. (I don't know what version of Nautilus you're using, or what other files might be in that folder.)
These solutions are hardly ideal. With any luck, someone else with more in-depth knowledge of Gnome will post something exceeding clever.
Yes, you can do this using terminal. After you start terminal, you have to switch user you can use sudo -i for switch as root user and then use nautilus.

p4v cannot see the default tree in pending tab

I am new to P4V (perforce) while working with this, i cannot see the default folder in pending tab as i cannt drag any files for editing.
Thanks
Have you created a workspace? Open workspaces tab > right click.
Also make sure your connection is set up properly.

VIM Project and Tabs

Is there a possibility to combine the Project Plugin with Tabs?
If i open a file in my Project Explorer, i want to open it in a new tab ... :)
You have to hack this plugin yourself (I do not think it would be difficult) or email the author and kindly ask him to do it.
I would also suggest NERDTree as a Project replacement (it can open files in tabs).
For open file of project in other tab use
Leader T
\T
I was having the same issue. For now I'vee learned to use buffers.
To expand on the buffers post above, when you open a new file the Project plugin hides the previous file but it is still an active buffer. ':ls' will list the buffers, switch to a buffer with ':b #' where # is the number of the buffer or split the screen and open a buffer with ':sb #'. Not quite as convenient as tabs but it works until a better solution comes up.
If you open a new buffer window, you can click to open in that buffer.
If you have macVim or gVim of some sort, you can open a finder/explorer window at the project's tree and drag and drop files into windows/tabs.
I had this same desire, so I created a portable configuration called Vim.ana.
It doesn't have many opinions that you can't change easily in the .vimrc
Sauce on layout at the project homepage

Resources