<
From version < 26.1 >
edited by Soeren Domroes
on 2019/07/09 10:44
To version < 25.1 >
edited by Soeren Domroes
on 2019/05/17 11:12
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -139,29 +139,16 @@
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 -{{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}}
142 +[[image:attach:image2019-2-7_18-0-7.png]]
152 152  
153 -\\
154 -
155 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 156  
146 +\\
147 +
157 157  == How run KEITH in developer setup (socket) ==
158 158  
159 159  Run the following to build and run KEITH in its developer setup (in socket mode, so the LS has to be started separately)
160 160  
161 -=== Running KEITH in the browser ===
162 -
163 -\\
164 -
165 165  {{code language="bash"}}
166 166  yarn && cd keith-app && yarn run socket
167 167  {{/code}}
... ... @@ -170,24 +170,8 @@
170 170  
171 171  Per default the KEITH opens on localhost:3000.
172 172  
173 -{{info}}
174 -If you previously build keith electron, you have to execute {{code language="none"}}yarn run rebuild: browser{{/code}}
175 -{{/info}}
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.
176 176  
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: browser{{/code}}
189 -{{/info}}
190 -
191 191  === Known issues for windows: ===
192 192  
193 193  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.
... ... @@ -198,14 +198,6 @@
198 198  
199 199  === Known issues: ===
200 200  
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}}
172 +\\
203 203  
204 -* run
205 -
206 -{{code language="none"}}
207 -yarn run rebuild:electron/browser
208 -{{/code}} after yarn to fix this.
209 -)))
210 -
211 211  \\
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -60522742
1 +60522741
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/60522742/Running KEITH
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/60522741/Running KEITH