WebStorm不会在保存时编译某些文件

时间:2018-11-29 08:31:01

标签: ubuntu webstorm

我在保存文件时遇到问题。我在Ubuntu 16上使用WebStorm。我尝试重新安装WebStorm,但再次遇到相同的问题。这是我的tsconfig文件:

    {
  "compileOnSave": true,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2017",
      "dom"
    ]
  }
}

带有红色下划线的文件夹中的文件在保存时不会编译,带有绿色下划线的文件在保存时会编译。

Files inside folders with red underline are not compiling on save, with green underline are compiling on save.

1 个答案:

答案 0 :(得分:0)

通过添加固定

fs.inotify.max_user_watches = 524288

在文件中:

/etc/sysctl.conf