Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Exception on check if no document is open #29

Closed
W4RH4WK opened this issue Dec 28, 2016 · 4 comments
Closed

Exception on check if no document is open #29

W4RH4WK opened this issue Dec 28, 2016 · 4 comments
Assignees
Labels

Comments

@W4RH4WK
Copy link
Contributor

W4RH4WK commented Dec 28, 2016

If you run cargo check from within vscode without an open document the following exception is thrown

shell.ts:541 Cannot read property 'document' of undefined: TypeError: Cannot read property 'document' of undefined
    at Function.cwd (/home/w4rh4wk/.vscode/extensions/kalitaalexey.vscode-rust-0.2.3/out/src/services/pathService.js:51:60)
    at Function.runCargo (/home/w4rh4wk/.vscode/extensions/kalitaalexey.vscode-rust-0.2.3/out/src/services/commandService.js:432:31)
    at checkCargoCheckAvailability.then.isAvailable (/home/w4rh4wk/.vscode/extensions/kalitaalexey.vscode-rust-0.2.3/out/src/services/commandService.js:194:18)
    at process._tickCallback (internal/process/next_tick.js:103:7)e.onUnexpectedError @ shell.ts:541(anonymous function) @ shell.ts:457e.onUnexpectedError @ errors.ts:68o @ errors.ts:88t.onUnexpectedExtHostError @ mainThreadErrors.ts:13e.handle @ abstractThreadService.ts:34s @ ipcRemoteCom.ts:269f @ ipcRemoteCom.ts:226_combinedTickCallback @ internal/process/next_tick.js:67_tickCallback @ internal/process/next_tick.js:98
@KalitaAlexey
Copy link
Member

Hi @W4RH4WK,
It is bad.
I will fix it.

@KalitaAlexey KalitaAlexey self-assigned this Dec 28, 2016
@W4RH4WK
Copy link
Contributor Author

W4RH4WK commented Dec 28, 2016

Thanks for the great work.

@KalitaAlexey
Copy link
Member

@W4RH4WK,
Did you try custom configurations?

@KalitaAlexey
Copy link
Member

@W4RH4WK,
I added gitter chat.
Can you enter there?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants