kenkangxgwe / vscode-lsp-wl

Visual Studio Code Client for Wolfram Language Server
MIT License
32 stars 6 forks source link

Questions about the install #18

Open DougAtClir opened 2 years ago

DougAtClir commented 2 years ago

My biggest concern is that by installing this extension, I am going to jeopardize my working version of Mathematica.

  1. Will the paclets interfere with Mathematica 13.0? Will I still be able to use Mathematica on the same machine as the VS Code extension?

  2. Do I need to specify a full path specification for the PacletInstall commands?

  3. I recommend that you enumerate the steps in the HowToBuild.md file and include a reference to this file in the installation instructions.

  4. What is the purpose of the two trailing dots at the end of the command:

    cmake -DMATHEMATICA_INSTALL_DIR = "C:/Program Files/Wolfram Research/Mathematica/13.0" ..

    in the HowToBuild.md file?

  5. After installation of the extension in VS Code, how do you activate the extension?

  6. How would you use this extension in VS Code? What file types are recognized (.m, .nb, .wl,)?

kenkangxgwe commented 2 years ago

Hi @DougAtClir ,

  1. Do you mean the dependencies like CodeParser and CodeInspector? No they want affect your usage of MMA.
  2. No, just specify the paclet names in PacletInstall.
  3. Were https://github.com/kenkangxgwe/vscode-lsp-wl#installation and https://github.com/kenkangxgwe/vscode-lsp-wl#client-settings able to help you?
  4. Where did you quote this from?
  5. Configure it, open a file and specify the language to wolfram. Or open any file whose extension is one of the extensions listed here: https://github.com/kenkangxgwe/vscode-lsp-wl/blob/master/package.json#L72
  6. See 5.
DougAtClir commented 2 years ago
kenkangxgwe commented 2 years ago

but the instructions do not specifically say that you need to build the lsp-wsl server

You don't need to build the server. Actually, I don't know how to build the server either.

Visual Studio 2022

You should be using Visual Studio Code

this is in the HowToBuild.md on line 33.

I don't have this file in the repo

it would be useful to know where launch.json should be installed.

You don't need to, just download the extension and configure it following the README

DougAtClir commented 2 years ago
DougAtClir commented 2 years ago

These are the instructions that I am following from:

https://marketplace.visualstudio.com/items?itemName=lsp-wl.lsp-wl-client

When I create a new .WL file, I see the following in the Output:

Part::partd: Part specification CodeParser`ContainerNode[Byte, {}, <||>][[All,2]] is longer than depth of object.

General::stop: Further output of Part::partd will be suppressed during this calculation. [INFO 2022-08-06T08:56:16] {textDocument/documentColor, Quantity[0.007464144512940862, "Seconds"]} [INFO 2022-08-06T08:56:16] {textDocument/documentColor, 0.0174692}

Instructions for Wolfram Language Server 1.9:

  1. Wolfram Mathematicahttp://www.wolfram.com/mathematica/ (11.2 or higher1https://marketplace.visualstudio.com/items?itemName=lsp-wl.lsp-wl-client#footnote1) or Wolfram Enginehttps://www.wolfram.com/engine/ (12.0 or higher).

  2. Download the serverhttps://github.com/kenkangxgwe/lsp-wl from its repository.

git clone https://github.com/kenkangxgwe/lsp-wl.git

  1. Install the dependent paclets with the correct versions (currently 1.0 or later) from the Wolfram kernel / Mathematica. (This will cost some time for the first time) :

PacletInstall["CodeParser"] PacletInstall["CodeInspector"]

  1. Install the client extenstion from Visual Studio Marketplace: Wolfram Language Serverhttps://marketplace.visualstudio.com/items?itemName=lsp-wl.lsp-wl-client. The Client Settings for the Extension differ from those documented.

Client Settings Language support Once you have installed the extension, a few settings have to be done manually in the client side to make things work. After the extension is launched, go to Preference -> Settings -> User Settings -> Extensions -> Wolfram Language Server, and configure the following options:

From: 康小广 @.> Sent: Saturday, August 6, 2022 4:26 AM To: kenkangxgwe/vscode-lsp-wl @.> Cc: Martin Kimzey @.>; Mention @.> Subject: Re: [kenkangxgwe/vscode-lsp-wl] Questions about the install (Issue #18)

but the instructions do not specifically say that you need to build the lsp-wsl server

You don't need to build the server. Actually, I don't know how to build the server either.

Visual Studio 2022

You should be using Visual Studio Codehttps://code.visualstudio.com/

this is in the HowToBuild.md on line 33.

I don't have this file in the repo

it would be useful to know where launch.json should be installed.

You don't need to, just download the extension https://marketplace.visualstudio.com/items?itemName=lsp-wl.lsp-wl-client and configure it following the README

— Reply to this email directly, view it on GitHubhttps://github.com/kenkangxgwe/vscode-lsp-wl/issues/18#issuecomment-1207173948, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATX6XCIXCSCCGHZOWJSHMWDVXYOSFANCNFSM55L4JYYQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

DougAtClir commented 2 years ago

It appears to be running but:

[Error - 9:18:12 AM] Connection to server is erroring. Shutting down server.

From: 康小广 @.> Sent: Saturday, August 6, 2022 4:26 AM To: kenkangxgwe/vscode-lsp-wl @.> Cc: Martin Kimzey @.>; Mention @.> Subject: Re: [kenkangxgwe/vscode-lsp-wl] Questions about the install (Issue #18)

but the instructions do not specifically say that you need to build the lsp-wsl server

You don't need to build the server. Actually, I don't know how to build the server either.

Visual Studio 2022

You should be using Visual Studio Codehttps://code.visualstudio.com/

this is in the HowToBuild.md on line 33.

I don't have this file in the repo

it would be useful to know where launch.json should be installed.

You don't need to, just download the extension https://marketplace.visualstudio.com/items?itemName=lsp-wl.lsp-wl-client and configure it following the README

— Reply to this email directly, view it on GitHubhttps://github.com/kenkangxgwe/vscode-lsp-wl/issues/18#issuecomment-1207173948, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATX6XCIXCSCCGHZOWJSHMWDVXYOSFANCNFSM55L4JYYQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

kenkangxgwe commented 2 years ago

I have attached the HowToBuild.md file from my cloned source. HowToBuild.md

If my memory serves me, this is not from my repo, at least not written by me.

Part::partd: Part specification
    CodeParser`ContainerNode[Byte, {}, <||>][[All,2]]
     is longer than depth of object.

