Autodesk-AutoCAD / AutoLispExt

Visual Studio Code Extension for AutoCAD® AutoLISP
https://marketplace.visualstudio.com/items?itemName=Autodesk.autolispext
Apache License 2.0
83 stars 30 forks source link

cannot rename symbol #241

Closed wushaohua5 closed 5 months ago

wushaohua5 commented 5 months ago

Describe the bug Everything in AutoLispExt was Okay, expect rename symbol. The rename symbol feature worked fine before, it cannot work someday ,and I don't know what I did to cause this. rename symbol works fine in python environment.

That is "TypeError:Cannot read properties of null (reading 'isPrimitive')", and nothing changed.

Screenshots image

AutoLispExt version 1.6.2, VScode version 1.87.2, the system is windows 10

Sen-real commented 5 months ago

Hi @wushaohua5 , I updated VS Code to 1.87.2, but I failed to reproduce this problem. Would you please give out some sample code that can reproduce it on your side?

wushaohua5 commented 5 months ago

@Sen-real Thanks for your reply. I once installed the common-lisp extension,maybe that is the problem. but I reinstall VScode, even reinstall the windows problem, the problem remains。you can try these code (defun file2str (file / line str) (if (and (setq file (findfile file)) (setq file (open file "r"))) (progn (setq str "") (while (setq line (read-line file)) (setq str (strcat str line))) ) ) (if file (close file)) str )

Sen-real commented 5 months ago

@wushaohua5 thank you for the code, I'm still unable to repro the error with it. I'll keep an eye on it.

wushaohua5 commented 5 months ago

I find the problem, there was a function i didn't complete in this file that. eg: "(define foo )"

thank you


发件人: linse-adsk @.> 发送时间: 2024年3月22日 14:01 收件人: Autodesk-AutoCAD/AutoLispExt @.> 抄送: wushaohua5 @.>; Mention @.> 主题: Re: [Autodesk-AutoCAD/AutoLispExt] cannot rename symbol (Issue #241)

@wushaohua5https://github.com/wushaohua5 thank you for the code, I'm still unable to repro the error with it. I'll keep an eye on it.

― Reply to this email directly, view it on GitHubhttps://github.com/Autodesk-AutoCAD/AutoLispExt/issues/241#issuecomment-2014413514, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIHCKESVIS4GWWP2SWBDEZLYZPCLBAVCNFSM6AAAAABE2HTLSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUGQYTGNJRGQ. You are receiving this because you were mentioned.Message ID: @.***>