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
-
... ... @@ -34,7 +34,7 @@ 34 34 35 35 General requirements: 36 36 37 -* node 37 +* node (seeĀ [[Theia developer guide>>url:https://github.com/theia-ide/theia/blob/master/doc/Developing.md||shape="rect"]]) 38 38 * npm (whatever node installs) 39 39 * yarn (latest version) 40 40 * Python (2.7.X) ... ... @@ -139,16 +139,29 @@ 139 139 140 140 Open the {{code language="none"}}package.json{{/code}}. In the{{code language="none"}} package.json{{/code}} are several scripts defined. 141 141 142 -[[image:attach:image2019-2-7_18-0-7.png]] 142 +{{code language="js"}} 143 +"scripts": { 144 + "prepare": "yarn run clean && yarn build", 145 + "clean": "theia clean", 146 + "build": "theia build --mode development", 147 + "start": "theia start --root-dir=../workspace", 148 + "socket": "node ./src-gen/backend/main.js --root-dir=../workspace --LSP_PORT=5007 --port=3000 --loglevel=debug", 149 + "watch": "theia build --watch --mode development" 150 + }, 151 +{{/code}} 143 143 144 -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}}. 145 - 146 146 \\ 147 147 155 +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}}. 156 + 148 148 == How run KEITH in developer setup (socket) == 149 149 150 150 Run the following to build and run KEITH in its developer setup (in socket mode, so the LS has to be started separately) 151 151 161 +=== Running KEITH in the browser === 162 + 163 +\\ 164 + 152 152 {{code language="bash"}} 153 153 yarn && cd keith-app && yarn run socket 154 154 {{/code}} ... ... @@ -157,8 +157,24 @@ 157 157 158 158 Per default the KEITH opens on localhost:3000. 159 159 160 -It is required to restart the language server if KEITH is restarted, since the diagram view has a problem (since theia-sprotty is used) to reconnect after that. 173 +{{info}} 174 +If you previously build keith electron, you have to execute {{code language="none"}}yarn run rebuild:browser{{/code}} 175 +{{/info}} 161 161 177 +\\ 178 + 179 +=== Running KEITH as (unbundled) electron app === 180 + 181 +{{code language="bash"}} 182 +yarn && yarn run rebuild:electron && cd keith-app-electron && yarn run socket 183 +{{/code}} 184 + 185 +//yarn// builds all the stuff. //yarn run socket// in keith-app-electron starts the application. After an initial build via yarn you can run //yarn watch // to watch the changes in your repository. In another console you run yarn run socket in keith-app-electron. Now refreshing your browser is enough to apply the changes. 186 + 187 +{{info}} 188 +If you previously build keith electron, you have to execute {{code language="none"}}yarn run rebuild:electron{{/code}} 189 +{{/info}} 190 + 162 162 === Known issues for windows: === 163 163 164 164 nsfw.code not found: In the top level package.json exists a script called postinstall. Remove this on windows, delete the node_modules folder and rebuilt the application. This is a known issue of electron-builder. ... ... @@ -169,6 +169,22 @@ 169 169 170 170 === Known issues: === 171 171 172 -\\ 201 +* KEITH works in the browser/electron app, but not in the electron app/browser with the following error message:((( 202 +{{code language="none"}}symbol lookup error: ... symbol lookup error: .../keith/node_modules/nsfw/build/Release/nsfw.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE {{/code}}{{code language="none"}}Done in 0.90s.{{/code}} 173 173 204 +* run 205 + 206 +{{code language="none"}} 207 +yarn run rebuild:electron/browser 208 +{{/code}} after yarn to fix this. If it does not work, delete the 209 + 210 +{{code language="none"}} 211 +node_modules 212 +{{/code}} folder and try again (for browser version rebuild browser is not needed, since 213 + 214 +{{code language="none"}} 215 +yarn 216 +{{/code}} already builds the correct sources). 217 +))) 218 + 174 174 \\
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -6 05227411 +62783491 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/6 0522741/Running KEITH1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/62783491/Running KEITH