vscode-perforce icon indicating copy to clipboard operation
vscode-perforce copied to clipboard

Can't get it work

Open iccicci opened this issue 4 years ago • 5 comments

Hi all,

from my settings.json

  "perforce.addOnFileCreate": true,
  "perforce.editOnFileModified": true,
  "perforce.bottleneck.maxConcurrent": 0,
  "perforce.bottleneck.penalty": 0,
  "perforce.client": "192.168.168.4",
  "perforce.user": "tlm_dricci",
  "perforce.port": "1666",
  "perforce.password": "********",
  "perforce.editOnFileSave": true,
  "perforce.activationMode": "always",
  "perforce.command": "p4",
  "perforce.realpath": true

from my terminal inside VSCode

> p4 info
User name: tlm_dricci
Client name: DESKTOP-2NHE0U0
Client host: DESKTOP-2NHE0U0
Client unknown.
Current directory: c:\....
Peer address: 192.168.193.32:57026
Client address: 192.168.193.32
Server address: my.customer.com:1666
Server root: /var/lib/perforce/main
Server date: 2020/05/19 15:09:57 -0400 EDT
Server uptime: 73:20:31
Server version: P4D/LINUX26X86_64/2019.1/1796703 (2019/04/30)
ServerID: megaperforce-20171002
Server services: standard
Server license: MyCustomer, Inc. 90 users (support ends 2021/02/24) (expires 2020/07/05)
Server license-ip: 192.168.168.4:1666
Case Handling: sensitive
>

The Perfoce Log (top down menu on right) in the OUTPUT is completely empty.

From the README.md

Q: Something is not working A: Here are a few steps you should try first:

  1. Look at the logs with Perforce: Show Output
  2. Search the existing issue on GitHub
  3. If you can't find your problem, create an issue, and please include the logs when possible

Pressing <ALT> + P L I get following message command 'perforce.showOutput' not found. After seeking from closed issues I wasn't able to make it work anyway. I have to fallback on answer nr. 3 :(

Thank you, iCC

iccicci avatar May 19 '20 19:05 iccicci

perforce.command can you try setting it to your perforce installation

Configure a path to p4 or an alternate command if needed

BaankeyBihari avatar May 28 '20 13:05 BaankeyBihari

@iccicci your vscode setting "perforce.client" should map to your p4 info "Client name", in this case DESKTOP-2NHE0U0

stef-levesque avatar May 29 '20 20:05 stef-levesque

Thanks @BaankeyBihari and @stef-levesque ,

updated as suggested, now my settings.json looks like follows, but exactly as before 😞

  "perforce.addOnFileCreate": true,
  "perforce.editOnFileModified": true,
  "perforce.bottleneck.maxConcurrent": 0,
  "perforce.bottleneck.penalty": 0,
  "perforce.client": "DESKTOP-2NHE0U0",
  "perforce.user": "tlm_dricci",
  "perforce.port": "1666",
  "perforce.password": "******",
  "perforce.dir": "C:\\Workspace",
  "perforce.editOnFileSave": true,
  "perforce.activationMode": "always",
  "perforce.command": "C:\\Program Files\\Perforce\\p4.exe",
  "perforce.realpath": true

The fact I can't get not errors nor any output is making me going crazy! 😥

In log tab Log (Extension Host) I can find following lines, so it seems VSCode at least tries to load the extension... but nothing more seems to happen

[2020-06-03 14:39:24.523] [exthost] [info] ExtensionService#_doActivateExtension slevesque.perforce {"startup":true,"extensionId":{"value":"slevesque.perforce","_lower":"slevesque.perforce"},"activationEvent":"*"}
[2020-06-03 14:39:24.523] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/danie/.vscode/extensions/slevesque.perforce-3.2.0/out/src/extension

iccicci avatar Jun 03 '20 12:06 iccicci

@iccicci not sure if this will fix your problem, but the perforce.port setting typically includes the full address - i.e. according to your p4 info, it would be my.customer.com:1666.

AZ2Tonez avatar Jun 15 '20 17:06 AZ2Tonez

Alredy tried @AZ2Tonez 😞

Thank you for the try

iccicci avatar Jun 15 '20 18:06 iccicci