kubernetes-sigs / kui Goto Github PK
View Code? Open in Web Editor NEWA hybrid command-line/UI development experience for cloud-native development
License: Apache License 2.0
A hybrid command-line/UI development experience for cloud-native development
License: Apache License 2.0
wsk
from the command treeapp
a recent regression
Updated to 847481d and with a clean install, I see this error:
Setting up modules true
> [email protected] postinstall /Users/rabbah/projects/kui/app/plugins/modules/k8s
> ../../../../node_modules/.bin/tsc
src/test/k8s/create-pod.ts:23:32 - error TS2345: Argument of type '{ noOpenWhisk: boolean; }' is not assignable to parameter of type 'IBeforeOptions'.
Object literal may only specify known properties, and 'noOpenWhisk' does not exist in type 'IBeforeOptions'.
23 before(common.before(this, { noOpenWhisk: true }))
~~~~~~~~~~~~~~~~~
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] postinstall: `../../../../node_modules/.bin/tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/rabbah/.npm/_logs/2018-12-01T14_22_13_073Z-debug.log
The commands should be separated into files with every command name, rather than gathering in one commands.ts file.
e.g. kubectl kui get pods
When I clicked the next button of session list, activation list --skip N
will be issued. We should change this to session list --skip N
.
Fix all the tslint errors and enable tslint tests.
compileSource() is used only by editor and it's redundant with sourceToComposition().
It seems like in Electron mode, app list gets sorted by alphabetic order, but in Headless mode, app list is in correct time order. The weird thing is that the code of app list command handler didn't differentiate Headless and Electron. I set debug('apps', apps)
after let apps = actions.filter(astUtil.isAnApp)
, and the order of resulted apps is different in Electron and Headless.
Code Reference:
https://github.com/IBM/kui/blob/master/app/plugins/modules/apache-composer/src/lib/controller/commands.ts#L180-#L194
The current feature we have: session list --limit N
Behavior: We search and list at most N sessions in 20 activations.
We want to offer users a new feature: session list --scan-limit N
.
Try our best to search and list N sessions (can't guarantee ).
At commit 847481d, on a clean install, somewhere in the logs while running npm run webpack
:
ERROR in ./app/plugins/modules/grid/plugin/lib/util.js
Module not found: Error: Can't resolve '../../../composer/lib/composer' in '/Users/rabbah/projects/kui/app/plugins/modules/grid/plugin/lib'
@ ./app/plugins/modules/grid/plugin/lib/util.js 103:21-62
@ ./app/plugins sync ^\.\/.*$
@ ./app/build/core/plugins.js
@ ./app/build/webapp/bootstrap/boot.js
@ ./app/build/webapp/bootstrap/webpack.js
ERROR in ./app/plugins/modules/apache-composer/@demos/combinators/async.js
Module not found: Error: Can't resolve 'openwhisk-composer/plugins/cloudant' in '/Users/rabbah/projects/kui/app/plugins/modules/apache-composer/@demos/combinators'
@ ./app/plugins/modules/apache-composer/@demos/combinators/async.js 2:17-63
@ ./app/plugins sync ^\.\/.*$
@ ./app/build/core/plugins.js
@ ./app/build/webapp/bootstrap/boot.js
@ ./app/build/webapp/bootstrap/webpack.js
ERROR in ./app/plugins/modules/apache-composer/@demos/combinators/http.js
Module not found: Error: Can't resolve 'openwhisk-composer/plugins/http' in '/Users/rabbah/projects/kui/app/plugins/modules/apache-composer/@demos/combinators'
@ ./app/plugins/modules/apache-composer/@demos/combinators/http.js 2:13-55
@ ./app/plugins sync ^\.\/.*$
@ ./app/build/core/plugins.js
@ ./app/build/webapp/bootstrap/boot.js
@ ./app/build/webapp/bootstrap/webpack.js
it has some unused portions
During npm install
, I noticed the following errors.
src/lib/cmds/edit-amd.ts:42:52 - error TS2307: Cannot find module '../../../../apache-composer/plugin/lib/utility/compile'.
42 import { compileSource, sourceToComposition } from '../../../../apache-composer/plugin/lib/utility/compile'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] postinstall: `../../../../node_modules/.bin/tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/rabbah/.npm/_logs/2018-11-29T20_18_19_578Z-debug.log
src/test/composer1/wskflow_tests.ts:200:43 - error TS2345: Argument of type '() => Client<boolean>' is not assignable to parameter of type '() => boolean | Promise<boolean> | (Client<RawResult<any>> & RawResult<any>)'.
Type 'Client<boolean>' is not assignable to type 'boolean | Promise<boolean> | (Client<RawResult<any>> & RawResult<any>)'.
Type 'Client<boolean>' is not assignable to type 'Client<RawResult<any>> & RawResult<any>'.
Type 'Client<boolean>' is not assignable to type 'Client<RawResult<any>>'.
Type 'boolean' is not assignable to type 'RawResult<any>'.
200 .then(() => this.app.client.waitUntil(() => {
~~~~~~~
src/test/composer1/zzz-bottom-bar-back-button.ts:69:21 - error TS2531: Object is possibly 'null'.
69 .then(path => path.substring(path.lastIndexOf('/') + 1))
~~~~
src/test/composer1/zzz-bottom-bar-back-button.ts:69:36 - error TS2531: Object is possibly 'null'.
69 .then(path => path.substring(path.lastIndexOf('/') + 1))
~~~~
src/test/composer1/zzz-bottom-bar-back-button.ts:83:21 - error TS2531: Object is possibly 'null'.
83 .then(path => path.substring(path.lastIndexOf('/') + 1))
~~~~
src/test/composer1/zzz-bottom-bar-back-button.ts:83:36 - error TS2531: Object is possibly 'null'.
83 .then(path => path.substring(path.lastIndexOf('/') + 1))
~~~~
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @shell/[email protected] postinstall: `../../../../node_modules/.bin/tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @shell/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/rabbah/.npm/_logs/2018-11-29T20_18_19_723Z-debug.log
src/lib/flowCommand.ts:23:26 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/ast'.
23 import * as astUtil from '../../../apache-composer/plugin/lib/utility/ast'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/preview.ts:34:25 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/badges'.
34 import * as badges from '../../../apache-composer/plugin/lib/utility/badges'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/preview.ts:35:27 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/messages'.
35 import * as messages from '../../../apache-composer/plugin/lib/utility/messages' // TODO: import from plugin js file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/preview.ts:38:30 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/compile'.
38 import * as compileUtil from '../../../apache-composer/plugin/lib/utility/compile'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/util.ts:18:26 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/ast'.
18 import * as astUtil from '../../../apache-composer/plugin/lib/utility/ast'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/util.ts:19:25 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/badges'.
19 import * as badges from '../../../apache-composer/plugin/lib/utility/badges'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @shell/[email protected] postinstall: `../../../../node_modules/.bin/tsc && rm -rf node_modules/jquery/src && rm -f node_modules/jquery/external/sizzle/dist/sizzle.js && rm -f node_modules/jquery/dist/core.js && mv -f node_modules/jquery/dist/jquery.min.js node_modules/jquery/dist/jquery.js && rm -f node_modules/jquery/dist/jquery.slim* && mv -f node_modules/jquery/dist/jquery.min.map node_modules/jquery/dist/jquery.map && rm -rf node_modules/d3/src && mv node_modules/d3/d3.min.js node_modules/d3/d3.js && rm -f node_modules/elkjs/lib/elk-worker.js node_modules/elkjs/lib/elk.bundled.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @shell/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/rabbah/.npm/_logs/2018-11-29T20_18_20_166Z-debug.log
npm WARN [email protected] No repository field.
added 93 packages in 30.775s
...
> [email protected] compile /Users/rabbah/projects/kui/app
> if [ -d ../dist ]; then cd ../dist/bin && ./compile.js; fi
✓ plugin apache-composer
✓ preload apache-composer
✓ plugin bash-like
✓ plugin core-support
✓ preload core-support
✓ plugin editor
✓ preload editor
✓ plugin field-installed-plugins
✓ plugin grid
✓ plugin k8s
✓ plugin openwhisk
✓ plugin openwhisk-debug
✓ plugin tutorials
✓ preload tutorials
✓ plugin wskflow
commencing seticon
Using appName=Kui and appIcon=../app/content/icons/png/kui.png
done
added 210 packages in 41.676s
added 291 packages in 56.672s
too far to the right
always fails, due to calling if(isDirectory) rather than if(isDirectory())
right now, the output is only allowed to publish to the REPL in batch, when the command is done.
Add support for the following command:
command: app lang js
usage: convert javascript source code to composition AST
there are a few path issues with the webpack-local env; also, let's add http-server to the devDeps of the webpack packager directory
when viewing a session flow, the visited nodes are properly highlighted, but the visited edges are not
the Y/N labels for if's do not appear
None of the optional parameters are working now.
The following error log appears everywhere with app invoke but the invocation result is fine.
kui/app/plugins/modules/openwhisk/plugin/lib/cmds/openwhisk-core.js 512:20
TypeError: Cannot read property 'name' of undefined
at Object.invoke (/Users/mengting.yan1ibm.com/Documents/GitHub/kui/app/plugins/modules/openwhisk/plugin/lib/cmds/openwhisk-core.js:912:65)
at entity (/Users/mengting.yan1ibm.com/Documents/GitHub/kui/app/plugins/modules/openwhisk/plugin/lib/cmds/openwhisk-core.js:509:51)
at process._tickCallback (internal/process/next_tick.js:68:7)
document the webpack building process
when the sidecar is open, the reverse-i-search input only gets half of the remaining width
we also should figure out the linux and windows keyboard shortcut story; ctrl+r reloads electron (and the browser) on those platforms
The docs here will need to be updated https://github.com/IBM/kui/tree/master/docs/dev for example under quick start
git clone [email protected]:ibm-functions/shell.git
$ cd shell
$ ./tools/setup-npmrc.sh && npm install
$ ./fsh.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.