vscode не запускается с ошибкой: EMFILE: слишком много открытых файлов, посмотрите «/ snap / code» - PullRequest
0 голосов
/ 16 октября 2019

В течение нескольких дней мой код Visual Studio не запускается. Начиная с code --verbose выдает:

$ code --verbose
(process:9711): Gtk-WARNING **: 16:56:14.336: Locale not supported by C library.
        Using the fallback 'C' locale.
(code:9711): Gtk-WARNING **: 16:56:14.353: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version
(code:9711): Gtk-WARNING **: 16:56:14.353: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(code:9711): Gtk-WARNING **: 16:56:14.353: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
[9711:1016/165614.456088:ERROR:file_path_watcher_linux.cc(276)] inotify_init() failed: Too many open files (24)
Failed to watch /home/falko/.config/Code/User for changes using fs.watch() (Error: EMFILE: too many open files, watch '/home/falko/.config/Code/User')
[main 2019-10-16T14:56:14.582Z] Starting VS Code
[main 2019-10-16T14:56:14.582Z] from: /snap/code/18/usr/share/code/resources/app
[main 2019-10-16T14:56:14.582Z] args: { _: [], verbose: true, diff: undefined }
[main 2019-10-16T14:56:14.584Z] Resolving machine identifier...
[main 2019-10-16T14:56:14.584Z] Resolved machine identifier: aa83b26b19696e7dcb8a342740bd0a02c994ea16ca0bfc477cb434d622f2df6e (trueMachineId: undefined)
[main 2019-10-16T14:56:14.603Z] update#setState idle
[main 2019-10-16T14:56:14.604Z] telemetry/optInStatus { optIn: true }
[main 2019-10-16T14:56:14.604Z] telemetry/machineIdFallback { usingFallbackGuid: false }
[main 2019-10-16T14:56:14.605Z] Error: EMFILE: too many open files, watch '/snap/code'
    at FSWatcher.start (internal/fs/watchers.js:164:26)
    at Object.watch (original-fs.js:1232:11)
    at new g (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:391:55)
    at h._createInstance (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:252:51)
    at h._createServiceInstance (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:254:51)
    at h._createServiceInstanceWithOwner (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:253:661)
    at h._createAndCacheServiceInstance (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:253:336)
    at h._getOrCreateServiceInstance (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:252:559)
    at Object.get (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:251:129)
    at t.openFirstWindow (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:527:871)
    at c.invokeFunction.e (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:523:709)
    at h.invokeFunction (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:251:263)
    at t.startup (/snap/code/18/usr/share/code/resources/app/out/vs/code/electron-main/main.js:523:686)
[main 2019-10-16T14:56:14.605Z] Lifecycle#kill()

В настоящее время я на 1.39.2 установлен через SNAP в Ubuntu 18.04.3 LTS.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...