Open kevinbeal opened 7 years ago
I'm getting similar error as above in the Output tab. But my problem is not with switching branch or something with missing file, it's in general when I start vscode with less files in project. And the last thing it breaks funkcionality, not sure if all, but some as variable/mixins completion, go to definition don't work anymore.
I'm not sure, but i have opinion the last update of vscode (April update) broke this plugin.
OUTPUT:
[Error - 8:03:44] (node:11068) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property '1' of null [Error - 8:03:44] (node:11068) 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. [Error - 8:03:44] (node:11068) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property '1' of null [Error - 8:04:13] (node:11068) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) [Error - 8:04:13] (node:11068) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2)
Less IntelliSense v0.6.2 VSCode v1.12.1
Thanks for Issue. I'll work on this very soon.
@kevinbeal, @jkondela, Please, try to use this version of plugin. I'm fix some problems and add debug parameters for catch errors. just try your cases and report the error to this issue.
https://github.com/mrmlnc/vscode-less/releases/tag/0.6.3 (*.vsix
file)
How to install this version:
.vsix
file from link above and click "ok"This is not final fix for @kevinbeal issue. I'm just trying to get more information, before start work on this issue.
@mrmlnc After reinstall from .vsix I'm getting the same error + some debug, but nothing more. See below:
[Error - 9:35:21] (node:6716) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property '1' of null [Error - 9:35:21] (node:6716) 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. [Error - 9:35:21] (node:6716) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property '1' of null [Error - 9:35:46] (node:6716) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) [Error - 9:35:46] (node:6716) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2) [Error - 9:35:46] [object Object]
New log: [Error - 9:35:46] [object Object]
Update: Errors are generated when I started vscode and also when switching git branchs
@mrmlnc After installing the .vsix
file, I am no longer getting the output console popping up with promise rejection errors as before.
It worked for me :) 👍
I spoke too soon. I'm also getting the [Error - 9:36:37 AM] [object Object]
message.
I'm not sure exactly when it happened, but I had a .less file open. I think having a .less file open was necessary to reproduce the error..?
Hello,
I'm will be work on this issue today. You can provide more detailed steps to reproduce your issue?
As I understand your steps:
master
branch: a.less
and b.less
and them commit their.switcher
branch.c.less
to master
branchc.less
in the editorswitcher
branchAlso I think that the b.less
file has @import
for c.less
? May be you can provide simple repository to reproduce?
I have tried this on my personal computer with clean install vscode-less a it is working properly. Also when I have switched branches. That's so weird.
Please, try to use 0.6.3
from the Marketplace.
Ok, I tried to use new version from market and now I'm getting in OUTPUT tab 2 more lines
[vscode-less]: TypeError [vscode-less]: TypeError: Cannot read property '1' of null
And in developer console is this error. I hope it helps.
Language client is not ready yet: Error: Language client is not ready yet at LanguageClient.sendRequest (C:\Users\jaro\.vscode\extensions\mrmlnc.vscode-less-0.6.3\node_modules\vscode-languageclient\lib\main.js:585:19) at disposable.(anonymous function).vscode.window.onDidChangeActiveTextEditor (C:\Users\jaro\.vscode\extensions\mrmlnc.vscode-less-0.6.3\out\client.js:44:16) at e.invoke (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:30934) at e.fire (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:34741) at c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:346486 at e.invoke (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:30934) at e.fire (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:34741) at t.$acceptDocumentsAndEditorsDelta (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:300898) at t.e.handle (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:266428) at s (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:154931) e.onUnexpectedError @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:29
Well, most likely now error related to one of providers (completion and etc.) or parser. You can provide GIF for your case or/and your file (for reproduce error)?
Also you can set less.showErrors
to False to skip errors.
P.S.: In 1.0.0
version I'll add telemetry for this cases.
This doesn't appear to be breaking any functionality, the "OUTPUT" log pops up with messages like this:
The file at
/Users/kevin/engine/vars.less
is on the branch I'm moving away from and not in the branch I'm moving to.I'm on 1.12.1 of VSCode and 0.6.2 of vscode-less (if that matters).
I'm not really sure what upgrading to a new Node.js will do to the extension or the editor, but it sounds bad.