Webstorm compile on save stopped working

A couple days ago it was working, now it's not.

I can do a tsc on command line and everything compiles and javascript gets saved in the correct directory.

Here is my tsconfig.json:

"compileOnSave": true,
"compilerOptions": {
"module": "es6",
"moduleResolution": "classic",
"noImplicitAny": false,
"noErrorTruncation": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"removeComments": true,
"preserveConstEnums": true,
"inlineSourceMap": true,
"inlineSources": true,
"target": "es2017",
"experimentalDecorators": true,
"lib": ["es2017", "dom"],
"pretty": true,
"outDir": "./deploy/js",
"traceResolution": true,
"types": []
"include": [ "./source/**/*.ts" ],
"exclude": [ "./source/Unused/*" ]


and here is a picture of my settings for typescript:


Please tell me what I need to do to get my auto compile to work

Comment actions Permalink

Do you have any errors/messages logged in TypeScript tool windows once you change any of your .ts files?

Comment actions Permalink

No error messages in the Errors, Compile errors or Console tabs.

Here is the data in the Console tab:

Process: TypeScript service version: 3.2.1
Process: Default service options: {"module":5,"moduleResolution":1,"noImplicitAny":false,"noErrorTruncation":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"removeComments":true,"preserveConstEnums":true,"inlineSourceMap":true,"inlineSources":true,"target":4,"experimentalDecorators":true,"lib":["lib.es2017.d.ts","lib.dom.d.ts"],"pretty":true,"outDir":"/home/triveni/workspace/StreamScopeMT60/typescript/deploy/js","traceResolution":true,"types":[],"configFilePath":"/home/triveni/workspace/StreamScopeMT60/typescript/tsconfig.json"}
Process: Called override
Process 1602248476123 heartbeat: "alive"


Also, want to mention that I can not manually compile in the typescript tool window by selecting Compile All (or the individual ts file or tsconfig.json).  I pressed the "Restart Typescript Service" button and in the Errors it says "Service is not started"

Comment actions Permalink

I just realized I was running older version of Webstorm (I have 2 installs on my machine).

Started up version 2020.2.2 and save on compile is working.

Comment actions Permalink

strange... is the issue specific to your project? Does the service work in other project using similar settings and tsconfig.json?

Also, could you reproduce the issue and share your idea.log (File > Show Log in ...)?

Comment actions Permalink

It works in latest version Webstorm with the exact same configuration.  I will get you more info early next week as I have code to write and bugs to slay.


Please sign in to leave a comment.