Eslint is unstable in vs code - visual-studio-code

I am using VS code and eslint extension.
Sometimes eslint is crashed with following error:
(node:1615011) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 257)
(node:1615011) UnhandledPromiseRejectionWarning: Error: Unhandled method eslint/confirmESLintExecution
at /home/desktop/.vscode-server/extensions/dbaeumer.vscode-eslint-2.1.14/server/out/eslintServer.js:1:53829
at /home/desktop/.vscode-server/extensions/dbaeumer.vscode-eslint-2.1.14/server/out/eslintServer.js:1:54123
at Immediate.<anonymous> (/home/desktop/.vscode-server/extensions/dbaeumer.vscode-eslint-2.1.14/server/out/eslintServer.js:1:54488)
at processImmediate (internal/timers.js:439:21)
(node:1615011) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 258)
Why? What is frong and how can I fix it?
Eslint extension:
2.1.14
VSCODE:
Version: 1.52.1 (user setup)
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:34:46.910Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18363

There is an issue raised on the official GitHub repo regarding this, you can follow up there
https://github.com/microsoft/vscode-eslint/issues/1156

Related

Error to build Ionic project - path does not exist: resources/android/icon/drawable-hdpi-icon.png

Hello guys Im trying to build my Ionic app but I got the following error, someone could help me? Thanks (Command used: ionic cordova build android)
Installing "ionic-plugin-keyboard" for android
Discovered plugin "cordova-sqlite-storage" in config.xml. Adding it to the project
Installing "cordova-sqlite-storage" for android
installing external dependencies via npm
npm install of external dependencies ok
(node:31485) UnhandledPromiseRejectionWarning: Error: Source path does not exist: resources/android/icon/drawable-hdpi-icon.png
at updatePathInternal (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:145:19)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:223:19
at Array.forEach (<anonymous>)
at Object.updatePaths (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:221:33)
at updateIcons (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/lib/prepare.js:387:17)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/lib/prepare.js:49:9
at _fulfilled (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/q/q.js:854:54)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/q/q.js:816:13)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova /node_modules/q/q.js:624:44
(node:31485) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:31485) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
run ionic cordova resources if that doesnt work the go into the resources folder delete the ios and android folders the run ionic cordova resources again and check to see if the files icon.png and splash.png in the resources folder are not corrupt.

Error while building android apk in ionic 3

(node:7592) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 1): [object Object]
(node:7592) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.
I am facing these error when I run
ionic cordova build android

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EPERM: operation not permitted, chmod

Platform: Ionic
Trying to install a plugin, no pluging getting installed.
Following error appears:
ionic cordova plugin add onesignal-cordova-plugin
> cordova plugin add onesignal-cordova-plugin --save
Installing "onesignal-cordova-plugin" for ios
Failed to install 'onesignal-cordova-plugin': Error: EPERM: operation not permitted, chmod '/Users/heptagon/infos/platforms/ios/cordova/version'
at Error (native)
at Object.fs.chmodSync (fs.js:1154:18)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:176:24
at Array.map (native)
at callEngineScripts (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:169:17)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:311:16
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:624:44
(node:1127) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EPERM: operation not permitted, chmod '/Users/{my username is here }/infos/platforms/ios/cordova/version'
Fixed the problem with updating ruby version,it took me weeks to realise this, found the solution here:
How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?

UnhandledPromiseEXception in ionic

I am facing the following error while running an ionic app.
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): xcodebuild was not found. Please install version 7.0.0 or greater from App Store
(node:6853) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Please help me..

Visual Studio Code is not successfully installing extensions

I am unable to install extensions is Visual Studio Code. I am experiencing the same behavior with several different extensions.
I've tried two ways:
ctrl + shift + P, then Extensions: Install Extensions. I select my extension of choice and press install. The icon dims and says installing, but does not ever change. The extension does not appear to have installed.
In the integrated terminal I run code --install-extension <extension name>. I get the feedback Found <extension name> in the marketplace. Installing... Almost immediately, the command is executed yet no extension was installed.
I am running VSCode version 1.12.2 as an administrator. My machine is running Windows 10 enterprise.
Is anyone here familiar with this issue? Thanks.
Edit: The issue persists in version 1.15.1, but now gives and error after running code --install-extension <extension name>. The error reads:
(node:7412) UnhandledPromiseRejectionWarning: Unhandled promise rejections
(rejection id:1): TypeError: this._state.then is not a function.
(node:7412) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.