microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.09k stars 29.26k forks source link

Logging: `code-insiders --log` did not work for me. #164661

Closed karthiknadig closed 10 months ago

karthiknadig commented 2 years ago

Testing #164434

This command did not work for me code-insiders --log vscode.git:trace . but code-insiders . works. I verified that vscode.git is installed.

Version: 1.73.0-insider (system setup) Commit: a803dc359aa1ed48c7acf074dd81d6af1525c8c8 Date: 2022-10-25T05:18:55.889Z Electron: 19.0.17 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.19044 Sandboxed: Yes

sandy081 commented 2 years ago

It is working for me

image

May I know what is not working for you?

karthiknadig commented 2 years ago

code-insiders --log vscode.git:trace . does not launch at all for me. code-insiders . works, so something is up with using --log

sandy081 commented 2 years ago

can you please try code-insiders --verbose . and let me know what you see?

karthiknadig commented 2 years ago

code-insiders --verbose . the log was too long so attaching here: code-insider.verbose.log

code-insiders --verbose --log vscode.git:trace . this is what happens: image

karthiknadig commented 2 years ago

code-insiders --log trace . works, it is only the case with extensionid that fails. I tried with different extensions, it seems to fail with any extensionid.

sandy081 commented 2 years ago

@deepak1556 Your expertise is needed here. How can we know why code insiders is not launching with following command code-insiders --log vscode.git:trace . ?

vscodenpa commented 2 years ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

deepak1556 commented 2 years ago

We can first check if the cli script didn't encounter any exception and ended up calling into the main application, the signal for this would be to see if child_process.spawn call got triggered. @karthiknadig can you try the following, and copy any logs printed to the terminal after code-insiders command.

> $env:NODE_DEBUG="child_process"
> code-insiders --log vscode.git:trace .
karthiknadig commented 2 years ago

This is what I got:

