Skip to content

Line History - Cannot read property 'startsWith' of undefined #568

@turijs

Description

@turijs

Issue Type: Bug

Certain lines of files in my repo are causing this error to occur, which always coincides with the Line History Explorer displaying 0 commits. Full stack trace is below.

Error: Cannot read property 'startsWith' of undefined
	at Function.resolve (/home/turi/.vscode/extensions/eamodio.gitlens-9.0.1/dist/extension.js:1:279901)
	at Function.resolveToUri (/home/turi/.vscode/extensions/eamodio.gitlens-9.0.1/dist/extension.js:1:280003)
	at Function.fromFile (/home/turi/.vscode/extensions/eamodio.gitlens-9.0.1/dist/extension.js:1:278303)
	at new commitFileNode_CommitFileNode (/home/turi/.vscode/extensions/eamodio.gitlens-9.0.1/dist/extension.js:1:437317)
	at e.push.Be.filterMap.e (/home/turi/.vscode/extensions/eamodio.gitlens-9.0.1/dist/extension.js:1:476926)
	at Object.e.filterMap (/home/turi/.vscode/extensions/eamodio.gitlens-9.0.1/dist/extension.js:1:243498)
	at e.filterMap.next (<anonymous>)
	at Ei (/home/turi/.vscode/extensions/eamodio.gitlens-9.0.1/dist/extension.js:1:445607)
	at Ei.next (<anonymous>)
	at lineHistoryNode_LineHistoryNode.getChildren (/home/turi/.vscode/extensions/eamodio.gitlens-9.0.1/dist/extension.js:1:476880)
	at <anonymous>
t.onDidNotificationChange @ notificationsAlerts.ts:38
(anonymous) @ notificationsAlerts.ts:26
e.fire @ event.ts:145
t.notify @ notifications.ts:113
t.error @ notificationService.ts:48
(anonymous) @ mainThreadTreeViews.ts:142
v @ winjs.base.js:1230
enter @ winjs.base.js:916
_run @ winjs.base.js:1089
_error @ winjs.base.js:1062
e.resolveErr @ lazyPromise.ts:71
t._receiveReplyErr @ rpcProtocol.ts:419
t._receiveOneMessage @ rpcProtocol.ts:316
(anonymous) @ rpcProtocol.ts:146
e.fire @ event.ts:145
a @ ipc.net.ts:103
n._socketDataListener @ ipc.net.ts:132
emitOne @ events.js:116
emit @ events.js:211
addChunk @ _stream_readable.js:263
readableAddChunk @ _stream_readable.js:250
Readable.push @ _stream_readable.js:208
onread @ net.js:594

Extension version: 9.0.1
VS Code version: Code 1.29.1 (bc24f98b5f70467bc689abf41cc5550ca637088e, 2018-11-15T19:07:43.495Z)
OS version: Linux x64 4.15.0-42-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz (4 x 2490)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 5.70GB (0.38GB free)
Process Argv --unity-launch
Screen Reader no
VM 0%

Metadata

Metadata

Assignees

Labels

needs-more-infoNeeds further information, steps, details, etc.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions