microsoft / vscode

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

macos Catalina: when starting vscode from the command line, I get output to both stdout and stderr #111556

Closed illbebach closed 1 year ago

illbebach commented 3 years ago

When I start code from the command line, I get a lot of output. I have never seen any such output on WSL, Windows 10, or Linux.

$ code .bash_profile 
[main 2020-12-01T03:33:18.807Z] update#setState idle
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
(node:25689) Electron: Loading non-context-aware native module in renderer: '/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
(node:25689) Electron: Loading non-context-aware native module in renderer: '/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
(node:25734) Electron: Loading non-context-aware native module in renderer: '/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
2020-11-30 21:33:24.465 Code Helper (Renderer)[25689:5561253] CoreText note: Client requested name ".NewYork-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-11-30 21:33:24.465 Code Helper (Renderer)[25689:5561253] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2020-11-30 21:33:24.470 Code Helper (Renderer)[25689:5561253] CoreText note: Client requested name ".NewYork-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
[main 2020-12-01T03:33:48.813Z] update#setState checking for updates
[main 2020-12-01T03:33:49.205Z] update#setState idle

Steps to Reproduce:

  1. keyin code from bash in either Terminal or iTerm2

Furthermore, the following commands produce no output

  1. keyin code --version
  2. keyin code --help

Does this issue occur when all extensions are disabled?: Yes/No

yes

vscodebot[bot] commented 3 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

illbebach commented 3 years ago

FYI, I renamed ~/.vscode, removed and downloaded vscode anew. No changes in the behavior described above.

Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-11T01:11:34.018Z (2 wks ago)
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 19.6.0
AbelNavarro commented 3 years ago

Same happens to me on Windows 10 when using Windows Terminal.

kocho1984 commented 2 years ago

Same issue on macOS Monterey.

[main 2022-06-10T00:03:38.513Z] Starting extension host with pid 31190 (fork() took 1 ms). [main 2022-06-10T00:03:45.491Z] Extension host with pid 31190 exited with code: 0, signal: null. 2022-06-10 02:03:45.711 Code Helper (Renderer)[31188:1137537] CoreText note: Client requested name ".NewYork-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:]. 2022-06-10 02:03:45.711 Code Helper (Renderer)[31188:1137537] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug. [main 2022-06-10T00:03:45.885Z] Starting extension host with pid 31216 (fork() took 0 ms).

deepak1556 commented 1 year ago

Logs are from the runtime and cannot be disabled. Output should be better with recent versions.

dluc commented 1 year ago

I used to have a similar problem when calling /Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron "$1".

Using /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code "$1" seems to address the problem.