This is resolved in one of the latest updates in https://github.com/kenkangxgwe/lsp-wl recently. I think you already updated.

  • I am seeing a large number of diagnostic messages. Some are timing. Others appear to be errors and warnings.

You can filter them by adding the settings in setting.json, see also https://github.com/kenkangxgwe/vscode-lsp-wl#override-reporting-rules.

[Error - 9:18:12 AM] Connection to server is erroring. Shutting down server.

Could you enable the log (following https://github.com/kenkangxgwe/lsp-wl/wiki#enable-logging) and attach the log here? Thanks!

DougAtClir commented 2 years ago

From: 康小广 @.> Sent: Saturday, August 6, 2022 7:50 PM To: kenkangxgwe/vscode-lsp-wl @.> Cc: Martin Kimzey @.>; Mention @.> Subject: Re: [kenkangxgwe/vscode-lsp-wl] Questions about the install (Issue #18)

I have attached the HowToBuild.md file from my cloned source. HowToBuild.mdhttps://github.com/kenkangxgwe/vscode-lsp-wl/files/9274983/HowToBuild.md

If my memory serves me, this is not from my repo, at least not written by me.

Part::partd: Part specification

CodeParser`ContainerNode[Byte, {}, <||>][[All,2]]

 is longer than depth of object.

This is resolved in one of the latest updates in https://github.com/kenkangxgwe/lsp-wl recently. I think you already updated.

You can filter them by adding the settings in setting.json, see also https://github.com/kenkangxgwe/vscode-lsp-wl#override-reporting-rules.

[Error - 9:18:12 AM] Connection to server is erroring. Shutting down server.

Could you enable the log (following https://github.com/kenkangxgwe/lsp-wl/wiki#enable-logging) and attach the log here? Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/kenkangxgwe/vscode-lsp-wl/issues/18#issuecomment-1207299484, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATX6XCJ45GLVUES4K2OJD5TVX323JANCNFSM55L4JYYQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

DougAtClir commented 2 years ago

A larger log file…

From: 康小广 @.> Sent: Saturday, August 6, 2022 7:50 PM To: kenkangxgwe/vscode-lsp-wl @.> Cc: Martin Kimzey @.>; Mention @.> Subject: Re: [kenkangxgwe/vscode-lsp-wl] Questions about the install (Issue #18)

I have attached the HowToBuild.md file from my cloned source. HowToBuild.mdhttps://github.com/kenkangxgwe/vscode-lsp-wl/files/9274983/HowToBuild.md

If my memory serves me, this is not from my repo, at least not written by me.

Part::partd: Part specification

CodeParser`ContainerNode[Byte, {}, <||>][[All,2]]

 is longer than depth of object.

This is resolved in one of the latest updates in https://github.com/kenkangxgwe/lsp-wl recently. I think you already updated.

You can filter them by adding the settings in setting.json, see also https://github.com/kenkangxgwe/vscode-lsp-wl#override-reporting-rules.

[Error - 9:18:12 AM] Connection to server is erroring. Shutting down server.

Could you enable the log (following https://github.com/kenkangxgwe/lsp-wl/wiki#enable-logging) and attach the log here? Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/kenkangxgwe/vscode-lsp-wl/issues/18#issuecomment-1207299484, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATX6XCJ45GLVUES4K2OJD5TVX323JANCNFSM55L4JYYQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

DougAtClir commented 2 years ago

The attached wlserver.log is from a session with the following steps:

  1. Start VSCode.
  2. Open a Test.wl file. This contains no text.
  3. Enter a comment:

( Comment )

In the log, it looks like calls are attempted, but the following error is thrown:

Quantity[0.008149673510743582, "Seconds"]}

Catenate::invrp: The argument CodeParser`CodeParse[{ }, TabWidth -> 1][[All,2]] ( Comment )

 is not a valid Association or a list.

From: 康小广 @.> Sent: Saturday, August 6, 2022 7:50 PM To: kenkangxgwe/vscode-lsp-wl @.> Cc: Martin Kimzey @.>; Mention @.> Subject: Re: [kenkangxgwe/vscode-lsp-wl] Questions about the install (Issue #18)

I have attached the HowToBuild.md file from my cloned source. HowToBuild.mdhttps://github.com/kenkangxgwe/vscode-lsp-wl/files/9274983/HowToBuild.md

If my memory serves me, this is not from my repo, at least not written by me.

Part::partd: Part specification

CodeParser`ContainerNode[Byte, {}, <||>][[All,2]]

 is longer than depth of object.

This is resolved in one of the latest updates in https://github.com/kenkangxgwe/lsp-wl recently. I think you already updated.

You can filter them by adding the settings in setting.json, see also https://github.com/kenkangxgwe/vscode-lsp-wl#override-reporting-rules.

[Error - 9:18:12 AM] Connection to server is erroring. Shutting down server.

Could you enable the log (following https://github.com/kenkangxgwe/lsp-wl/wiki#enable-logging) and attach the log here? Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/kenkangxgwe/vscode-lsp-wl/issues/18#issuecomment-1207299484, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATX6XCJ45GLVUES4K2OJD5TVX323JANCNFSM55L4JYYQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

kenkangxgwe commented 2 years ago

Hi @DougAtClir , I don't think the attachment you sent from the email was actually accessible from here. Could you send it again?

Catenate::invrp:
   The argument CodeParser`CodeParse[{             }, TabWidth -> 1][[All,2]]

For this, could you try to git pull to the latest develop branch of the lsp-wl repo?

DougAtClir commented 2 years ago

I have pasted the log below. I had cloned the lsp-wl over the weekend to make sure that I had the latest. It looks like the last commit was 26-Jan-2021. Are there new updates that are not showing up on GitHub?

@.***

[DEBUG 2022-08-07T09:15:02] Logging level: DEBUG [INFO 2022-08-07T09:15:02] Initializing Wolfram Language Server [INFO 2022-08-07T09:15:09] Language server is connecting the client through socket. [INFO 2022-08-07T09:15:09] Server listening from port 6536... [INFO 2022-08-07T09:15:09] Debugger listening at port 53815 [DEBUG 2022-08-07T09:15:09] NewDivide!

Part::partd: Part specification CodeParser`ContainerNode[Byte, {}, <||>][[All,2]] is longer than depth of object. [INFO 2022-08-07T09:15:09] {InitialCheck, Quantity[0.2328282, "Seconds"]} [INFO 2022-08-07T09:15:14] {textDocument/documentColor, Quantity[0.032960582678223105, "Seconds"]}

Part::partd: Part specification CodeParser`ContainerNode[Byte, {}, <||>][[All,2]] is longer than depth of object. [INFO 2022-08-07T09:15:14] {textDocument/documentColor, 0.0138201} [DEBUG 2022-08-07T09:15:33] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [INFO 2022-08-07T09:15:33] {JustContinue, Quantity[0.0159936, "Seconds"]} [DEBUG 2022-08-07T09:15:33] NewDivide!

Part::partw: Part 2 of { } does not exist. (

Part::partd: Part specification CodeParser`ContainerNode[Byte, {}, <||>][[All,2]] is longer than depth of object.

General::stop: Further output of Part::partd will be suppressed during this calculation. [DEBUG 2022-08-07T09:15:35] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:35] NewDivide!

Part::partw: Part 2 of { } does not exist. (*

[INFO 2022-08-07T09:15:35] {JustContinue, Quantity[0.0869906, "Seconds"]} [INFO 2022-08-07T09:15:36] {textDocument/publishDiagnostics, Quantity[0.02091890205078073, "Seconds"]} [DEBUG 2022-08-07T09:15:37] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [INFO 2022-08-07T09:15:37] {JustContinue, Quantity[0.0529949, "Seconds"]} [DEBUG 2022-08-07T09:15:37] NewDivide!

Part::partw: Part 2 of { } does not exist. (*

General::stop: Further output of Part::partw will be suppressed during this calculation. [DEBUG 2022-08-07T09:15:37] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:37] NewDivide! [INFO 2022-08-07T09:15:37] {JustContinue, Quantity[0.0843109, "Seconds"]} [DEBUG 2022-08-07T09:15:38] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:38] NewDivide! [INFO 2022-08-07T09:15:38] {JustContinue, Quantity[0.0817821, "Seconds"]} [DEBUG 2022-08-07T09:15:38] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:38] NewDivide! [INFO 2022-08-07T09:15:38] {JustContinue, Quantity[0.0640163, "Seconds"]} [DEBUG 2022-08-07T09:15:38] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:38] NewDivide! [INFO 2022-08-07T09:15:38] {JustContinue, Quantity[0.061021, "Seconds"]} [INFO 2022-08-07T09:15:38] {textDocument/publishDiagnostics, Quantity[0.10147145592041085, "Seconds"]} [DEBUG 2022-08-07T09:15:38] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:38] NewDivide! [INFO 2022-08-07T09:15:38] {JustContinue, Quantity[0.0699994, "Seconds"]} [DEBUG 2022-08-07T09:15:39] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:39] NewDivide! [INFO 2022-08-07T09:15:39] {JustContinue, Quantity[0.0730382, "Seconds"]} [DEBUG 2022-08-07T09:15:39] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:39] NewDivide! [INFO 2022-08-07T09:15:39] {JustContinue, Quantity[0.1049435, "Seconds"]} [DEBUG 2022-08-07T09:15:39] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:39] NewDivide! [INFO 2022-08-07T09:15:39] {JustContinue, Quantity[0.067961, "Seconds"]} [DEBUG 2022-08-07T09:15:39] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:39] NewDivide! [INFO 2022-08-07T09:15:39] {JustContinue, Quantity[0.0719993, "Seconds"]} [DEBUG 2022-08-07T09:15:40] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [INFO 2022-08-07T09:15:40] {JustContinue, Quantity[0.02048, "Seconds"]} [DEBUG 2022-08-07T09:15:40] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:40] NewDivide! [INFO 2022-08-07T09:15:40] {JustContinue, Quantity[0.0670034, "Seconds"]} [DEBUG 2022-08-07T09:15:41] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [INFO 2022-08-07T09:15:41] {JustContinue, Quantity[0.0201633, "Seconds"]} [DEBUG 2022-08-07T09:15:41] NewDivide! [INFO 2022-08-07T09:15:41] {textDocument/publishDiagnostics, Quantity[0.037305970043945536, "Seconds"]} [INFO 2022-08-07T09:15:43] {textDocument/documentColor, Quantity[0.008149673510743582, "Seconds"]}

