Closed yochananmarqos closed 1 year ago
Ah! It was so simple. I knew it had something to do with that line. Thanks!
Oops, spoke too soon.
[4/7] Generating src/typescript-compile with a custom command
FAILED: src/application.js src/card.js src/main.js src/notes.js src/styleselector.js src/view.js src/window.js src/util.js
/usr/bin/yarn --cwd /build/sticky-notes/src/sticky run build --out /build/sticky-notes/src/build/src --cwd /build/sticky-notes/src/sticky/src ../sticky/src/application.ts ../sticky/src/card.ts ../sticky/src/main.ts ../sticky/src/notes.ts ../sticky/src/styleselector.ts ../sticky/src/view.ts ../sticky/src/window.ts ../sticky/src/util.ts
yarn run v1.22.19
$ node lib/build.js --out /build/sticky-notes/src/build/src --cwd /build/sticky-notes/src/sticky/src ../sticky/src/application.ts ../sticky/src/card.ts ../sticky/src/main.ts ../sticky/src/notes.ts ../sticky/src/styleselector.ts ../sticky/src/view.ts ../sticky/src/window.ts ../sticky/src/util.ts
✘ [ERROR] Could not resolve "/build/sticky-notes/src/sticky/sticky/src/util.ts"
✘ [ERROR] Could not resolve "/build/sticky-notes/src/sticky/sticky/src/notes.ts"
✘ [ERROR] Could not resolve "/build/sticky-notes/src/sticky/sticky/src/application.ts"
✘ [ERROR] Could not resolve "/build/sticky-notes/src/sticky/sticky/src/card.ts"
✘ [ERROR] Could not resolve "/build/sticky-notes/src/sticky/sticky/src/main.ts"
✘ [ERROR] Could not resolve "/build/sticky-notes/src/sticky/sticky/src/window.ts"
✘ [ERROR] Could not resolve "/build/sticky-notes/src/sticky/sticky/src/view.ts"
✘ [ERROR] Could not resolve "/build/sticky-notes/src/sticky/sticky/src/styleselector.ts"
/build/sticky-notes/src/sticky/node_modules/esbuild/lib/main.js:1636
let error = new Error(`${text}${summary}`);
^
Error: Build failed with 8 errors:
error: Could not resolve "/build/sticky-notes/src/sticky/sticky/src/util.ts"
error: Could not resolve "/build/sticky-notes/src/sticky/sticky/src/notes.ts"
error: Could not resolve "/build/sticky-notes/src/sticky/sticky/src/application.ts"
error: Could not resolve "/build/sticky-notes/src/sticky/sticky/src/card.ts"
error: Could not resolve "/build/sticky-notes/src/sticky/sticky/src/main.ts"
...
at failureErrorWithLog (/build/sticky-notes/src/sticky/node_modules/esbuild/lib/main.js:1636:15)
at /build/sticky-notes/src/sticky/node_modules/esbuild/lib/main.js:1048:25
at /build/sticky-notes/src/sticky/node_modules/esbuild/lib/main.js:993:52
at buildResponseToResult (/build/sticky-notes/src/sticky/node_modules/esbuild/lib/main.js:1046:7)
at /build/sticky-notes/src/sticky/node_modules/esbuild/lib/main.js:1075:16
at responseCallbacks.<computed> (/build/sticky-notes/src/sticky/node_modules/esbuild/lib/main.js:697:9)
at handleIncomingPacket (/build/sticky-notes/src/sticky/node_modules/esbuild/lib/main.js:752:9)
at Socket.readFromStdout (/build/sticky-notes/src/sticky/node_modules/esbuild/lib/main.js:673:7)
at Socket.emit (node:events:512:28)
at addChunk (node:internal/streams/readable:324:12) {
errors: [
{
detail: undefined,
id: '',
location: null,
notes: [],
pluginName: '',
text: 'Could not resolve "/build/sticky-notes/src/sticky/sticky/src/util.ts"'
},
{
detail: undefined,
id: '',
location: null,
notes: [],
pluginName: '',
text: 'Could not resolve "/build/sticky-notes/src/sticky/sticky/src/notes.ts"'
},
{
detail: undefined,
id: '',
location: null,
notes: [],
pluginName: '',
text: 'Could not resolve "/build/sticky-notes/src/sticky/sticky/src/application.ts"'
},
{
detail: undefined,
id: '',
location: null,
notes: [],
pluginName: '',
text: 'Could not resolve "/build/sticky-notes/src/sticky/sticky/src/card.ts"'
},
{
detail: undefined,
id: '',
location: null,
notes: [],
pluginName: '',
text: 'Could not resolve "/build/sticky-notes/src/sticky/sticky/src/main.ts"'
},
{
detail: undefined,
id: '',
location: null,
notes: [],
pluginName: '',
text: 'Could not resolve "/build/sticky-notes/src/sticky/sticky/src/window.ts"'
},
{
detail: undefined,
id: '',
location: null,
notes: [],
pluginName: '',
text: 'Could not resolve "/build/sticky-notes/src/sticky/sticky/src/view.ts"'
},
{
detail: undefined,
id: '',
location: null,
notes: [],
pluginName: '',
text: 'Could not resolve "/build/sticky-notes/src/sticky/sticky/src/styleselector.ts"'
}
],
warnings: []
}
Node.js v19.7.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[5/7] Generating data/stylus-compile with a custom command
FAILED: data/style.css data/style-selector.css data/style-dark.css
/usr/bin/yarn --cwd /build/sticky-notes/src/sticky run css --out /build/sticky-notes/src/build/data --cwd /build/sticky-notes/src/sticky/data ../sticky/data/style.styl ../sticky/data/style-selector.styl ../sticky/data/style-dark.styl
yarn run v1.22.19
$ node lib/stylus.js --out /build/sticky-notes/src/build/data --cwd /build/sticky-notes/src/sticky/data ../sticky/data/style.styl ../sticky/data/style-selector.styl ../sticky/data/style-dark.styl
node:internal/process/esm_loader:100
internalBinding('errors').triggerUncaughtException(
^
[Error: ENOENT: no such file or directory, open '/build/sticky-notes/src/sticky/sticky/data/style.styl'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/build/sticky-notes/src/sticky/sticky/data/style.styl'
}
Node.js v19.7.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ninja: build stopped: subcommand failed.
ohh I think it's because stylus and esbuild steps still gets in the old --cwd
. if this does not fix it, I'll ask you to experiment with different kinds of meson variables to see what fixes it since I'm not familiar with meson:
meson.project_source_root()
meson.source_root()
meson.global_source_root()
or whether it's not source
but build
...
Success! :+1:
Off topic query out of curiosity:
You use Yarn and there's a yarn.lock, but you also have a pnpm.lock. Using two package managers makes no sense.
thank!!
yes I know, I'll remove the files. Actually, older versions of this package allowed to use whatever package manager you want (npm, pnpm, yarn, bun etc...) but it's now hardcoded to yarn since yarn is the only one that (reliably) supports offline mirrors for packages, and that's kinda required for flatpak (I suspect it's also used for caching...)
When building from source, Yarn is not able to find files while in the Meson build directory.