Last active
October 20, 2022 17:13
-
-
Save martin12333/5cdfe6559ef859d5ea722d1bad4e2ea0 to your computer and use it in GitHub Desktop.
obsoleted by https://github.com/breck7/ohayo/issues/91 ... now I have used ➜ ~ git:(wsl) ✗ git clone https://github.com/breck7/ohayo ; npm i . ;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ git:(wsl) ✗ | |
➜ ~ git:(wsl) ✗ | |
➜ ~ git:(wsl) ✗ mkdir ohayo # EDITED | |
➜ ~ git:(wsl) ✗ cd ohayo # EDITED | |
➜ breck7 git:(wsl) ✗ npm i ohayo | |
at <https://github.com/visionmedia/superagent/releases>.npm WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIaunpm WARN saveError ENOENT: no such file or directory, open '/home/martin/breck7/package.json' | |
npm notice created a lockfile as package-lock.json. You should commit this file. | |
npm WARN enoent ENOENT: no such file or directory, open '/home/martin/breck7/package.json' | |
npm WARN breck7 No descriptionnpm WARN breck7 No repository field. | |
npm WARN breck7 No README datanpm WARN breck7 No license field. | |
+ [email protected] | |
added 129 packages from 170 contributors and audited 129 packages in 12.242s | |
12 packages are looking for funding | |
run `npm fund` for details | |
found 4 vulnerabilities (1 low, 3 high) | |
run `npm audit fix` to fix them, or `npm audit` for details | |
➜ breck7 git:(wsl) ✗ | |
➜ breck7 git:(wsl) ✗ | |
➜ breck7 git:(wsl) ✗ | |
➜ breck7 git:(wsl) ✗ | |
➜ breck7 git:(wsl) ✗ npx zsh | |
➜ breck7 git:(wsl) ✗ | |
➜ breck7 git:(wsl) ✗ | |
➜ breck7 git:(wsl) ✗ | |
➜ breck7 git:(wsl) ✗ # in npx zsh | |
➜ breck7 git:(wsl) ✗ cd node_modules/jtree | |
➜ jtree git:(wsl) ✗ jtree # ok | |
command paramOne paramTwo description | |
allHistory List all parse times and filepaths for this cli tool | |
base folderPath port=4444 Start a TreeBase server for the given folder | |
build commandName param? Run a jBuild command with 0 or 1 param. | |
check programPath Check a file for grammar errors | |
checkAll grammarName Check all 'grammarName' programs for grammar errors | |
combine grammarName Dump all 'grammarName' programs into 1 'combined' output | |
compile programPath targetExtension Compile a file | |
compileCheck folderPath grammarName Test all compiler test cases in a given folder | |
distribute combinedFilePath Distribute a 'combined' file into multiple destination files | |
format programPath Format a tree program in place | |
help Show this help | |
list List installed Grammars | |
parse programPath Parse and print the nodeTypes and cellTypes in a program | |
programs grammarName List all files for a grammar ever parsed with this cli tool | |
register grammarPath Register a new grammar | |
run programPath Execute a Tree Language Program | |
sandbox port=3333 Start the Tree Sandbox web app | |
stamp dirPath Dump a directory as a Stamp program. | |
sublime grammarName outputPath Generate sublime syntax highlighting files | |
usage grammarName Analyze Global Keyword Usage for a given grammar | |
version List installed Tree Notation version and location | |
webForm grammarName nodeTypeId? Build a web form for the given grammar | |
➜ jtree git:(wsl) ✗ | |
➜ jtree git:(wsl) ✗ | |
➜ jtree git:(wsl) ✗ | |
➜ jtree git:(wsl) ✗ ./builder.ts | |
8 commands in /home/martin/breck7/node_modules/jtree/builder.ts: | |
buildJibJab | |
cover | |
produce | |
produceAll | |
produceLang | |
startServer | |
test | |
updateVersion | |
➜ jtree git:(wsl) ✗ | |
➜ jtree git:(wsl) ✗ | |
➜ jtree git:(wsl) ✗ | |
➜ jtree git:(wsl) ✗ # in node_modules/jtree | |
➜ jtree git:(wsl) ✗ ./builder.ts produceAll | |
➜ jtree git:(wsl) ✗ ./builder.ts test | |
(node:4232) UnhandledPromiseRejectionWarning: TypeError: Unable to require file: jtable/Column.ts | |
This is usually the result of a faulty configuration or import. Make sure there is a `.js`, `.json` or other executable extension with loader attached before `ts-node` available. | |
at getOutput (/home/martin/breck7/node_modules/ts-node/src/index.ts:586:17) | |
at Object.compile (/home/martin/breck7/node_modules/ts-node/src/index.ts:775:32) | |
at Module.m._compile (/home/martin/breck7/node_modules/ts-node/src/index.ts:858:43) | |
at Module._extensions..js (internal/modules/cjs/loader.js:1097:10) | |
at Object.require.extensions.<computed> [as .ts] (/home/martin/breck7/node_modules/ts-node/src/index.ts:861:12) | |
at Module.load (internal/modules/cjs/loader.js:933:32) | |
at Function.Module._load (internal/modules/cjs/loader.js:774:14) | |
at Module.require (internal/modules/cjs/loader.js:957:19) | |
at require (internal/modules/cjs/helpers.js:88:18) | |
at Object.<anonymous> (/home/martin/breck7/node_modules/jtree/jtable/Column.test.ts:3:1) | |
(Use `node --trace-warnings ...` to show where the warning was created) | |
(node:4232) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) | |
(node:4232) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. | |
➜ jtree git:(wsl) ✗ | |
➜ jtree git:(wsl) ✗ | |
➜ jtree git:(wsl) ✗ | |
➜ jtree git:(wsl) ✗ cd ../ohayo | |
➜ ohayo git:(wsl) ✗ jtree ohayo/packages/print/test.ohayo | |
(node:4306) UnhandledPromiseRejectionWarning: Error: Grammar file does not exist: ohayo/ohayo.grammar | |
at Function.jtreeNode.compileGrammarFileAtPathAndReturnRootConstructor (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5957:42) | |
at CommandLineApp._getProgramConstructorFromProgramPath (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:247:18) | |
at CommandLineApp._executeFile (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:250:37) | |
at CommandLineApp.run (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:256:61) | |
at Function.main (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:315:32) | |
at Object.<anonymous> (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:323:36) | |
at Module._compile (internal/modules/cjs/loader.js:1068:30) | |
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) | |
at Module.load (internal/modules/cjs/loader.js:933:32) | |
at Function.Module._load (internal/modules/cjs/loader.js:774:14) | |
(Use `node --trace-warnings ...` to show where the warning was created) | |
(node:4306) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) | |
(node:4306) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ jtree register ohayo/ohayo.grammar | |
(node:4370) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'ohayo/ohayo.grammar' | |
at Object.openSync (fs.js:498:3) | |
at Object.readFileSync (fs.js:394:35) | |
at Function.Disk.read (/home/martin/breck7/node_modules/jtree/products/Disk.node.js:8:24) | |
at CommandLineApp._register (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:227:56) | |
at CommandLineApp.register (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:222:28) | |
at Function.main (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:308:40) | |
at Object.<anonymous> (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:323:36) | |
at Module._compile (internal/modules/cjs/loader.js:1068:30) | |
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) | |
at Module.load (internal/modules/cjs/loader.js:933:32) | |
(Use `node --trace-warnings ...` to show where the warning was created) | |
(node:4370) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) | |
(node:4370) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. | |
➜ ohayo git:(wsl) ✗ pwd | |
/home/martin/breck7/node_modules/ohayo | |
➜ ohayo git:(wsl) ✗ ll | |
total 2.6M | |
-rwxr-xr-x 1 martin martin 5.2K Oct 26 1985 StudioServerApp.js | |
-rw-r--r-- 1 martin martin 29 Oct 26 1985 _config.yml | |
-rwxr-xr-x 1 martin martin 14K Oct 26 1985 builder.ts | |
drwxr-xr-x 3 martin martin 4.0K Oct 17 16:45 images | |
-rw-r--r-- 1 martin martin 776 Oct 26 1985 index.html | |
drwxr-xr-x 4 martin martin 4.0K Oct 17 16:45 ohayo | |
-rw-r--r-- 1 martin martin 1.7M Oct 26 1985 ohayo.es6.browser.js | |
-rw-r--r-- 1 martin martin 1.1K Oct 26 1985 ohayo.sublime-project | |
-rw-r--r-- 1 martin martin 2.1K Oct 17 16:45 package.json | |
-rw-r--r-- 1 martin martin 9.1K Oct 26 1985 readme.md | |
-rw-r--r-- 1 martin martin 27K Oct 26 1985 releasenotes.md | |
-rw-r--r-- 1 martin martin 71K Oct 26 1985 slides.gif | |
-rwxr-xr-x 1 martin martin 607K Oct 26 1985 slides.key | |
-rw-r--r-- 1 martin martin 174K Oct 26 1985 slides.pdf | |
drwxr-xr-x 7 martin martin 4.0K Oct 17 16:45 studio | |
drwxr-xr-x 2 martin martin 4.0K Oct 17 16:45 testing | |
-rw-r--r-- 1 martin martin 188 Oct 26 1985 tsconfig.json | |
➜ ohayo git:(wsl) ✗ jtree list | |
1 Tree Grammars registered in /home/martin/grammars.ssv | |
name filepath | |
ohayo ohayo/ohayo.grammar | |
➜ ohayo git:(wsl) ✗ ll ohayo | |
total 44K | |
-rwxr-xr-x 1 martin martin 205 Oct 26 1985 blankLine.oswarm | |
-rwxr-xr-x 1 martin martin 1.4K Oct 26 1985 code-mirror-regression.gopher | |
-rwxr-xr-x 1 martin martin 232 Oct 26 1985 comments.gopher | |
-rwxr-xr-x 1 martin martin 267 Oct 26 1985 didYouMean.oswarm | |
-rwxr-xr-x 1 martin martin 251 Oct 26 1985 doc.oswarm | |
drwxr-xr-x 2 martin martin 4.0K Oct 17 16:45 grams | |
-rwxr-xr-x 1 martin martin 1.8K Oct 26 1985 ohayo.gopher | |
-rwxr-xr-x 1 martin martin 214 Oct 26 1985 ohayo.swarm | |
-rwxr-xr-x 1 martin martin 465 Oct 26 1985 ohayo.test.js | |
drwxr-xr-x 62 martin martin 4.0K Oct 17 16:45 packages | |
-rw-r--r-- 1 martin martin 3.0K Oct 26 1985 readme.md | |
➜ ohayo git:(wsl) ✗ npm run test | |
> [email protected] test /home/martin/breck7/node_modules/ohayo | |
> ./builder.ts test | |
(node:4599) UnhandledPromiseRejectionWarning: Error: Cannot find module './testing/oswarm.nodejs.js' | |
Require stack: | |
- /home/martin/breck7/node_modules/ohayo/builder.ts | |
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15) | |
at Function.Module._load (internal/modules/cjs/loader.js:730:27) | |
at Module.require (internal/modules/cjs/loader.js:957:19) | |
at require (internal/modules/cjs/helpers.js:88:18) | |
at Builder._makeTestTreeForFolder (/home/martin/breck7/node_modules/ohayo/builder.ts:206:24) | |
at Builder.test (/home/martin/breck7/node_modules/ohayo/builder.ts:277:27) | |
at Builder.main (/home/martin/breck7/node_modules/jtree/products/AbstractBuilder.node.js:203:23) | |
at Object.<anonymous> (/home/martin/breck7/node_modules/ohayo/builder.ts:408:35) | |
at Module._compile (internal/modules/cjs/loader.js:1068:30) | |
at Module.m._compile (/home/martin/breck7/node_modules/ts-node/src/index.ts:858:23) | |
(Use `node --trace-warnings ...` to show where the warning was created) | |
(node:4599) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) | |
(node:4599) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ ./builder.ts | |
20 commands in /home/martin/breck7/node_modules/ohayo/builder.ts: | |
buildBuilder | |
buildDist | |
formatGrams | |
makeScriptTags | |
produceAll | |
produceDevServerHtml | |
produceGopherGrammar | |
produceOSwarmGrammar | |
produceOhayoGrammar | |
produceProdHtml | |
produceProdJs | |
produceSVGFile | |
produceTemplatesFile | |
profile | |
startDevServer | |
startServer | |
test | |
trainOhayoModel | |
updateGrammars | |
updateVersion | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ ### I really dont know what they mean | |
➜ ohayo git:(wsl) ✗ s | |
zsh: command not found: s | |
➜ ohayo git:(wsl) ✗ ./builder.ts buildBuilder | |
➜ ohayo git:(wsl) ✗ ./builder.ts buildDist | |
➜ ohayo git:(wsl) ✗ ./builder.ts produceOhayoGrammar | |
/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5957 | |
if (!fs.existsSync(grammarPath)) throw new Error(`Grammar file does not exist: ${grammarPath}`) | |
^ | |
Error: Grammar file does not exist: /home/martin/breck7/node_modules/ohayo/node_modules/jtree/langs/grammar/grammar.grammar | |
at Function.jtreeNode.compileGrammarFileAtPathAndReturnRootConstructor (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5957:42) | |
at Function.jtreeNode.formatCode (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5943:40) | |
at Function.jtreeNode.formatFileInPlace (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5950:31) | |
at Builder._buildGrammar (/home/martin/breck7/node_modules/ohayo/builder.ts:344:11) | |
at Builder.produceOhayoGrammar (/home/martin/breck7/node_modules/ohayo/builder.ts:351:17) | |
at Builder.main (/home/martin/breck7/node_modules/jtree/products/AbstractBuilder.node.js:203:23) | |
at Object.<anonymous> (/home/martin/breck7/node_modules/ohayo/builder.ts:408:35) | |
at Module._compile (internal/modules/cjs/loader.js:1068:30) | |
at Module.m._compile (/home/martin/breck7/node_modules/ts-node/src/index.ts:858:23) | |
at Module._extensions..js (internal/modules/cjs/loader.js:1097:10) | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ ./builder.ts produceAll | |
SUCCESS: produceDevServerHtml | |
FAILURE: produceOhayoGrammar | |
SUCCESS: produceGopherGrammar | |
SUCCESS: produceProdHtml | |
FAILURE: produceProdJs | |
SUCCESS: produceSVGFile | |
SUCCESS: produceTemplatesFile | |
FAILURE: produceOSwarmGrammar | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ | |
➜ ohayo git:(wsl) ✗ jtree ohayo/packages/print/test.ohayo | |
Error in compiled grammar code for language "ohayo" | |
/home/martin/breck7/node_modules/jtree/products/jtree.node.js:28 | |
if (!dirName) throw new Error(`dirName undefined when attempting to findProjectRoot for project "${projectName}" starting in "${startingDirName}"`) | |
^ | |
Error: dirName undefined when attempting to findProjectRoot for project "ohayo" starting in "undefined" | |
at getProjectName (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:28:27) | |
at Function.findProjectRoot (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:35:18) | |
at evalmachine.<anonymous>:3:36 | |
at Script.runInThisContext (vm.js:133:18) | |
at Object.runInThisContext (vm.js:310:38) | |
at HandGrammarProgram._requireInVmNodeJsRootNodeTypeConstructor (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5077:17) | |
at HandGrammarProgram._compileAndEvalGrammar (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:4991:31) | |
at HandGrammarProgram._compileAndReturnNodeTypeMap (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5062:52) | |
at HandGrammarProgram.compileAndReturnRootConstructor (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5284:77) | |
at Function.jtreeNode.compileGrammarFileAtPathAndReturnRootConstructor (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5960:25) | |
/home/martin/breck7/node_modules/jtree/products/jtree.node.js:28 | |
if (!dirName) throw new Error(`dirName undefined when attempting to findProjectRoot for project "${projectName}" starting in "${startingDirName}"`) | |
^ | |
Error: dirName undefined when attempting to findProjectRoot for project "ohayo" starting in "undefined" | |
at getProjectName (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:28:27) | |
at Function.findProjectRoot (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:35:18) | |
at evalmachine.<anonymous>:3:36 | |
at Script.runInThisContext (vm.js:133:18) | |
at Object.runInThisContext (vm.js:310:38) | |
at HandGrammarProgram._requireInVmNodeJsRootNodeTypeConstructor (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5077:17) | |
at HandGrammarProgram._compileAndEvalGrammar (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:4991:31) | |
at HandGrammarProgram._compileAndReturnNodeTypeMap (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5062:52) | |
at HandGrammarProgram.compileAndReturnRootConstructor (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5284:77) | |
at Function.jtreeNode.compileGrammarFileAtPathAndReturnRootConstructor (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5960:25) | |
(node:4930) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'ohayoNode' of undefined | |
at HandGrammarProgram.compileAndReturnRootConstructor (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5284:107) | |
at Function.jtreeNode.compileGrammarFileAtPathAndReturnRootConstructor (/home/martin/breck7/node_modules/jtree/products/jtree.node.js:5960:25) | |
at CommandLineApp._getProgramConstructorFromProgramPath (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:247:18) | |
at CommandLineApp._executeFile (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:250:37) | |
at CommandLineApp.run (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:256:61) | |
at Function.main (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:315:32) | |
at Object.<anonymous> (/home/martin/breck7/node_modules/jtree/products/commandLineApp.node.js:323:36) | |
at Module._compile (internal/modules/cjs/loader.js:1068:30) | |
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) | |
at Module.load (internal/modules/cjs/loader.js:933:32) | |
(Use `node --trace-warnings ...` to show where the warning was created) | |
(node:4930) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) | |
(node:4930) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. | |
➜ ohayo git:(wsl) ✗ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment