Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Login and Auto Checkout not working #21

Open
chavab1 opened this issue May 18, 2017 · 9 comments
Open

Can't Login and Auto Checkout not working #21

chavab1 opened this issue May 18, 2017 · 9 comments

Comments

@chavab1
Copy link

chavab1 commented May 18, 2017

I know these issues have been reported before but most of them are at least 3 years old so I figured maybe my problem isn't related. I'm also getting an error that hasn't been reported.

First off I did all of the command line configurations. I had to set the required variables on the command line because no matter what I did I couldn't get P4 to recognize my configurations in my P4CONFIG. But I know they're set because I get the correct info when I run p4 info.

When I try to login to P4 on Sublime I get the following error in the console:


Traceback (most recent call last):
  File "./python3.3/subprocess.py", line 1104, in _execute_child
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\Sublime Text 3\Packages\Perforce\Perforce.py", line 995, in on_done
    p = subprocess.Popen(command, stdin=subprocess.PIPE,stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=global_folder, shell=True)            
  File "./python3.3/subprocess.py", line 819, in __init__
  File "./python3.3/subprocess.py", line 1110, in _execute_child
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect
Traceback (most recent call last):
  File "./python3.3/subprocess.py", line 1104, in _execute_child
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect

But then I realized that if I'm logged in to P4V then I don't get that error in Sublime when I attempt to login. Everything works then except for the auto checkout feature. I did some research and found out that I had to add the Perforce settings file. So I copied Perforce.sublime-settings file from the Perforce directory into my Sublime Text 3->Packages->User directory. But I still have the same problem. I'm thinking maybe that login problem is causing the auto checkout problem.

I wouldn't mind having to login to P4V before using Sublime as long as the auto-checkout feature worked.

Any help would be appreciated.

Thanx

@ericmartel
Copy link
Owner

Hi!

As you can tell, I haven't actively worked on this in ages

From your error message, I suspect your p4 executable isn't accessible from the command line. Can you try to open a command prompt and run p4.exe and see if it is found?

Thanks

Eric

@chavab1
Copy link
Author

chavab1 commented May 18, 2017 via email

@ericmartel
Copy link
Owner

ericmartel commented May 19, 2017 via email

@chavab1
Copy link
Author

chavab1 commented Jun 15, 2017

Sorry, I didn't notice you had replied.

What do I have to include there?

For "perforce_p4path" I added C:\\Program Files\\Perforce.
What do I have to include in "perforce_p4env"? I tried following the directions on this thread but I was unsuccessful. When I added the path to my P4CONFIG file I would get file is not under client root whenever I tried to manually checkout a file.

I mean now at least I don't get the login error message anymore but I still can't auto checkout items. I can manually check out some files. However I can only do it for random files. On some of them I get the message: Perfoce [warning]: File is already writeable. So I would assume the configuration is kind of working since it can communicate with my workspace. I was just hoping it could check out files automatically or at least if I have to do it manually it could work on all of them.

Thank you very much for your help.

Thanx

@chavab1
Copy link
Author

chavab1 commented Jul 13, 2017

I posted about the plugin only working at random times. I just found out when does it work.

For some reason it only auto checks out files that I haven't previously checked out. In those cases the plugin works perfectly. However, once I've checked in that file and done a submit, the auto checkout stops working on that file.

I'm fairly new to Perforce so I'm not sure where to look for a possible solution. Obviously Sublime is communicating with Perforce so the setup is correct. I just can't figure out why it only works on new files.

Any help would be appreciated.

Thanx

@ericmartel
Copy link
Owner

ericmartel commented Jul 17, 2017 via email

@chavab1
Copy link
Author

chavab1 commented Jul 17, 2017 via email

@ericmartel
Copy link
Owner

ericmartel commented Jul 17, 2017 via email

@chavab1
Copy link
Author

chavab1 commented Jul 18, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants