huland
04/15/2022, 12:51 AMyarn setup
it fails with:
$ node scripts/buildStyles.js
fetching...
reading...
compile...
done
$ npx lerna run build --scope "@dendronhq/plugin-core"
$ yarn compile
$ tsc -p tsconfig.build.json
$ npx yarn dendron dev sync_assets --fast
$ node packages/dendron-cli/lib/bin/dendron-cli.js dev sync_assets --fast
sync static...
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
/home/huland/src/js/dendron/node_modules/execa/index.js:212
throw error;
^
Error: Command failed with exit code 1: npx yarn dendron dev sync_assets --fast
The versions installed:
node -v
v16.14.2
node -v
v16.14.2
npm -v
8.6.0
lerna -v
4.0.0
yarn -v
1.22.18
Do you have any idea what could be the problem?SeriousBug
04/15/2022, 12:53 AM$ yarn bootstrap:bootstrap
$ yarn bootstrap: build
Also if you could share what OS you're usinghuland
04/15/2022, 12:56 AMyarn bootstrap:bootstrap
was successful, the other is still runninghuland
04/15/2022, 12:57 AMyarn bootstrap:build
fails on my machine.SeriousBug
04/15/2022, 12:59 AMhuland
04/15/2022, 12:59 AMkevins8
04/15/2022, 1:00 AMnode packages/dendron-cli/lib/bin/dendron-cli.js dev sync_assets --fast
command by itself?huland
04/15/2022, 1:02 AMkevins8
04/15/2022, 1:06 AMLOG_LEVEL=debug {CMD}
huland
04/15/2022, 1:08 AMkevins8
04/15/2022, 1:14 AMhuland
04/15/2022, 1:16 AMhuland
04/15/2022, 1:16 AMkevins8
04/15/2022, 1:26 AMhuland
04/15/2022, 1:28 AMhuland
04/15/2022, 1:37 AMapi.segment.io
google suggested pihole to the end.. so I checked my pihole and it was blocked :/ thanks for the help really. Next time I'll check that as well before asking.
...
$ npx yarn dendron dev sync_assets --fast
$ node packages/dendron-cli/lib/bin/dendron-cli.js dev sync_assets --fast
sync static...
done
$ ./bootstrap/scripts/chmod-cli.js
made /home/huland/src/js/dendron/packages/dendron-cli/lib/bin/dendron-cli.js executable
Done in 227.38s.
Maxotronic
04/16/2022, 2:33 AM$ ./bootstrap/scripts/watch.sh
test-workspace/$ ./scripts/dev.sh
packages/dendron-plugin-views/$ env REACT_APP_VIEW_NAME=DendronGraphPanelView yarn start
In the browser I get this:
Error{"stack":"Error: Request failed with status code 404\n at createError (http://localhost:3000/static/js/bundle.js:136005:15)\n at settle (http://localhost:3000/static/js/bundle.js:136239:12)\n at XMLHttpRequest.onloadend (http://localhost:3000/static/js/bundle.js:135408:7)","message":"Request failed with status code 404","config":{}}
kevins8
04/16/2022, 2:52 AMkevins8
04/16/2022, 3:13 AMkevins8
04/16/2022, 3:13 AMMaxotronic
04/20/2022, 6:23 AMMaxotronic
04/20/2022, 6:23 AMMaxotronic
04/20/2022, 6:23 AMkevins8
04/20/2022, 2:22 PMNidoling
04/20/2022, 6:38 PMkevins8
04/20/2022, 6:48 PMhuland
04/20/2022, 10:06 PMtypescript
test("basic tag", (done) => {
runLegacyMultiWorkspaceTest({
ctx,
preSetupHook: async ({ wsRoot, vaults }) => {
await ENGINE_HOOKS.setupBasic({ wsRoot, vaults });
},
onInit: async ({ engine }) => {
const notes = engine.notes;
const cmd = new InsertNoteIndexCommand();
await WSUtils.openNote(notes["tags.example"]);
const editor = VSCodeUtils.getActiveTextEditorOrThrow();
editor.selection = new vscode.Selection(9, 0, 9, 0);
await cmd.execute({});
const body = editor.document.getText();
expect(
await AssertUtils.assertInString({
body,
match: [["## Index", "- [[Tags|tags]]"].join("\n")],
})
);
done();
},
});
});
I tryed to debug the line where I call openNote
.
There is no tags
nor tags.example
inside notes
.
I tried to understand the setupBasic
function [here](https://github.com/dendronhq/dendron/blob/master/packages/engine-test-utils/src/presets/engine-server/utils.ts#L22) as well but until now I haven't found out where / how the [node structure](https://github.com/dendronhq/dendron/blob/master/packages/engine-test-utils/src/presets/engine-server/utils.ts#L15) is defined, because I was thinking to extend that "list" by adding the tags.example
note so my test would work -or at least would do something-kevins8
04/20/2022, 10:38 PMsetupBasic
will create a workspace with the following notes
- foo
- foo.ch1
- bar
You can reference these notes by their title using engine.notes
ts
const fooNote = engine.notes["foo"];
It can be hard to navigate to the correct file using vscode. The preset functions are located in [[../packages/engine-test-utils/src/presets/engine-server/utils.ts]] and the low level presets are in [[../packages/common-test-utils/src/presets/notes.ts]]kevins8
04/20/2022, 10:44 PMts
await NoteTestUtilsV4.createNote({
wsRoot,
vault,
fname: "alpha",
body: [`# H1`, `# H2`, `# H3`, "", "Some Content"].join("\n"),
});
huland
04/20/2022, 11:00 PM