Alexander-Miller / treemacs

GNU General Public License v3.0
2.12k stars 156 forks source link

bug(): pfuture-new: Wrong type argument #1110

Closed donjuanplatinum closed 5 months ago

donjuanplatinum commented 5 months ago
pfuture-new: Wrong type argument: stringp, ("/path/heap.rs" "Macro")

when i use treemacs to expand the tags of a rust file like this: Screenshot_20240609_083857

then i press 'tab' on the root tree tag 'algori', like this: Screenshot_20240609_083935

and then the bug appeared, i cant expand the algori tree, and the message is

pfuture-new: Wrong type argument: stringp, ("/path/algori/src/structure/heap.rs" "Macro") [6 times]
donjuanplatinum commented 5 months ago

and if i press the tag on algori

Error running timer ‘treemacs--apply-annotations-deferred’: (wrong-type-argument number-or-marker-p nil) [4 times]
Alexander-Miller commented 5 months ago

Reproduced and locally and working on a fix.

Alexander-Miller commented 5 months ago

Pushed a fix, but there might be more. Let me know if it works for you now.

donjuanplatinum commented 5 months ago

Pushed a fix, but there might be more. Let me know if it works for you now.

hi , i redownload the treemacs on elpa, now i can expand the tag but still occur error

Error running timer ‘treemacs--apply-annotations-deferred’: (wrong-type-argument number-or-marker-p nil) [4 times]
Alexander-Miller commented 5 months ago

It seems to work on my end now. Did you also restart Emacs? If yes, can you give me a step by step reproduction recipe?