Catenate::invrp: The argument CodeParser`CodeParse[{ }, TabWidth -> 1][[All,2]] ( Comment )

 is not a valid Association or a list.

[INFO 2022-08-07T09:15:43] {textDocument/documentColor, 0.0615373} [INFO 2022-08-07T09:15:43] {textDocument/publishDiagnostics, Quantity[0.011341906597898799, "Seconds"]} [INFO 2022-08-07T09:15:44] Sending cached results of textDocument/documentColor [INFO 2022-08-07T09:15:46] {textDocument/publishDiagnostics, Quantity[0.008887327050778993, "Seconds"]} [DEBUG 2022-08-07T09:15:49] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:49] NewDivide! [INFO 2022-08-07T09:15:50] {JustContinue, Quantity[0.7513861, "Seconds"]} [DEBUG 2022-08-07T09:15:50] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [INFO 2022-08-07T09:15:50] {JustContinue, Quantity[0.1168832, "Seconds"]} [INFO 2022-08-07T09:15:50] {JustContinue, Quantity[0.1194993, "Seconds"]} [DEBUG 2022-08-07T09:15:50] NewDivide! [INFO 2022-08-07T09:15:50] {JustContinue, Quantity[0.1414043, "Seconds"]} [INFO 2022-08-07T09:15:51] {textDocument/publishDiagnostics, Quantity[0.008584541638185783, "Seconds"]} [INFO 2022-08-07T09:15:54] {textDocument/publishDiagnostics, Quantity[0.028091758599856576, "Seconds"]} [INFO 2022-08-07T09:15:55] {JustContinue, Quantity[0.0140212, "Seconds"]} [DEBUG 2022-08-07T09:15:55] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:55] NewDivide! [INFO 2022-08-07T09:15:55] {JustContinue, Quantity[0.0710015, "Seconds"]} [DEBUG 2022-08-07T09:15:56] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [DEBUG 2022-08-07T09:15:56] NewDivide! [INFO 2022-08-07T09:15:56] {JustContinue, Quantity[0.0379939, "Seconds"]} [INFO 2022-08-07T09:15:56] {textDocument/publishDiagnostics, Quantity[0.04744125109863262, "Seconds"]} [INFO 2022-08-07T09:15:57] {textDocument/documentColor, Quantity[0.023223303399660722, "Seconds"]}

Catenate::invrp: The argument CodeParser`CodeParse[{ }, TabWidth -> 1][[All,2]] ( Comment ) Switch[ is not a valid Association or a list. [INFO 2022-08-07T09:15:57] {textDocument/documentColor, 0.0160453} [INFO 2022-08-07T09:15:59] Sending cached results of textDocument/documentColor [INFO 2022-08-07T09:15:59] {textDocument/publishDiagnostics, Quantity[0.021226791217038965, "Seconds"]} [INFO 2022-08-07T09:16:01] {textDocument/publishDiagnostics, Quantity[0.007855908282470736, "Seconds"]} [DEBUG 2022-08-07T09:16:02] Change Document file:///c%3A/Projects/SBIR-NSF%20Proposal/WL/Test.wl [INFO 2022-08-07T09:16:02] {JustContinue, Quantity[0.027006, "Seconds"]} [DEBUG 2022-08-07T09:16:02] NewDivide! [INFO 2022-08-07T09:16:04] {textDocument/publishDiagnostics, Quantity[0.025540299969482483, "Seconds"]} [INFO 2022-08-07T09:16:07] {textDocument/publishDiagnostics, Quantity[0.02507454810180665, "Seconds"]} [INFO 2022-08-07T09:16:09] {textDocument/documentColor, Quantity[0.025788924603270758, "Seconds"]}

Catenate::invrp: The argument CodeParser`CodeParse[{ }, TabWidth -> 1][[All,2]] ( Comment ) Switch[] is not a valid Association or a list.

General::stop: Further output of Catenate::invrp will be suppressed during this calculation. [INFO 2022-08-07T09:16:09] {textDocument/documentColor, 0.0158088} [INFO 2022-08-07T09:16:29] Closing socket connection... [INFO 2022-08-07T09:16:29] Server stopped normally.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Monday, August 8, 2022 2:55 AM To: @.> Cc: Martin @.>; @.> Subject: Re: [kenkangxgwe/vscode-lsp-wl] Questions about the install (Issue #18)

Hi @DougAtClirhttps://github.com/DougAtClir , I don't think the attachment you sent from the email was actually accessible from here. Could you send it again?

Catenate::invrp:

The argument CodeParser`CodeParse[{ }, TabWidth -> 1][[All,2]]

For this, could you try to git pull to the latest develop branch of the lsp-wlhttps://github.com/kenkangxgwe/lsp-wl repo?

― Reply to this email directly, view it on GitHubhttps://github.com/kenkangxgwe/vscode-lsp-wl/issues/18#issuecomment-1207738827, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATX6XCIQ7WTHVT2NGO2BUSDVYCVNRANCNFSM55L4JYYQ. You are receiving this because you were mentioned.Message ID: @.***>

kenkangxgwe commented 2 years ago

Hi, please checkout the develop branch which was updated quite recently.

DougAtClir commented 2 years ago

As much as I would love to use this extension, I am getting nowhere with it and can’t spend any more time on it.

I may try it again in the future. It is a great idea, and I am all for it.

I did the following:

  1. Deleted the existing lsp-wl folder on my machine.

  2. Opened GitBash and executed the following command:

git clone https://github.com/kenkangxgwe/lsp-wl.git

  1. Went to the Developer branch and downloaded a zip of the latest code.

  2. Extracted the zip to the lsp-wl folder with replace existing files.

  3. Started VSCode. The messages are below.

Notes:

[INFO 2022-08-09T07:36:25] Initializing Wolfram Language Server [INFO 2022-08-09T07:36:33] Language server is connecting the client through socket. [Trace - 7:36:33 AM] Sending request 'initialize - (0)'. [INFO 2022-08-09T07:36:33] Server listening from port 6536... [Trace - 7:36:33 AM] Received response 'initialize - (0)' in 78ms. [Trace - 7:36:33 AM] Sending notification 'initialized'. [Trace - 7:36:33 AM] Sending notification 'textDocument/didOpen'. [INFO 2022-08-09T07:36:33] Debugger listening at port 60186 [Trace - 7:36:33 AM] Sending request 'textDocument/documentSymbol - (1)'. [Trace - 7:36:33 AM] Sending request 'textDocument/documentColor - (2)'. [Trace - 7:36:33 AM] Received notification 'textDocument/publishDiagnostics'.

Part::partw: Part 2 of { } does not exist. ( Comment )

[Trace - 7:36:33 AM] Received response 'textDocument/documentSymbol - (1)' in 229ms. [INFO 2022-08-09T07:36:33] {InitialCheck, Quantity[0.22315899999999544, "Seconds"]} [Trace - 7:36:34 AM] Sending request 'textDocument/codeLens - (3)'. [Trace - 7:36:34 AM] Received response 'textDocument/codeLens - (3)' in 25ms. [INFO 2022-08-09T07:36:38] {textDocument/documentColor, Quantity[0.03343669999999577, "Seconds"]}

Part::partd: Part specification CodeParser`ContainerNode[Byte, {}, <||>][[All,2]] is longer than depth of object.

Catenate::invrp: The argument CodeParser`CodeParse[{ }, TabWidth -> 1][[All,2]] ( Comment )

 is not a valid Association or a list.

[Trace - 7:36:38 AM] Received response 'textDocument/documentColor - (2)' in 5405ms. [INFO 2022-08-09T07:36:38] {textDocument/documentColor, 0.134487}

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Tuesday, August 9, 2022 6:08 AM To: @.> Cc: Martin @.>; @.> Subject: Re: [kenkangxgwe/vscode-lsp-wl] Questions about the install (Issue #18)

Hi, please checkout the develop branch which was updated quite recently.

― Reply to this email directly, view it on GitHubhttps://github.com/kenkangxgwe/vscode-lsp-wl/issues/18#issuecomment-1209181315, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATX6XCJC3TANL4TARKHT7VTVYIUZRANCNFSM55L4JYYQ. You are receiving this because you were mentioned.Message ID: @.***>

kenkangxgwe commented 2 years ago

What you did is a bad practice of checking out develop branch, because even if you went to the GitHub page of develop branch and downloaded the code, it's still default to be the master branch. And I admit that I should have made this process more user-friendly. These piece of code that gave an error is no longer there in the develop branch:

Part::partd: Part specification
    CodeParser`ContainerNode[Byte, {}, <||>][[All,2]]
     is longer than depth of object.

See: https://github.com/kenkangxgwe/lsp-wl/blob/develop/src/WolframLanguageServer/TextDocument.wl#L434 vs. https://github.com/kenkangxgwe/lsp-wl/blob/master/src/WolframLanguageServer/TextDocument.wl#L441

So I suggest you trying one more time:

  1. Delete the lsp-wl repo you cloned
  2. Run git clone -b develop https://github.com/kenkangxgwe/lsp-wl.git in the parent folder.
DougAtClir commented 2 years ago

@.***

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Tuesday, August 9, 2022 1:41 PM To: @.> Cc: Martin @.>; @.> Subject: Re: [kenkangxgwe/vscode-lsp-wl] Questions about the install (Issue #18)

What you did is a bad practice of checking out develop branch, because even if you went to the GitHub page of develop branch and downloaded the code, it's still default to be the master branch. And I admit that I should have made this process more user-friendly. These piece of code that gave an error is no longer there in the develop branch:

Part::partd: Part specification

CodeParser`ContainerNode[Byte, {}, <||>][[All,2]]

 is longer than depth of object.

See: https://github.com/kenkangxgwe/lsp-wl/blob/develop/src/WolframLanguageServer/TextDocument.wl#L434 vs. https://github.com/kenkangxgwe/lsp-wl/blob/master/src/WolframLanguageServer/TextDocument.wl#L441

So I suggest you trying one more time:

  1. Delete the lsp-wl repo you cloned
  2. Run git clone -b develop https://github.com/kenkangxgwe/lsp-wl.git in the parent folder.

― Reply to this email directly, view it on GitHubhttps://github.com/kenkangxgwe/vscode-lsp-wl/issues/18#issuecomment-1209683045, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATX6XCMSXDJ3XX3WUDRYESLVYKJ4NANCNFSM55L4JYYQ. You are receiving this because you were mentioned.Message ID: @.***>

DougAtClir commented 1 year ago

I did the following:

  1. Delete the lsp-wl repo you cloned
  2. Run git clone -b develop https://github.com/kenkangxgwe/lsp-wl.git in the parent folder. When I start VSCode, it initializes the Wolfram Language Server.

    • Context sensitive help appears to work.

    • Syntax coloring is not working.

Below are some log messages:

[INFO 2022-08-09T13:52:11] Initializing Wolfram Language Server [INFO 2022-08-09T13:52:19] Language server is connecting the client through socket. [Trace - 1:52:19 PM] Sending request 'initialize - (0)'. [INFO 2022-08-09T13:52:19] Server listening from port 6536... [Trace - 1:52:19 PM] Received response 'initialize - (0)' in 80ms. [Trace - 1:52:19 PM] Sending notification 'initialized'. [Trace - 1:52:19 PM] Sending notification 'textDocument/didOpen'. [INFO 2022-08-09T13:52:19] Debugger listening at port 52310 [Trace - 1:52:19 PM] Sending request 'textDocument/documentSymbol - (1)'. [Trace - 1:52:19 PM] Sending request 'textDocument/documentColor - (2)'. [Trace - 1:52:19 PM] Sending request 'textDocument/codeAction - (3)'. [Trace - 1:52:19 PM] Sending request 'textDocument/documentLink - (4)'. [INFO 2022-08-09T13:52:19] The server is initialized in 13.2375188 s. [Trace - 1:52:19 PM] Received notification 'textDocument/publishDiagnostics'. [Trace - 1:52:20 PM] Sending request 'textDocument/foldingRange - (5)'. [Trace - 1:52:20 PM] Received response 'textDocument/documentSymbol - (1)' in 248ms. [Trace - 1:52:20 PM] Received response 'textDocument/documentColor - (2)' in 275ms. [Trace - 1:52:20 PM] Received response 'textDocument/codeAction - (3)' in 295ms. [Trace - 1:52:20 PM] Received response 'textDocument/documentLink - (4)' in 301ms. [Trace - 1:52:20 PM] Received response 'textDocument/foldingRange - (5)' in 154ms. [INFO 2022-08-09T13:52:20] {InitialCheck, Quantity[0.43988099999999974, "Seconds"]} [Trace - 1:52:21 PM] Sending request 'textDocument/codeLens - (6)'. [Trace - 1:52:21 PM] Received response 'textDocument/codeLens - (6)' in 20ms. [INFO 2022-08-09T13:52:29] {ClientProcessCheck, Quantity[0.07654540000000054, "Seconds"]} [Trace - 1:52:39 PM] Sending request 'textDocument/codeAction - (7)'. [Trace - 1:52:39 PM] Received response 'textDocument/codeAction - (7)' in 22ms. [Trace - 1:52:39 PM] Sending notification 'textDocument/didChange'. [Trace - 1:52:39 PM] Sending request 'textDocument/foldingRange - (8)'. [Trace - 1:52:39 PM] Received response 'textDocument/foldingRange - (8)' in 31ms. [Trace - 1:52:39 PM] Sending request 'textDocument/codeLens - (9)'. [Trace - 1:52:39 PM] Received response 'textDocument/codeLens - (9)' in 22ms. [Trace - 1:52:39 PM] Sending request 'textDocument/documentSymbol - (10)'. [Trace - 1:52:39 PM] Received response 'textDocument/documentSymbol - (10)' in 31ms. [INFO 2022-08-09T13:52:40] {JustContinue, Quantity[0.3344695999999985, "Seconds"]} [INFO 2022-08-09T13:52:40] {ClientProcessCheck, Quantity[0.24858019999999925, "Seconds"]} [Trace - 1:52:40 PM] Sending request 'textDocument/documentLink - (11)'. [Trace - 1:52:40 PM] Sending request 'textDocument/documentColor - (12)'. [Trace - 1:52:40 PM] Received response 'textDocument/documentLink - (11)' in 23ms. [Trace - 1:52:40 PM] Received response 'textDocument/documentColor - (12)' in 46ms. [Trace - 1:52:47 PM] Sending notification 'textDocument/didChange'. [Trace - 1:52:47 PM] Sending request 'textDocument/foldingRange - (13)'. [Trace - 1:52:47 PM] Received response 'textDocument/foldingRange - (13)' in 30ms. [Trace - 1:52:47 PM] Sending request 'textDocument/codeLens - (14)'. [Trace - 1:52:47 PM] Received response 'textDocument/codeLens - (14)' in 16ms. [Trace - 1:52:47 PM] Sending request 'textDocument/documentSymbol - (15)'. [Trace - 1:52:48 PM] Received response 'textDocument/documentSymbol - (15)' in 54ms. [INFO 2022-08-09T13:52:48] {JustContinue, Quantity[0.3273249000000007, "Seconds"]} [Trace - 1:52:48 PM] Sending request 'textDocument/documentLink - (16)'. [Trace - 1:52:48 PM] Sending request 'textDocument/documentColor - (17)'. [Trace - 1:52:48 PM] Received response 'textDocument/documentLink - (16)' in 27ms. [Trace - 1:52:48 PM] Received response 'textDocument/documentColor - (17)' in 40ms. [INFO 2022-08-09T13:52:50] {ClientProcessCheck, Quantity[0.10180880000000059, "Seconds"]} [INFO 2022-08-09T13:53:00] {ClientProcessCheck, Quantity[0.10314119999999999, "Seconds"]} [INFO 2022-08-09T13:53:10] {ClientProcessCheck, Quantity[0.05999010000000027, "Seconds"]} [INFO 2022-08-09T13:53:20] {ClientProcessCheck, Quantity[0.12624620000000064, "Seconds"]} [INFO 2022-08-09T13:53:30] {ClientProcessCheck, Quantity[0.11928020000000217, "Seconds"]} [INFO 2022-08-09T13:53:40] {ClientProcessCheck, Quantity[0.10828289999999896, "Seconds"]} [INFO 2022-08-09T13:53:50] {ClientProcessCheck, Quantity[0.07054119999999386, "Seconds"]} [INFO 2022-08-09T13:54:00] {ClientProcessCheck, Quantity[0.08645630000000293, "Seconds"]} [INFO 2022-08-09T13:54:11] {ClientProcessCheck, Quantity[0.047355299999999545, "Seconds"]} [INFO 2022-08-09T13:54:21] {ClientProcessCheck, Quantity[0.0733655000000013, "Seconds"]} [INFO 2022-08-09T13:54:31] {ClientProcessCheck, Quantity[0.04883489999999924, "Seconds"]}

From: 康小广 @.> Sent: Tuesday, August 9, 2022 1:41 PM To: kenkangxgwe/vscode-lsp-wl @.> Cc: Martin Kimzey @.>; Mention @.> Subject: Re: [kenkangxgwe/vscode-lsp-wl] Questions about the install (Issue #18)

What you did is a bad practice of checking out develop branch, because even if you went to the GitHub page of develop branch and downloaded the code, it's still default to be the master branch. And I admit that I should have made this process more user-friendly. These piece of code that gave an error is no longer there in the develop branch:

Part::partd: Part specification

CodeParser`ContainerNode[Byte, {}, <||>][[All,2]]

 is longer than depth of object.

See: https://github.com/kenkangxgwe/lsp-wl/blob/develop/src/WolframLanguageServer/TextDocument.wl#L434 vs. https://github.com/kenkangxgwe/lsp-wl/blob/master/src/WolframLanguageServer/TextDocument.wl#L441

So I suggest you trying one more time:

  1. Delete the lsp-wl repo you cloned
  2. Run git clone -b develop https://github.com/kenkangxgwe/lsp-wl.git in the parent folder.

— Reply to this email directly, view it on GitHubhttps://github.com/kenkangxgwe/vscode-lsp-wl/issues/18#issuecomment-1209683045, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATX6XCMSXDJ3XX3WUDRYESLVYKJ4NANCNFSM55L4JYYQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

DougAtClir commented 1 year ago

I am seeing the following error:

Get::noopen: Cannot open C:\Users\Admin\lsp-wl/init.wls.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Tuesday, August 9, 2022 6:08 AM To: @.> Cc: Martin @.>; @.> Subject: Re: [kenkangxgwe/vscode-lsp-wl] Questions about the install (Issue #18)

Hi, please checkout the develop branch which was updated quite recently.

― Reply to this email directly, view it on GitHubhttps://github.com/kenkangxgwe/vscode-lsp-wl/issues/18#issuecomment-1209181315, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATX6XCJC3TANL4TARKHT7VTVYIUZRANCNFSM55L4JYYQ. You are receiving this because you were mentioned.Message ID: @.***>

kenkangxgwe commented 1 year ago
  • Syntax coloring is not working.

See https://github.com/kenkangxgwe/lsp-wl/wiki#syntax-highlight

Get::noopen: Cannot open C:\Users\Admin\lsp-wl/init.wls.

Is there a file located at C:\Users\Admin\lsp-wl/init.wls?