WebStorm 2019.1.3 constantly freezes when trying to copy or edit code

I have been having constant issues with WebStorm 2019.1.3 freezing up. Sometimes it happens when I copy/paste code, but more often when I am just doing something simple, like writing an IF statement. I just type "if" and an opening parenthesis, and WebStorm freezes. Other times, I have copy/pasted an ELSE IF block in the middle of an if/else chain and started to edit it. Installing version 2019.1.2 seems to have fixed the problem.

 The threadDump files in

~/Library/Logs/<PRODUCT><VERSION>

mostly reference JSTypeEvaluator.js, but the files are too big to include here (partial below):

"AWT-EventQueue-0" prio=0 tid=0x0 nid=0x0 runnable
     java.lang.Thread.State: RUNNABLE

	at com.intellij.psi.impl.source.SubstrateRef$StubRef.isValid(SubstrateRef.java:133)
	at com.intellij.extapi.psi.StubBasedPsiElementBase.isValid(StubBasedPsiElementBase.java:272)
	at com.intellij.psi.impl.source.SubstrateRef$StubRef.isValid(SubstrateRef.java:134)
	at com.intellij.extapi.psi.StubBasedPsiElementBase.isValid(StubBasedPsiElementBase.java:272)
	at com.intellij.psi.impl.source.SubstrateRef$StubRef.isValid(SubstrateRef.java:134)
	at com.intellij.extapi.psi.StubBasedPsiElementBase.isValid(StubBasedPsiElementBase.java:272)
	at com.intellij.psi.impl.source.SubstrateRef$StubRef.isValid(SubstrateRef.java:134)
	at com.intellij.extapi.psi.StubBasedPsiElementBase.isValid(StubBasedPsiElementBase.java:272)
	at com.intellij.psi.impl.PsiCachedValue.getTimeStamp(PsiCachedValue.java:84)
	at com.intellij.util.CachedValueBase.isDependencyOutOfDate(CachedValueBase.java:133)
	at com.intellij.psi.impl.PsiCachedValue.isDependencyOutOfDate(PsiCachedValue.java:72)
	at com.intellij.util.CachedValueBase.isUpToDate(CachedValueBase.java:123)
	at com.intellij.psi.impl.PsiCachedValue.isUpToDate(PsiCachedValue.java:63)
	at com.intellij.util.CachedValueBase.getUpToDateOrNull(CachedValueBase.java:102)
	at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:229)
	at com.intellij.psi.impl.PsiParameterizedCachedValue.getValue(PsiParameterizedCachedValue.java:35)
	at com.intellij.psi.util.CachedValuesManager.getParameterizedCachedValue(CachedValuesManager.java:93)
	at com.intellij.lang.javascript.psi.impl.JSCachingTypeOwner.getJSType(JSCachingTypeOwner.java:57)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromProperty(JSTypeEvaluator.java:2010)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromElementResolveResult(JSTypeEvaluator.java:1892)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromResolveResult(JSTypeEvaluator.java:1531)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromResolveResult(JSTypeEvaluator.java:1477)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$processRefExpr$30(JSTypeEvaluator.java:1451)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator$$Lambda$2432/181079460.get(Unknown Source)
	at com.intellij.lang.javascript.psi.resolve.JSEvaluateContext.processExpression(JSEvaluateContext.java:203)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processRefExpr(JSTypeEvaluator.java:1445)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.doEvaluateTypes(JSTypeEvaluator.java:511)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$evaluateTypes$13(JSTypeEvaluator.java:484)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator$$Lambda$2495/1248341402.accept(Unknown Source)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$processWithEvaluationGuard$45(JSTypeEvaluator.java:2783)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator$$Lambda$2427/860432813.apply(Unknown Source)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.runWithRecursionGuard(JSTypeEvaluator.java:2802)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processWithEvaluationGuard(JSTypeEvaluator.java:2777)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processItem(JSTypeEvaluator.java:2757)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.evaluateTypes(JSTypeEvaluator.java:484)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$static$1(JSTypeEvaluator.java:106)
	at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator$$Lambda$2396/1186612841.compute(Unknown Source)
	at com.intellij.psi.impl.PsiParameterizedCachedValue.doCompute(PsiParameterizedCachedValue.java:45)
	at com.intellij.util.CachedValueBase.lambda$getValueWithLock$0(CachedValueBase.java:236)
	at com.intellij.util.CachedValueBase$$Lambda$563/1838139144.compute(Unknown Source)
	at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:239)
