<
From version < 36.1 >
edited by Soeren Domroes
on 2020/04/16 11:49
To version < 40.1 >
edited by Soeren Domroes
on 2020/08/12 11:46
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,19 +1,26 @@
1 -= Running KEITH =
1 +{{layout}}
2 +{{layout-section ac:type="single"}}
3 +{{layout-cell}}
2 2  
3 3  
4 -
5 5  {{toc maxLevel="2"/}}
7 +{{/layout-cell}}
8 +{{/layout-section}}
6 6  
10 +{{layout-section ac:type="single"}}
11 +{{layout-cell}}
7 7  == Setting up your Eclipse ==
8 8  
9 -For everything not mentioned here refer to [[Getting Eclipse>>doc:KIELER.Getting Eclipse||shape="rect"]] guide.
14 +For everything not mentioned here refer to [[Getting Eclipse>>doc:KIELER.Getting Eclipse||shape="rect"]] guide. Choose the last Eclipse version and I personally recommend Eclipse for RCP & RAP developers since the Plug-In Development perspective is the default one. Another helpful perspective might be the Git perspective.
10 10  
11 11  Use the installer go to advanced mode, add the KIELER url. If you plan to develop for the semantic language server (e.g. for the compiler) you should select KIELER semantics for diagram only KIELER pragmatics. In any case select the keith stream.
12 12  
13 -If you plan to develop in elk at the same time first select the Eclispe Layout Kernel setup and after that the semantics or pragmatics setup.
18 +If you plan to develop in elk at the same time first select the Eclispe Layout Kernel setup and after that either the semantics or pragmatics setup.
14 14  
15 15  Wait till everything installs and the setup tasks finish. If you have any problems in this stage refer to the [[Getting Eclipse>>doc:KIELER.Getting Eclipse||shape="rect"]] guide.
16 16  
22 +Make sure that you have necessary forks of ELK/KlighD set up.
23 +
17 17  If you have problems in the workspace that are still there after a clean build do the following:
18 18  
19 19  * Disable Project>Build automatically
... ... @@ -20,7 +20,13 @@
20 20  * Select all Klighd and pragmatics plugins and do Project>Clean>Only selected and build only selected
21 21  * Do the same for the semantics projects
22 22  * Enable Project>Build automatically
30 +{{/layout-cell}}
31 +{{/layout-section}}
23 23  
33 +{{layout-section ac:type="two_equal"}}
34 +{{layout-cell}}
35 +== Legacy Eclipse Application ==
36 +
24 24  To run the language server go to //Run Configurations// create a new E//clipse Application// run configuration and select //Run an application//  and //de.cau.cs.kieler.language.server.LanguageServer// (for semantics LS,//de.cau.cs.kieler.kgraph.language.server.LanguageServer// otherwise)
25 25  
26 26  == [[image:attach:Screenshot from 2019-02-15 14-10-50.png]] ==
... ... @@ -41,8 +41,34 @@
41 41  
42 42  [[image:attach:Screenshot from 2019-02-15 14-13-34.png]]
43 43  
44 -The default port to which KEITH tries to connect is 5007. You can of course change this for the languae server but be aware that this has to be changed in KEITH too.
57 +The default port to which KEITH tries to connect is 5007. You can of course change this for the language server but be aware that this has to be changed in KEITH too.
45 45  
59 +\\
60 +{{/layout-cell}}
61 +
62 +{{layout-cell}}
63 +== Java Application ==
64 +
65 +To run the language server go to //Run Configurations// create a new //Java Application// run configuration.
66 +
67 +Select the **//Project//** //de.cau.cs.kieler.language.server// or //de.cau.cs.kieler.pragmatics.language.server// and the **Main class **//de.cau.cs.kieler.language.server.LanguageServer// or //de.cau.cs.kieler.pragmatics.language.server.PragmaticsLanguageServer//.
68 +
69 +[[image:attach:Screenshot from 2020-08-12 13-32-36.png]]
70 +
71 +In the next step all projects that you want to include in your language server have to be added to the classpath.
72 +
73 +Go to **Classpath**, select **User Entries**,  click** Add Projects...**, and select all required projects (if you are unsure just add all of them).
74 +
75 +Click on **Advanced**>**Add Folders** add select the project folders of all projects you added earlier.
76 +
77 +In the **Arguments** tab make sure to add //-Dport=5007// to the **VM arguments**.
78 +
79 +\\
80 +{{/layout-cell}}
81 +{{/layout-section}}
82 +
83 +{{layout-section ac:type="single"}}
84 +{{layout-cell}}
46 46  == Setting up a KEITH developer setup... ==
47 47  
48 48  General requirements:
... ... @@ -59,11 +59,11 @@
59 59  
60 60  (Theia has a [[guide >>url:https://www.theia-ide.org/doc/authoring_extensions||shape="rect"]]for extension development that might be helpful)
61 61  
62 -install node 8:
101 +install node (for the version we refer to the Theia developer guide):
63 63  
64 64  {{code}}
65 65  curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
66 -nvm install 8
105 +nvm install 10
67 67  {{/code}}
68 68  
69 69  Install python if you haven't (remember: Python 2: , Python 3: ).
... ... @@ -84,7 +84,7 @@
84 84  
85 85  == ... on windows: ==
86 86  
87 -Install [[node 8>>url:https://nodejs.org/download/release/v8.15.0/||shape="rect"]] for windows. I personally used the {{code language="none"}}.msi{{/code}}.
126 +Install [[node>>url:https://nodejs.org/download/release/v8.15.0/||shape="rect"]] for windows. I personally used the {{code language="none"}}.msi{{/code}}. For the version refer to the Theia developer guide.
88 88  
89 89  Use that to install windows-build-tools by executing the command in an administrative powershell.
90 90  
... ... @@ -153,8 +153,12 @@
153 153  {{info}}
154 154  If you previously build keith electron, you have to execute {{code language="none"}}yarn run rebuild:electron{{/code}}
155 155  {{/info}}
195 +{{/layout-cell}}
196 +{{/layout-section}}
156 156  
157 -== Running the already build LS (you normally do not want to do this) ==
198 +{{layout-section ac:type="two_equal"}}
199 +{{layout-cell}}
200 +== Running the already build LS (legacy, you normally do not want to do this) ==
158 158  
159 159  Go to the latest [[Bamboo build>>url:https://rtsys.informatik.uni-kiel.de/bamboo/browse/KISEMA-NSI||shape="rect"]] and go to Artifacts.
160 160  
... ... @@ -180,6 +180,26 @@
180 180  -Dport=5007
181 181  {{/code}}
182 182  
226 +\\
227 +
228 +\\
229 +{{/layout-cell}}
230 +
231 +{{layout-cell}}
232 +== Running the already build LS ==
233 +
234 +Go to the latest [[Bamboo build>>url:https://rtsys.informatik.uni-kiel.de/bamboo/browse/KISEMA-TSIWE/latest||shape="rect"]] and go to Artifacts.
235 +
236 +Select the language server for your OS (this will be a jar file) and run it via:
237 +
238 +{{code}}
239 +java -Dport=5007 -jar <name-of-the-jar-file>
240 +{{/code}}
241 +{{/layout-cell}}
242 +{{/layout-section}}
243 +
244 +{{layout-section ac:type="single"}}
245 +{{layout-cell}}
183 183  5007 is the standard port KEITH is currently connecting to in socket mode. You can find this port in your Theia application at the following location:
184 184  
185 185  Assume you are in the [[keith >>url:https://git.rtsys.informatik.uni-kiel.de/projects/KIELER/repos/keith/browse||shape="rect"]]repository. Go to {{code language="none"}}keith-app{{/code}}, you should see something like this:
... ... @@ -202,7 +202,11 @@
202 202  \\
203 203  
204 204  The {{code language="none"}}LSP_PORT{{/code}} option is used to activate the connection via socket. It is also possible to specify a relative location to a LS via {{code language="none"}}LS_PATH=<path to LS>{{/code}}.
268 +{{/layout-cell}}
269 +{{/layout-section}}
205 205  
271 +{{layout-section ac:type="single"}}
272 +{{layout-cell}}
206 206  = Known Issues =
207 207  
208 208  === Known issues for windows: ===
... ... @@ -232,5 +232,6 @@
232 232  yarn
233 233  {{/code}} already builds the correct sources).
234 234  )))
235 -
236 -\\
302 +{{/layout-cell}}
303 +{{/layout-section}}
304 +{{/layout}}
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -75694098
1 +88310090
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/75694098/Running KEITH
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/88310090/Running KEITH