drifter2412
13 Feb 2019, 2:52 AM
Hi,
After installing the latest version of VS Code (v1.31.1) it seems to have triggered a bug in the plugin which stops the plugin from loading.
Activating extension 'Sencha.vscode-extjs' failed: Callback must be a function.
t._logMessageInConsole @ extensionService.ts:800
console.ts:134 [Extension Host] Activating extension 'Sencha.vscode-extjs' failed: Callback must be a function.
t.log @ console.ts:134
console.ts:134 [Extension Host] Activating extension `Sencha.vscode-extjs` failed: Callback must be a function
Stack is as follows:
[Extension Host] Here is the error stack: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:157:9)
at Object.fs.writeFile (fs.js:1290:14)
at Object.<anonymous> ([...]\.vscode\extensions\sencha.vscode-extjs-1.0.1\out\src\Logger.js:28:8)
...
The problematic line seems to be:
fs.writeFile(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '');
Changing to:
fs.writeFile(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '', function(){});
or alternatively...
fs.writeFileSync(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '');
resolves the issue and the plugin loads again.
VS Code version info:
Version: 1.31.1 (user setup)
Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
Date: 2019-02-12T02:20:54.427Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.16299
After installing the latest version of VS Code (v1.31.1) it seems to have triggered a bug in the plugin which stops the plugin from loading.
Activating extension 'Sencha.vscode-extjs' failed: Callback must be a function.
t._logMessageInConsole @ extensionService.ts:800
console.ts:134 [Extension Host] Activating extension 'Sencha.vscode-extjs' failed: Callback must be a function.
t.log @ console.ts:134
console.ts:134 [Extension Host] Activating extension `Sencha.vscode-extjs` failed: Callback must be a function
Stack is as follows:
[Extension Host] Here is the error stack: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:157:9)
at Object.fs.writeFile (fs.js:1290:14)
at Object.<anonymous> ([...]\.vscode\extensions\sencha.vscode-extjs-1.0.1\out\src\Logger.js:28:8)
...
The problematic line seems to be:
fs.writeFile(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '');
Changing to:
fs.writeFile(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '', function(){});
or alternatively...
fs.writeFileSync(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '');
resolves the issue and the plugin loads again.
VS Code version info:
Version: 1.31.1 (user setup)
Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
Date: 2019-02-12T02:20:54.427Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.16299