9 comments
Comment actions Permalink

Please share your log folder content (Help | Compress Logs and Show in Finder)

0
Comment actions Permalink

I'm not sure how to share my compressed logs. When I try to add them here, I get the message: "You can only upload images (jpeg, gif, or png). Image uploads are limited to 2 MB."

0
Comment actions Permalink

you can upload it to some file servrer (dropbox, etc) and provide a link

0
Comment actions Permalink

can you also attach your package.json?

0
Comment actions Permalink
{
"name": "",
"description": "",
"version": "99.99.99",
"main": "bin/server.js",
"repository": {
"type": "",
"url": ""
},
"dependencies": {
"@babel/polyfill": "^7.4.3",
"connected-react-router": "^6.3.2",
"dayjs": "^1.8.12",
"dexie": "^2.0.4",
"express": "^4.16.4",
"history": "^4.9.0",
"immer": "^2.1.5",
"lodash": "^4.17.11",
"numeral": "^2.0.6",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-hot-loader": "^4.8.3",
"react-redux": "^7.0.3",
"react-router": "^5.0.0",
"react-router-dom": "^5.0.0",
"recharts": "^1.5.0",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"semantic-ui-react": "^0.78.2",
"uuid": "^3.3.2"
},
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-proposal-object-rest-spread": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.4.0",
"ajv": "^6.10.0",
"autoprefixer": "^9.5.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"chalk": "^2.4.2",
"circular-dependency-plugin": "^5.0.2",
"copy-webpack-plugin": "^5.0.2",
"css-loader": "^2.1.1",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.1.0",
"eslint-loader": "^2.1.2",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jest": "^22.4.1",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-react-hooks": "^1.6.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^3.0.1",
"html-webpack-include-assets-plugin": "^2.0.0",
"html-webpack-plugin": "^3.2.0",
"identity-obj-proxy": "^3.0.0",
"ink-docstrap": "^1.3.2",
"jest": "^24.7.1",
"jest-junit-reporter": "^1.1.0",
"jsdoc": "^3.5.5",
"jsdom": "^15.0.0",
"node-sass": "^4.11.0",
"opn-cli": "^4.1.0",
"postcss-loader": "^3.0.0",
"prettier": "^1.16.4",
"react-test-renderer": "^16.8.6",
"redux-devtools": "^3.5.0",
"redux-immutable-state-invariant": "^2.1.0",
"sass-loader": "^7.1.0",
"source-map-loader": "^0.2.4",
"source-map-support": "^0.5.12",
"style-loader": "^0.23.1",
"url-loader": "^1.1.2",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.1",
"webpack-dev-server": "^3.3.1",
"webpack-merge": "^4.2.1"
},
"scripts": {
"build": "webpack --display=minimal",
"build:debug": "npm run build:dll && NODE_ENV=\"debug\" HTTP_PROTOCOL=\"http\" HTTP_PROXY_PORT=\"9000\" npm run build",
"build:dll": "npm run build -- --config ./webpack_dll.config.js",
"build:prod": "npm run clean && npm run build:dll && NODE_ENV=\"production\" npm run build",
"clean": "rimraf ./docs ./dist ./coverage test-report.xml",
"dev": "node scripts/start.js",
"docs": "jsdoc -c jsdoc.json && npx opn-cli ./docs/index.html",
"gen": "echo 'Skipping Generation'",
"lint": "eslint src",
"start:prod": "node .",
"test": "jest tests",
"test:ci": "jest --ci tests",
"test:watch": "jest --watch tests"
},
"license": "UNLICENSED",
"jest": {
"testResultsProcessor": "./node_modules/jest-junit-reporter",
"moduleDirectories": [
"node_modules",
"./src"
],
"collectCoverage": true,
"coverageReporters": [
"text",
"html"
],
"collectCoverageFrom": [
"src/**/*.{js,jsx}",
"!**/node_modules/**"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/src/__mocks__/fileMock.js",
"\\.(css|scss|less)$": "identity-obj-proxy"
}
}
}
0
Comment actions Permalink

Thanks. Must be https://youtrack.jetbrains.com/issue/WEB-38968, please follow it for updates

0
Comment actions Permalink

It's possible that I am having the same issue as the one linked to above. The file I was trying to edit when WebStorm froze up was a reselect file.

0
Comment actions Permalink

It's 40 degrees here and I have a really short fuse today. This has been happening all morning. Simple editing freezes the IDE all the time. Please fix this ASAP. Very annoying issue. 

0

Please sign in to leave a comment.