kenkangxgwe / lsp-wl

A Wolfram Language Server
MIT License
214 stars 22 forks source link

FoldWhile in Server.wl should be renamed to fix name clash with new System` symbol introduced in Mathematica 12.2 #34

Closed BhuvaneshBhatt closed 3 years ago

BhuvaneshBhatt commented 3 years ago

Basically, FoldWhile is a new System-context symbol in Mathematica version 12.2 and higher:

Screen Shot 2021-01-14 at 11 34 15 AM

So there is a name clash with the function defined in Server.wl. As far as I can tell, the LSP function and the System-context context function do the same thing, but the LSP function should be renamed to fix the issue.

[INFO  2021-01-14T11:09:14] Initializing Wolfram Language Server

SetDelayed::write:
   Tag FoldWhile in FoldWhile[f_, x_, list_List, test_] is Protected.

SetDelayed::write:
   Tag FoldWhile in FoldWhile[f_, list_List, test_] is Protected.
kenkangxgwe commented 3 years ago

Fixed in b3b85a5 develop branch. It will be merged on master soon. Thanks for the feedback!