Changes for page Running KEITH
Last modified by Richard Kreissig on 2023/09/14 08:48
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,26 +1,19 @@ 1 -{{layout}} 2 -{{layout-section ac:type="single"}} 3 -{{layout-cell}} 1 += Running KEITH = 4 4 5 5 4 + 6 6 {{toc maxLevel="2"/}} 7 -{{/layout-cell}} 8 -{{/layout-section}} 9 9 10 -{{layout-section ac:type="single"}} 11 -{{layout-cell}} 12 12 == Setting up your Eclipse == 13 13 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.9 +For everything not mentioned here refer to [[Getting Eclipse>>doc:KIELER.Getting Eclipse||shape="rect"]] guide. 15 15 16 16 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. 17 17 18 -If you plan to develop in elk at the same time first select the Eclispe Layout Kernel setup and after that eitherthesemantics or pragmatics setup.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. 19 19 20 20 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. 21 21 22 -Make sure that you have necessary forks of ELK/KlighD set up. 23 - 24 24 If you have problems in the workspace that are still there after a clean build do the following: 25 25 26 26 * Disable Project>Build automatically ... ... @@ -27,13 +27,7 @@ 27 27 * Select all Klighd and pragmatics plugins and do Project>Clean>Only selected and build only selected 28 28 * Do the same for the semantics projects 29 29 * Enable Project>Build automatically 30 -{{/layout-cell}} 31 -{{/layout-section}} 32 32 33 -{{layout-section ac:type="two_equal"}} 34 -{{layout-cell}} 35 -== Legacy Eclipse Application == 36 - 37 37 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) 38 38 39 39 == [[image:attach:Screenshot from 2019-02-15 14-10-50.png]] == ... ... @@ -54,34 +54,8 @@ 54 54 55 55 [[image:attach:Screenshot from 2019-02-15 14-13-34.png]] 56 56 57 -The default port to which KEITH tries to connect is 5007. You can of course change this for the langua ge server but be aware that this has to be changed in KEITH too.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. 58 58 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}} 85 85 == Setting up a KEITH developer setup... == 86 86 87 87 General requirements: ... ... @@ -98,11 +98,11 @@ 98 98 99 99 (Theia has a [[guide >>url:https://www.theia-ide.org/doc/authoring_extensions||shape="rect"]]for extension development that might be helpful) 100 100 101 -install node (for the version we refer to the Theia developer guide):62 +install node 8: 102 102 103 103 {{code}} 104 104 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash 105 -nvm install 1066 +nvm install 8 106 106 {{/code}} 107 107 108 108 Install python if you haven't (remember: Python 2: , Python 3: ). ... ... @@ -123,7 +123,7 @@ 123 123 124 124 == ... on windows: == 125 125 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.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}}. 127 127 128 128 Use that to install windows-build-tools by executing the command in an administrative powershell. 129 129 ... ... @@ -192,12 +192,8 @@ 192 192 {{info}} 193 193 If you previously build keith electron, you have to execute {{code language="none"}}yarn run rebuild:electron{{/code}} 194 194 {{/info}} 195 -{{/layout-cell}} 196 -{{/layout-section}} 197 197 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) == 157 +== Running the already build LS (you normally do not want to do this) == 201 201 202 202 Go to the latest [[Bamboo build>>url:https://rtsys.informatik.uni-kiel.de/bamboo/browse/KISEMA-NSI||shape="rect"]] and go to Artifacts. 203 203 ... ... @@ -223,26 +223,6 @@ 223 223 -Dport=5007 224 224 {{/code}} 225 225 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}} 246 246 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: 247 247 248 248 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: ... ... @@ -265,11 +265,7 @@ 265 265 \\ 266 266 267 267 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}} 270 270 271 -{{layout-section ac:type="single"}} 272 -{{layout-cell}} 273 273 = Known Issues = 274 274 275 275 === Known issues for windows: === ... ... @@ -299,6 +299,5 @@ 299 299 yarn 300 300 {{/code}} already builds the correct sources). 301 301 ))) 302 -{{/layout-cell}} 303 -{{/layout-section}} 304 -{{/layout}} 235 + 236 +\\
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 - 883100901 +75694098 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/ 88310090/Running KEITH1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/75694098/Running KEITH