profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/kenkangxgwe/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
康小广 kenkangxgwe Google LLC Mountain View, CA Software Engineer

kenkangxgwe/lsp-wl 147

A Wolfram Language Server

kenkangxgwe/Matypetica 10

A Type System Attempt for Wolfram Language

kenkangxgwe/LaTeX-Code-Collection 3

Some Basic code scripts when using latex.

kenkangxgwe/Sony-Global-Resources-Downloader 3

Downloads all the media (photographs and soundtracks) in www.sony.net/united/clock/

kenkangxgwe/Path-Tracing-Reproduction 2

Final Project for Computer Graphics

kenkangxgwe/Course-Notes-General-Relativity 1

Review of Wan's Lecture Notes

kenkangxgwe/dr-plan-solver-mirror 1

mirror for dr-plan-solver

kenkangxgwe/express-server-for-adweb-pj 1

高级 Web 课程项目 Express 服务器

kenkangxgwe/Mathematica-Code-Collection 1

Some simple script which may be easily forgotten.

kenkangxgwe/PhaseRetrival 1

A Matlab program for phase retrival in atomic holograms

issue commentkenkangxgwe/lsp-wl

Cannot get extension working on VSCode

Can you try the latest revision on the develop branch? I think it will automatically handle it for you.

89sundown

comment created time in 12 days

issue commentkenkangxgwe/lsp-wl

Cannot get extension working on VSCode

Hi @PhyX-Meow , As discussed above and in the wiki, you need ZeroMQLink 1.1.* to make the language server work.

89sundown

comment created time in 17 days

issue openedWolframResearch/codeinspector

Why are sessionSymbols considered suspicious?

I recently noticed that codeInspector gave warnings about Quit, Echo and other so-called SessionSymbols here. I wonder what those warnings are about? One thing that I can think of is that these symbols are often for debugging during development, so the warning is there to remind users that there are debug symbols and should not be included in the final package?

created time in a month

issue closedkenkangxgwe/lsp-wl

Running lsp-wl 0.3.0 with Wolfram Engine 12.3.1 fails on MacOS

I am on MacOS 11.4 running Wolfram Engine 12.3.1. I try to run the wolfram language server via

wolframscript -f ./init.wls

which unfortunately does not work and gives me the following output

[INFO  2021-07-21T16:07:29] Initializing Wolfram Language Server

StringJoin::string: 
   String expected at position 1 in 
    (Keys::usage)<>
                                                                       .
      Keys[typename] gives a list of the keys field_i in type typename.

MessageName::messg: 
   Keys::usage cannot be set to 
    (Keys::usage)<>
                                                                       . It
      Keys[typename] gives a list of the keys field_i in type typename.
     must be set to a string.
[INFO  2021-07-21T16:07:32] Language server is connecting the client through
socket.
[INFO  2021-07-21T16:07:32] Server listening from port 6536...

DataType`TypeCheck::mispat: 
   Failed socket operation: Connection refused doesn't match the pattern of 
    "client" in WolframLanguageServer`Server`Private`WorkState.
