kevins8
11/11/2021, 2:08 PMkevins8
11/11/2021, 2:08 PMJoshi
11/11/2021, 2:10 PMkevins8
11/11/2021, 10:36 PMdendron-next-server
to dendron-plugin-views
Besides for the package change, we also change how the preview is rendered - moving from rendering views inside of an iframe to rendering natively inside vscode (which is already in an iframe)
This has a few ramifications:
1. ShowPreview
is now noticably faster and much more stable (previous iframe in iframe approach would often drop messages as we were using window.postMessage
to communicate between iframes)
2. You can now place breakpoints inside of the webview and debug them inside of VSCode
Documentaiton for getting started building the new webview is here: [[Quickstart|dendron://dendron.dendron-site/pkg.dendron-plugin-views.quickstart]]
Documentation to debug is here: [[Qa|dendron://dendron.dendron-site/pkg.dendron-plugin-views.qa]]
(NOTE: some of these docs are only available in the dev
branch of dendron-site
)
@User ☝️Nidoling
11/17/2021, 8:40 PMerror TS2307: Cannot find module 'string-similarity' or its corresponding type declarations.
SeriousBug
11/17/2021, 8:41 PM./bootstrap/scripts/bootstrap.sh
first?kevins8
11/17/2021, 8:42 PMbootstrap.sh
Nidoling
11/17/2021, 8:42 PMkevins8
11/17/2021, 8:44 PMkevins8
11/17/2021, 8:56 PMl2dy
11/18/2021, 12:35 AMkevins8
11/18/2021, 1:19 AMkevins8
11/18/2021, 10:57 PMkevins8
11/20/2021, 5:16 AMScriptAutomate
11/23/2021, 9:50 PMSeriousBug
11/26/2021, 10:17 AMDendronASTNode
has a notes
field. Is that actually ever used?
ts
export type DendronASTNode = Parent & {
notes?: NoteProps[];
children?: Parent["children"] | DendronASTNode[];
};
hikchoi
11/26/2021, 10:43 AMhikchoi
12/01/2021, 10:44 AMhikchoi
12/01/2021, 10:53 AMuser
12/01/2021, 3:33 PMyarn bootstrap:build
from the build instructions exits with an error: building index { theme: 'light' }
$ node scripts/buildStyles.js
fetching...
reading...
compile...
done
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run build stderr:
'env' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
error Command failed with exit code 1.
lerna ERR! yarn run build exited 1 in '@dendronhq/dendron-plugin-views'
at makeError (U:\dendron\repos\dendron\node_modules\execa\lib\error.js:60:11)
at Function.module.exports.sync (U:\dendron\repos\dendron\node_modules\execa\index.js:194:17)
at Function.module.exports.commandSync (U:\dendron\repos\dendron\node_modules\execa\index.js:235:15)
at $ (U:\dendron\repos\dendron\bootstrap\scripts\buildAll.js:5:16)
at Object.<anonymous> (U:\dendron\repos\dendron\bootstrap\scripts\buildAll.js:22:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
shortMessage: 'Command failed with exit code 1: npx lerna run build --scope "@dendronhq/dendron-plugin-views"',
command: 'npx lerna run build --scope "@dendronhq/dendron-plugin-views"',
escapedCommand: 'npx lerna run build --scope "\\"@dendronhq/dendron-plugin-views\\""',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: 'lerna notice cli v3.22.1\n' +
'lerna notice filter including "@dendronhq/dendron-plugin-views"\n' +
"lerna info filter [ '@dendronhq/dendron-plugin-views' ]\n" +
'lerna info Executing command in 1 package: "yarn run build"\n' +
"lerna ERR! yarn run build exited 1 in '@dendronhq/dendron-plugin-views'\n" +
'lerna ERR! yarn run build stdout:\n' +
'$ yarn build:dev && yarn build:styles\n' +
'$ yarn setup && env BUILD_DEV=1 node scripts/build.js\n' +
'$ yarn build:index && yarn build:styles\n' +
'$ node scripts/buildIndex.js\n' +
"building index { theme: 'light' }\n" +
'$ node scripts/buildStyles.js\n' +
'fetching...\n' +
'reading...\n' +
'compile...\n' +
'done\n' +
'info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\n' +
'info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\n' +
'\n' +
'lerna ERR! yarn run build stderr:\n' +
"'env' is not recognized as an internal or external command,\r\n" +
'operable program or batch file.\r\n' +
'error Command failed with exit code 1.\n' +
'error Command failed with exit code 1.\n' +
'\n' +
"lerna ERR! yarn run build exited 1 in '@dendronhq/dendron-plugin-views'",
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
user
12/03/2021, 4:56 PMnpm install @dendronhq/dendron-cli@latest
gives an unable to resolve dependency tree
error. I'm running that npm install in the folder that has the .ws
workspace I want to publish. (Just making sure this is correct.) Also tried this fix bootstrap/scripts/bootstrap.sh
mentioned in the doc but getting a missing script bootstrap:bootstrap
error there. Any ideas? 🙂kevins8
12/03/2021, 4:57 PMkevins8
12/03/2021, 4:58 PMuser
12/03/2021, 4:59 PMDendron-Tutorial
to another drive and rename it before publishing it to my GitHub.user
12/03/2021, 8:58 PMuser
12/03/2021, 8:59 PMkevins8
12/03/2021, 9:46 PMSeriousBug
12/04/2021, 9:43 AMpixelmonk
12/04/2021, 10:47 AMSeriousBug
12/04/2021, 10:51 AM