ymotongpoo / vsc-licenser

License handler extension for Visual Studio Code.
Apache License 2.0
45 stars 40 forks source link

Exception on "Insert license headers to contents" action #101

Open gudvinr opened 3 years ago

gudvinr commented 3 years ago

Runtime environment

Behaviors

Expected behavior

Add license headers to every file in directory

Actual behavior

No change in files content.

Steps to reproduce the issue

  1. Press RMB
  2. Select menu entry "licenser: Insert license headers to contents"
Trace log ``` mainThreadExtensionService.ts:59 [[object Object]][UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//") $onExtensionRuntimeError @ mainThreadExtensionService.ts:59 _doInvokeHandler @ rpcProtocol.ts:417 _invokeHandler @ rpcProtocol.ts:402 _receiveRequest @ rpcProtocol.ts:318 _receiveOneMessage @ rpcProtocol.ts:245 (anonymous) @ rpcProtocol.ts:110 fire @ event.ts:622 fire @ ipc.net.ts:468 _receiveMessage @ ipc.net.ts:821 (anonymous) @ ipc.net.ts:660 fire @ event.ts:622 acceptChunk @ ipc.net.ts:241 (anonymous) @ ipc.net.ts:202 I @ ipc.net.ts:32 emit @ events.js:315 addChunk @ _stream_readable.js:295 readableAddChunk @ _stream_readable.js:271 Readable.push @ _stream_readable.js:212 onStreamRead @ internal/stream_base_commons.js:186 mainThreadExtensionService.ts:60 Error: [UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//") at I (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:58) at new f (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:58) at new m (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:58) at Function.parse (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:58) at Licenser. (~/.vscode-oss/extensions/ymotongpoo.licenser-1.5.0/out/src/extension.js:210) at Generator.next () at ~/.vscode-oss/extensions/ymotongpoo.licenser-1.5.0/out/src/extension.js:21 at new Promise () at __awaiter (~/.vscode-oss/extensions/ymotongpoo.licenser-1.5.0/out/src/extension.js:17) at ~/.vscode-oss/extensions/ymotongpoo.licenser-1.5.0/out/src/extension.js:207 at Array.forEach () at Licenser._insertMultiple (~/.vscode-oss/extensions/ymotongpoo.licenser-1.5.0/out/src/extension.js:207) at Licenser.insertMultiple (~/.vscode-oss/extensions/ymotongpoo.licenser-1.5.0/out/src/extension.js:258) at ~/.vscode-oss/extensions/ymotongpoo.licenser-1.5.0/out/src/extension.js:121 at S._executeContributedCommand (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:87) at S.$executeContributedCommand (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:87) at c._doInvokeHandler (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:90) at c._invokeHandler (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:90) at c._receiveRequest (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:90) at c._receiveOneMessage (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:90) at /usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:90 at g.fire (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:57) at p.fire (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65) at /usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:106 at g.fire (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:57) at p.fire (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65) at t._receiveMessage (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65) at /usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65 at g.fire (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:57) at l.acceptChunk (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65) at /usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65 at Socket.E (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:106) at Socket.emit (events.js:315) at addChunk (_stream_readable.js:295) at readableAddChunk (_stream_readable.js:271) at Socket.Readable.push (_stream_readable.js:212) at Pipe.onStreamRead (internal/stream_base_commons.js:186) $onExtensionRuntimeError @ mainThreadExtensionService.ts:60 _doInvokeHandler @ rpcProtocol.ts:417 _invokeHandler @ rpcProtocol.ts:402 _receiveRequest @ rpcProtocol.ts:318 _receiveOneMessage @ rpcProtocol.ts:245 (anonymous) @ rpcProtocol.ts:110 fire @ event.ts:622 fire @ ipc.net.ts:468 _receiveMessage @ ipc.net.ts:821 (anonymous) @ ipc.net.ts:660 fire @ event.ts:622 acceptChunk @ ipc.net.ts:241 (anonymous) @ ipc.net.ts:202 I @ ipc.net.ts:32 emit @ events.js:315 addChunk @ _stream_readable.js:295 readableAddChunk @ _stream_readable.js:271 Readable.push @ _stream_readable.js:212 onStreamRead @ internal/stream_base_commons.js:186 ```