3
3
[ ![ Develop with: Wolfram Language] ( https://img.shields.io/badge/Develop%20with-Wolfram%20Language-%23d81013.svg )] ( http://www.wolfram.com/language/ )
4
4
[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
5
5
6
- ![ WolframLanguageServerLogo] ( https://raw.githubusercontent.com/kenkangxgwe/lsp-wl/master/ images/wolfram-language-server-logo-clipped.png)
7
- > by [ kenkangxgwe] ( mailto:kenkangxgwe@gmail .com) and [ hxianglong] ( https://github.com/huxianglong )
6
+ ![ WolframLanguageServerLogo] ( images/wolfram-language-server-logo-clipped.png )
7
+ > by [ kenkangxgwe] ( https://github .com/kenkangxgwe ) and [ hxianglong] ( https://github.com/huxianglong )
8
8
9
9
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
10
10
** Table of Contents**
11
11
12
12
- [ Wolfram Language Server] ( #wolfram-language-server )
13
- - [ Installation] ( #installation )
14
- - [ Run the Server] ( #run-the-server )
15
- - [ Features] ( #features )
16
- - [ Contribute] ( #contribute )
17
- - [ Design Principles] ( #design-principles )
18
- - [ Todo list] ( #todo-list )
19
- - [ Donations :dollar : ] ( #donations-dollar )
20
- - [ Footnotes] ( #footnotes )
13
+ - [ Installation] ( #installation )
14
+ - [ Run the Server] ( #run-the-server )
15
+ - [ Features] ( #features )
16
+ - [ Contribute] ( #contribute )
17
+ - [ Design Principles] ( #design-principles )
18
+ - [ Todo list] ( #todo-list )
19
+ - [ Donations :dollar : ] ( #donations-dollar )
20
+ - [ Footnotes] ( #footnotes )
21
21
22
22
<!-- markdown-toc end -->
23
23
@@ -30,19 +30,19 @@ implemented in Wolfram Language itself.
30
30
Our current goal is to provide the experience as good as the Mathematica FrontEnd
31
31
with addition power from the editor.
32
32
33
- We have provided the client-side code for VS Code in this repo , which is based on some slight
33
+ We have provided the client-side code for VS Code [ here ] ( https://github.com/kenkangxgwe/vscode-lsp-wl ) , which is based on some slight
34
34
modifications of [ Microsoft's LSP
35
35
example] ( https://github.com/Microsoft/vscode-extension-samples/tree/master/lsp-sample ) .
36
36
If you are using other tools supporting LSP, some slight modifications to the
37
37
client would certainly work too.
38
38
39
39
## Installation
40
40
41
- 0 . [ Wolfram Mathematica] ( http://www.wolfram.com/mathematica/ ) (11.2 or
42
- higher<a name =" ref1 " ></a >[ <sup >1</sup >] ( #footnote1 ) ).
41
+ 0 . [ Wolfram Mathematica] ( http://www.wolfram.com/mathematica/ ) (11.2 or higher<a
42
+ name="ref1"></a >[ <sup >1</sup >] ( #footnote1 ) ) or [ Wolfram
43
+ Engine] ( https://www.wolfram.com/engine/ ) (12.0 or higher).
43
44
44
- 1 . Download the [ server] ( https://github.com/kenkangxgwe/lsp-wl ) from its
45
- repository.
45
+ 1 . Use git to clone this repository.
46
46
47
47
``` sh
48
48
git clone https://github.com/kenkangxgwe/lsp-wl.git
@@ -65,9 +65,11 @@ wolframscript -f /path/to/lsp-wl/init.wls [args]
65
65
The posible arguments for the server are
66
66
67
67
- ` --help, -h ` to print help information.
68
- - ` --socket=port ` to assign the port that the server connect to. (Default:
69
- ` 6536 ` )
70
- Socket is the only channel that we currently support.
68
+ - ` --socket=port ` to assign the port to which the server will connect. (Default:
69
+ ` 6536 ` )
70
+ - ` --tcp-server=port ` to assign the port at which the server will start. (Default:
71
+ ` 6536 ` )
72
+ - ` --pipe=pipename ` to specify the pipe name for the server to connect to.
71
73
- ` --log=level, -l level ` to specify the logging level of the server.
72
74
(Levels: ` error ` , ` warn ` , ` info ` , ` debug ` . Default: ` info ` )
73
75
- ` --test, -t ` to run the unit test for the server.
@@ -89,20 +91,20 @@ This is a good way to see the results from the unit tests.
89
91
- * Hover:* Provide definitions for Wolfram functions and system variables, such
90
92
as ` String ` and ` $Path ` .
91
93
92
- ![ hover] ( https://raw.githubusercontent.com/kenkangxgwe/lsp-wl/develop/ images/hover.png)
94
+ ![ hover] ( images/hover.png )
93
95
94
96
- * Completion:* The completion is triggered by the client automatically.
95
97
Currently, Wolfram functions and system variables would be displayed.
96
98
97
99
- * Completion Resolve:* Further information would be provided for the items in
98
100
the list.
99
101
100
- ![ completion] ( https://raw.githubusercontent.com/kenkangxgwe/lsp-wl/develop/ images/completion.png)
102
+ ![ completion] ( images/completion.png )
101
103
102
104
- * Diagnostics:* Syntax error would be underlined. However, the specific syntax
103
105
error is not supported at the moment.
104
106
105
- ![ diagnostics] ( https://raw.githubusercontent.com/kenkangxgwe/lsp-wl/develop/ images/diagnostics.png)
107
+ ![ diagnostics] ( images/diagnostics.png )
106
108
107
109
This is an early release, so more features are on the way. Syntax highlight is
108
110
NOT supported according to the design of LSP, but there are already some good
@@ -160,8 +162,7 @@ thanks in advance :smile:.
160
162
161
163
162
164
- Alipay (With QRCode): 13916018006
163
- ![ Alipay
164
- QRCode] ( https://raw.githubusercontent.com/kenkangxgwe/lsp-wl/master/images/alipay.jpg )
165
+ ![ Alipay QRCode] ( images/alipay.jpg )
165
166
166
167
## Footnotes
167
168
0 commit comments