Todo-tree: Todo-Tree: Cannot read property 'fsPath' of undefined

Created on 26 Apr 2021  路  9Comments  路  Source: Gruntfuggly/todo-tree

Since this morning I get the following error after I open vscode.

Todo-Tree: Cannot read property 'fsPath' of undefined

Does anyone know what's causing this? Is it a misconfiguration on my side or is it actually a but? 馃

Thank you!

bug fixed

Most helpful comment

Thanks - you've given me enough to recreate it - it's because of multiline todos. I'll get it fixed...

All 9 comments

Bug probably. I just uploaded a new version which uses URIs instead of file paths.

Please can you post your settings so I can try to recreate it here.

Also, is there anything in the developer tools log?

You can install the previous version from the extensions panel if it continues to cause an issue.

Going back to version v0.0.211 solved the issue for now. Thank you :+1:

Is there any chance you could post your settings? I'd like to be able to fix the issue and I don't see it here. The extension is way too configurable 馃檨

I have this bug with such a trace in devtools:

ERR Cannot read property 'fsPath' of undefined: TypeError: Cannot read property 'fsPath' of undefined
at e (c:\Users\user\.vscode\extensions\gruntfuggly.todo-tree-0.0.212\dist\extension.js:34:59089)
at c:\Users\user\.vscode\extensions\gruntfuggly.todo-tree-0.0.212\dist\extension.js:34:59683
at Array.map (<anonymous>)
at e (c:\Users\user\.vscode\extensions\gruntfuggly.todo-tree-0.0.212\dist\extension.js:34:59596)
at t.TreeNodeProvider.add (c:\Users\user\.vscode\extensions\gruntfuggly.todo-tree-0.0.212\dist\extension.js:34:59740)
at c:\Users\user\.vscode\extensions\gruntfuggly.todo-tree-0.0.212\dist\extension.js:39:6800
at Array.map (<anonymous>)
at Object.e.exports.addToTree (c:\Users\user\.vscode\extensions\gruntfuggly.todo-tree-0.0.212\dist\extension.js:39:6766)
at O (c:\Users\user\.vscode\extensions\gruntfuggly.todo-tree-0.0.212\dist\extension.js:22:21474)
at c:\Users\user\.vscode\extensions\gruntfuggly.todo-tree-0.0.212\dist\extension.js:22:26849
at a (c:\Users\user\.vscode\extensions\gruntfuggly.todo-tree-0.0.212\dist\extension.js:22:25926)
at c:\Users\user\.vscode\extensions\gruntfuggly.todo-tree-0.0.212\dist\extension.js:22:26243
at processTicksAndRejections (internal/process/task_queues.js:97:5)

Thanks - that narrows it down. Could you open the TODO tree output channel (you may need to set todo-tree.general.debug: true) and paste the contents so I can see your search results?

There is no any errors in output.

12:42:48.393 Found 139 items
12:42:48.393 Applying globs to 139 items...
12:42:48.398 Remaining items: 139
12:42:48.418 Found 139 items
12:42:48.418 Applying globs to 139 items...
12:42:48.421 Remaining items: 139

Error notification occurs only at project opening in new window, and not in evey project.

Thanks - you've given me enough to recreate it - it's because of multiline todos. I'll get it fixed...

Sorry, just came back to it :sweat_smile:

Thank you, seems to work perfectly :grin: :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

onetrev picture onetrev  路  5Comments

Cloud7050 picture Cloud7050  路  9Comments

luqiudi picture luqiudi  路  9Comments

bitjson picture bitjson  路  7Comments

nickPietrass picture nickPietrass  路  9Comments