uctakeoff / vscode-counter

VS Code extension: counts blank lines, comment lines, and physical lines of source code in many programming languages.
MIT License
151 stars 20 forks source link

The counter doesn't work for the vscode 1.39.2! #9

Closed themoonbear closed 4 years ago

themoonbear commented 4 years ago

vscode version: 1.39.2 installed the latest vscode-counter, I want to counter typescript language, but nothing happen!

uctakeoff commented 4 years ago

It does not occur in my environment. Has a folder named .VSCodeCounter been created?

themoonbear commented 4 years ago

NO. The tip is "Running the contributed command: 'extension.vscode-counter.countInWorkspace' failed."

uctakeoff commented 4 years ago

Is it similar to this phenomenon?

Does it work if the value of VSCodeCounter.outputPreviewType is 'none'? Does it work if the value of VSCodeCounter.outputAsMarkdown is false?

themoonbear commented 4 years ago

I changed the config, but it doesn't work! "VSCodeCounter.outputAsMarkdown": false, "VSCodeCounter.outputPreviewType": "none"

uctakeoff commented 4 years ago

Oh. Then, can you open the Developer Tool and continue?

Help > Toggle Developer Tools and select Console tab.

You may get a detailed error message.

themoonbear commented 4 years ago

Well, I did the step. This is error message. Does counter need network when it running? notificationsAlerts.ts:38 Error: Running the contributed command: 'extension.vscode-counter.countInWorkspace' failed. at v._executeContributedCommand (/Applications/Visual…nHostProcess.js:518) at v.$executeContributedCommand (/Applications/Visual…nHostProcess.js:519) at p._doInvokeHandler (/Applications/Visual…nHostProcess.js:635) at p._invokeHandler (/Applications/Visual…nHostProcess.js:634) at p._receiveRequest (/Applications/Visual…nHostProcess.js:633) at p._receiveOneMessage (/Applications/Visual…nHostProcess.js:632) at _protocol.onMessage.e (/Applications/Visual…nHostProcess.js:630) at l.fire (/Applications/Visual…onHostProcess.js:50) at _.fire (/Applications/Visual…nHostProcess.js:181) at e.onMessage.e (/Applications/Visual…nHostProcess.js:787) at l.fire (/Applications/Visual…onHostProcess.js:50) at _.fire (/Applications/Visual…nHostProcess.js:181) at t.PersistentProtocol._receiveMessage (/Applications/Visual…nHostProcess.js:185) at _socketDisposables.push._socketReader.onMessage.e (/Applications/Visual…nHostProcess.js:182) at l.fire (/Applications/Visual…onHostProcess.js:50) at p.acceptChunk (/Applications/Visual…nHostProcess.js:178) at _register._socket.onData.e (/Applications/Visual…nHostProcess.js:177) at Socket.t (/Applications/Visual…nHostProcess.js:187) at Socket.emit (events.js:182) at addChunk (_stream_readable.js:283) at readableAddChunk (_stream_readable.js:264) at Socket.Readable.push (_stream_readable.js:219) at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94)

uctakeoff commented 4 years ago

No, I don't use the network. Pipe is considered for local interprocess communication.

failed. at v._executeContributedCommand (/Applications/Visual…nHostProcess.js:518)

It seems that the error is not inside vscode-counter. Looks like it failed before calling vscode-counter.

The only way to come up with is to remove VSCodeCounter and install it again.

themoonbear commented 4 years ago

Thank you for your response. It doesn't work. Maybe I should re-install vscode.

uctakeoff commented 4 years ago

Some bugs have been fixed since then. Please let me know if there is any change.