[ERROR 2021-07-21T16:07:32] Which[Undefined message SocketReadyQ::notsocket with
arguments {Failed socket operation: Connection refused},
WolframLanguageServer`Server`Private`handleMessageList[WolframLanguageServer`Ser
ver`Private`ReadMessages[Failed socket operation: Connection refused],
WolframLanguageServer`Server`Private`WorkState[<|initialized -> False,
openedDocs -> <||>, debugSession ->
WolframLanguageServer`Server`Private`DebugSession[<|initialized -> False, server
-> Null, client -> Null|>], scheduledTasks -> {}, caches ->
<|textDocument/signatureHelp -> <||>, textDocument/documentSymbol -> <||>,
textDocument/documentColor -> <||>, textDocument/codeLens -> <||>,
textDocument/publishDiagnostics -> <||>|>, pendingServerRequests -> <||>, config
-> <|configFileConfig -> WolframLanguageServer`Server`Private`loadConfig[]|>,
client -> Failed socket operation: Connection refused|>]],
WolframLanguageServer`Server`Private`DebugSession[<|initialized -> False, server
-> Null, client -> Null|>][server] =!= Null &&
WolframLanguageServer`Server`Private`DebugSession[<|initialized -> False, server
-> Null, client -> Null|>][client] === Null &&
Length[WolframLanguageServer`Server`Private`DebugSession[<|initialized -> False,
server -> Null, client -> Null|>][server][ConnectedClients]] > 0, {Continue,
DataType`ReplaceKey[WolframLanguageServer`Server`Private`WorkState[<|initialized
[INFO  2021-07-21T16:07:32] Closing socket connection...

DataType`TypeCheck::mispat: 
   Failed socket operation: Connection refused doesn't match the pattern of 
    "client" in WolframLanguageServer`Server`Private`WorkState.
[ERROR 2021-07-21T16:07:32] Server stopped abnormally.
[ERROR 2021-07-21T16:07:32] Which[Undefined message SocketReadyQ::notsocket with
arguments {Failed socket operation: Connection refused},
WolframLanguageServer`Server`Private`handleMessageList[WolframLanguageServer`Ser
ver`Private`ReadMessages[Failed socket operation: Connection refused],
WolframLanguageServer`Server`Private`WorkState[<|initialized -> False,
openedDocs -> <||>, debugSession ->
WolframLanguageServer`Server`Private`DebugSession[<|initialized -> False, server
-> Null, client -> Null|>], scheduledTasks -> {}, caches ->
<|textDocument/signatureHelp -> <||>, textDocument/documentSymbol -> <||>,
textDocument/documentColor -> <||>, textDocument/codeLens -> <||>,
textDocument/publishDiagnostics -> <||>|>, pendingServerRequests -> <||>, config
-> <|configFileConfig -> WolframLanguageServer`Server`Private`loadConfig[]|>,
client -> Failed socket operation: Connection refused|>]],
WolframLanguageServer`Server`Private`DebugSession[<|initialized -> False, server
-> Null, client -> Null|>][server] =!= Null &&
WolframLanguageServer`Server`Private`DebugSession[<|initialized -> False, server
-> Null, client -> Null|>][client] === Null &&
Length[WolframLanguageServer`Server`Private`DebugSession[<|initialized -> False,
server -> Null, client -> Null|>][server][ConnectedClients]] > 0, {Continue,
DataType`ReplaceKey[WolframLanguageServer`Server`Private`WorkState[<|initialized

Any help is appreciated. I currently do not know where the error exactly comes from.

closed time in 2 months

The3DWizard

issue commentkenkangxgwe/lsp-wl

Running lsp-wl 0.3.0 with Wolfram Engine 12.3.1 fails on MacOS

Thanks for your info. I will close this.

The3DWizard

comment created time in 2 months

push eventkenkangxgwe/lsp-wl

kenkangxgwe

commit sha 934f93192a203453ad06248cce9a8fa415f32a28

:construction: Use SocketWaitAll instead of SocketReadyQ - This saves CPU load in idle state on Unix.

view details

kenkangxgwe

commit sha cfb8157113345f4c1224a5eb179a7be854714751

Improve: Automatically install ZeroMQLink 1.1.22 if no 1.1.x version exists

view details

push time in 2 months

issue commentkenkangxgwe/lsp-wl

Running lsp-wl 0.3.0 with Wolfram Engine 12.3.1 fails on MacOS

Glad that it worked for you.

For the hover and completion, please take a look at wiki I just updated it.

The3DWizard

comment created time in 2 months

GollumEvent

issue commentkenkangxgwe/lsp-wl

Running lsp-wl 0.3.0 with Wolfram Engine 12.3.1 fails on MacOS

When you run wolframscript -f ./init.wls, the default behavior is that it will connect to the default port (6536) for socket connection. If there's no established socket server there, it will thrown the "Connection refused" exception. You need to have a editor hosting this socket so that it can connect successfully. So in your case, please just retry it on VSCode. Thanks!

The3DWizard

comment created time in 2 months

issue commentkenkangxgwe/lsp-wl

Running lsp-wl 0.3.0 with Wolfram Engine 12.3.1 fails on MacOS

In Mathematica, if you run FindFile["ZeroMQLink`"], what would you get? Is it 1.1.22?

The3DWizard

comment created time in 2 months

GollumEvent

issue commentkenkangxgwe/lsp-wl

Running lsp-wl 0.3.0 with Wolfram Engine 12.3.1 fails on MacOS

Oh, just realized you are using 0.3.0, could you try develop branch, instead?

When you open WolframKernel, does it give you a GUI or just a console? Since on Windows, the WolframKernel.exe will shows up a white window for the wolfram REPL and it won't work for the language server. So as long as you can run the wolfram -script init.wls in the terminal, it is ok to use that executable.

The3DWizard

comment created time in 2 months

issue commentkenkangxgwe/lsp-wl

Running lsp-wl 0.3.0 with Wolfram Engine 12.3.1 fails on MacOS

Hi, Do you have a client (an editor like VSCode) running for the server to connect to? If not, try to set up a client, see the instructions.

The3DWizard

comment created time in 2 months

GollumEvent
GollumEvent

issue commentkenkangxgwe/vscode-lsp-wl

What font should I use to display system symbols?

What system symbols? I suppose you are looking for fonts that support a wider range of Unicode characters? E.g. Iosevka, Fira Code, Source Code Pro, and Cascadia Code?

nufeng1999

comment created time in 2 months

issue commentkenkangxgwe/lsp-wl

Unable to close the Wolfram kernel in time

我看最后的留言是不工作,但是你关闭了这个议题,请问是否已解决?

kands-code

comment created time in 3 months

push eventkenkangxgwe/lsp-wl

kenkangxgwe

commit sha 4ac517732e1138164d1948e29c3b718851e4350e

Rename: parentProcessId -> clientProcessId * Client is not necessary to be the parent process. * Do not check client process existence if its PID is not specified.

view details

kenkangxgwe

commit sha dcc611c27a3a1e339b4f0787ee1c13084961d41a

Fix: Return empty result when completing messages for a non-system identifier. * Previous function is undefined for non-system identifiers.

view details

kenkangxgwe

commit sha cdf0beb064a88c0bc3b88a583cb8508d74e8d324

Fix: Return True for "AllTestsSucceeded" if TestReport contains no tests

view details

push time in 3 months

issue commentkenkangxgwe/lsp-wl

Unable to close the Wolfram kernel in time

你可以试一下最新的 develop branch吗?理论上最晚关闭 vim 10s 之后就会关闭

kands-code

comment created time in 3 months

push eventkenkangxgwe/lsp-wl

kenkangxgwe

commit sha b3fdc0d1be30eb1b99f96fb6cdbba318b7d9483b

Fix: TokenTest due to $Off'ed mesages.

view details

kenkangxgwe

commit sha e32e0e594d3686a45419bf235dd40f8a87051265

Fix: Message documentations - Respect comma and or in different languages. - $Off setting should be delayed. - box representation w/o "\*" should also be transformed. - Add rules for "\[DifferentialD]" and "\[EscapeKey]" (used in `Integrate::nodiffd`).

view details

kenkangxgwe

commit sha 5bf66481ade18b5b33ad9d99057aa0cb4a99852b

Fix: Do not run TokenTest if usages do not exist Change "KnownMessageName" test with `Integrate::gener` to test an $Off'ed message.

view details

kenkangxgwe

commit sha cf114ef6f7fa6cebe6f0f397ac9ef839678ba344

Add: ParentProcessCheck Add periodic check to exit if parent process is not alive.

view details

push time in 3 months

issue commentkenkangxgwe/lsp-wl

Cannot get extension working on VSCode

It seems that the default ZeroMQLink is not set to 1.1.22. It's still using 1.2.1 as shown above. I am already in that discord server. I will ping you there.

89sundown

comment created time in 3 months

issue commentkenkangxgwe/lsp-wl

Cannot get extension working on VSCode

  1. Editing the "User" tab is good enough.
  2. Sorry, it should be FindFile["ZeroMQLink`"]. Could you try again?
89sundown

comment created time in 3 months

issue commentkenkangxgwe/lsp-wl

Cannot get extension working on VSCode

  1. May I see your VSCode settings?
  2. Could you run FindFile["ZeroMQLink"]` in your wolfram executable?
89sundown

comment created time in 3 months

issue commentkenkangxgwe/lsp-wl

Cannot get extension working on VSCode

Hi Max, I want to get more information from your issue. Could you try:

  1. Checkout the latest develop branch if you were at master branch.
  2. Follow the instruction in https://github.com/kenkangxgwe/lsp-wl/wiki#enable-logging to enable the log. Reproduce your problem and copy the log file after the server shuts down for 5 times.
89sundown

comment created time in 3 months

GollumEvent

issue closedkenkangxgwe/lsp-wl

The strange results given by the second complement behaviour of lsp-wl in vscode.

On Ubuntu 20.04, I use lsp-wl with the latest stable version of vscode. I find a strange completion behaviour as described below:

Firstly, we type \ and some character, say, f, as shown below:

image

Then, we click on Backspace to delete the f, and re-type f. This time, the pop-up window of the completion entries will look like below:

image

As you can see, they are different. Any hints for this problem?

Regards, HY

closed time in 3 months

hongyi-zhao

issue commentkenkangxgwe/lsp-wl

The strange results given by the second complement behaviour of lsp-wl in vscode.

Fixed in 660b816884ad7d74a668ecf876ddfc5df9ae38a9

hongyi-zhao

comment created time in 3 months