CHILD_PROCESS 6288: normalizeSpawnArguments true
CHILD_PROCESS 6288: spawn {
  detached: true,
  env: {
    ALLUSERSPROFILE: 'C:\\ProgramData',
    APPDATA: 'C:\\Users\\Karthik Nadig\\AppData\\Roaming',
    ChocolateyInstall: 'C:\\ProgramData\\chocolatey',
    ChocolateyLastPathUpdate: '132447040559418390',
    CI_PYTHON_PATH: 'C:\\GIT\\s p\\vscode-python\\.venv\\Scripts\\python.exe',
    CommonProgramFiles: 'C:\\Program Files\\Common Files',
    'CommonProgramFiles(x86)': 'C:\\Program Files (x86)\\Common Files',
    CommonProgramW6432: 'C:\\Program Files\\Common Files',
    COMPUTERNAME: 'KANADIG-P1',
    ComSpec: 'C:\\WINDOWS\\system32\\cmd.exe',
    DriverData: 'C:\\Windows\\System32\\Drivers\\DriverData',
    HOMEDRIVE: 'C:',
    HOMEPATH: '\\Users\\Karthik Nadig',
    LOCALAPPDATA: 'C:\\Users\\Karthik Nadig\\AppData\\Local',
    LOGONSERVER: '\\\\KANADIG-P1',
    NODE_DEBUG: 'child_process',
    NUMBER_OF_PROCESSORS: '16',
    OneDrive: 'C:\\Users\\Karthik Nadig\\OneDrive - Microsoft',
    OneDriveCommercial: 'C:\\Users\\Karthik Nadig\\OneDrive - Microsoft',
    OneDriveConsumer: 'C:\\Users\\Karthik Nadig\\OneDrive',
    OS: 'Windows_NT',
    Path: 'C:\\Python310\\Scripts\\;C:\\Python310\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\ProgramData\\chocolatey\\bin;C:\\all_pys\\lean-3.4.2\\bin;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft VS Code Insiders\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\PuTTY\\;C:\\Program Files (x86)\\dotnet\\;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\Karthik Nadig\\.pyenv\\pyenv-win\\bin;C:\\Users\\Karthik Nadig\\.pyenv\\pyenv-win\\shims;C:\\Users\\Karthik Nadig\\.poetry\\bin;C:\\Users\\Karthik Nadig\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Karthik Nadig\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Karthik Nadig\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Karthik Nadig\\.dotnet\\tools;C:\\ProgramData\\Miniconda3\\condabin;C:\\Users\\Karthik Nadig\\AppData\\Roaming\\npm',
    PATHEXT: '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW',
    POWERSHELL_DISTRIBUTION_CHANNEL: 'MSI:Windows 10 Pro',
    PROCESSOR_ARCHITECTURE: 'AMD64',
    PROCESSOR_IDENTIFIER: 'Intel64 Family 6 Model 158 Stepping 13, GenuineIntel',
    PROCESSOR_LEVEL: '6',
    PROCESSOR_REVISION: '9e0d',
    ProgramData: 'C:\\ProgramData',
    ProgramFiles: 'C:\\Program Files',
    'ProgramFiles(x86)': 'C:\\Program Files (x86)',
    ProgramW6432: 'C:\\Program Files',
    PROMPT: '$P$G',
    PSModulePath: 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules',
    PUBLIC: 'C:\\Users\\Public',
    PYENV: 'C:\\Users\\Karthik Nadig\\.pyenv\\pyenv-win',
    PYENV_HOME: 'C:\\Users\\Karthik Nadig\\.pyenv\\pyenv-win',
    SystemDrive: 'C:',
    SystemRoot: 'C:\\WINDOWS',
    TEMP: 'C:\\Users\\KARTHI~1\\AppData\\Local\\Temp',
    TMP: 'C:\\Users\\KARTHI~1\\AppData\\Local\\Temp',
    USERDOMAIN: 'KANADIG-P1',
    USERDOMAIN_ROAMINGPROFILE: 'KANADIG-P1',
    USERNAME: 'Karthik Nadig',
    USERPROFILE: 'C:\\Users\\Karthik Nadig',
    VSCODE_CLI: '1',
    VSCODE_CWD: 'C:\\GIT\\repro\\lint1',
    windir: 'C:\\WINDOWS',
    WSLENV: 'WT_SESSION::WT_PROFILE_ID',
    WT_PROFILE_ID: '{0caa0dad-35be-5f56-a8ff-afceeeaa6101}',
    WT_SESSION: 'd1dcfc25-965a-4dc0-ae8d-6fe7c388dba0',
    ELECTRON_NO_ATTACH_CONSOLE: '1'
  },
  stdio: 'ignore',
  args: [
    'C:\\Program Files\\Microsoft VS Code Insiders\\Code - Insiders.exe',
    '--log',
    'vscode.git:trace',
    '.'
  ],
  cwd: undefined,
  envPairs: [
    'ALLUSERSPROFILE=C:\\ProgramData',
    'APPDATA=C:\\Users\\Karthik Nadig\\AppData\\Roaming',
    'CI_PYTHON_PATH=C:\\GIT\\s p\\vscode-python\\.venv\\Scripts\\python.exe',
    'COMPUTERNAME=KANADIG-P1',
    'ChocolateyInstall=C:\\ProgramData\\chocolatey',
    'ChocolateyLastPathUpdate=132447040559418390',
    'ComSpec=C:\\WINDOWS\\system32\\cmd.exe',
    'CommonProgramFiles=C:\\Program Files\\Common Files',
    'CommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files',
    'CommonProgramW6432=C:\\Program Files\\Common Files',
    'DriverData=C:\\Windows\\System32\\Drivers\\DriverData',
    'ELECTRON_NO_ATTACH_CONSOLE=1',
    'HOMEDRIVE=C:',
    'HOMEPATH=\\Users\\Karthik Nadig',
    'LOCALAPPDATA=C:\\Users\\Karthik Nadig\\AppData\\Local',
    'LOGONSERVER=\\\\KANADIG-P1',
    'NODE_DEBUG=child_process',
    'NUMBER_OF_PROCESSORS=16',
    'OS=Windows_NT',
    'OneDrive=C:\\Users\\Karthik Nadig\\OneDrive - Microsoft',
    'OneDriveCommercial=C:\\Users\\Karthik Nadig\\OneDrive - Microsoft',
    'OneDriveConsumer=C:\\Users\\Karthik Nadig\\OneDrive',
    'PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW',
    'POWERSHELL_DISTRIBUTION_CHANNEL=MSI:Windows 10 Pro',
    'PROCESSOR_ARCHITECTURE=AMD64',
    'PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 13, GenuineIntel',
    'PROCESSOR_LEVEL=6',
    'PROCESSOR_REVISION=9e0d',
    'PROMPT=$P$G',
    'PSModulePath=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules',
    'PUBLIC=C:\\Users\\Public',
    'PYENV=C:\\Users\\Karthik Nadig\\.pyenv\\pyenv-win',
    'PYENV_HOME=C:\\Users\\Karthik Nadig\\.pyenv\\pyenv-win',
    'Path=C:\\Python310\\Scripts\\;C:\\Python310\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\ProgramData\\chocolatey\\bin;C:\\all_pys\\lean-3.4.2\\bin;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft VS Code Insiders\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\PuTTY\\;C:\\Program Files (x86)\\dotnet\\;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\Karthik Nadig\\.pyenv\\pyenv-win\\bin;C:\\Users\\Karthik Nadig\\.pyenv\\pyenv-win\\shims;C:\\Users\\Karthik Nadig\\.poetry\\bin;C:\\Users\\Karthik Nadig\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Karthik Nadig\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Karthik Nadig\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Karthik Nadig\\.dotnet\\tools;C:\\ProgramData\\Miniconda3\\condabin;C:\\Users\\Karthik Nadig\\AppData\\Roaming\\npm',
    'ProgramData=C:\\ProgramData',
    'ProgramFiles=C:\\Program Files',
    'ProgramFiles(x86)=C:\\Program Files (x86)',
    'ProgramW6432=C:\\Program Files',
    'SystemDrive=C:',
    'SystemRoot=C:\\WINDOWS',
    'TEMP=C:\\Users\\KARTHI~1\\AppData\\Local\\Temp',
    'TMP=C:\\Users\\KARTHI~1\\AppData\\Local\\Temp',
    'USERDOMAIN=KANADIG-P1',
    'USERDOMAIN_ROAMINGPROFILE=KANADIG-P1',
    'USERNAME=Karthik Nadig',
    'USERPROFILE=C:\\Users\\Karthik Nadig',
    'VSCODE_CLI=1',
    'VSCODE_CWD=C:\\GIT\\repro\\lint1',
    'WSLENV=WT_SESSION::WT_PROFILE_ID',
    'WT_PROFILE_ID={0caa0dad-35be-5f56-a8ff-afceeeaa6101}',
    'WT_SESSION=d1dcfc25-965a-4dc0-ae8d-6fe7c388dba0',
    'windir=C:\\WINDOWS'
  ],
  file: 'C:\\Program Files\\Microsoft VS Code Insiders\\Code - Insiders.exe',
  windowsHide: false,
  windowsVerbatimArguments: false
}

C:\GIT\repro\lint1>
vscodenpa commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

karthiknadig commented 1 year ago

@deepak1556 @sandy081 This seems to be closed automatically. I have provided the re-quested logs.

vscodenpa commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

sandy081 commented 1 year ago

CC @deepak1556

sandy081 commented 1 year ago

@deepak1556 Can you please check this comment

deepak1556 commented 10 months ago

Side-effect of https://github.com/microsoft/vscode/issues/188769, this should be addressed with latest insiders.