JeremyYao commented on PR #1382:
URL: https://github.com/apache/daffodil-vscode/pull/1382#issuecomment-3259243464

   > > When I attempt to debug the extension, it runs `yarn watch`. `yarn 
watch` is outputting this:
   > 
   > @JeremyYao - It looks as if this is due to the fact that it's trying to 
build the entire project _and_ run `watch` for other sections of the project. 
Due to the fact that it's concurrent it causes the initial build script to not 
be complete before also executing the additional 2 `watch` scripts.
   > 
   > It's not included in your console output but I'm assuming it's the same 
issue as mine. That issue being that the subsequent concurrent scripts are 
attempting to utilize the zipfile: 
`daffodil-vscode/debugger/target/universal/daffodil-debugger-3.11.0-1.4.2-SNAPSHOT.zip`
 but it has not been generated yet and causes an exception.
   > 
   > You can determine for a fact that this is the same issue if you run the 
command:
   > 
   > ```shell
   > yarn run-func build/yarn-scripts.ts watch
   > ```
   > 
   > I believe there's an issue with running the command from a `yarn watch` 
invocation where if a concurrent exception is thrown it will not be displayed 
until all the concurrent tasks have completed / failed. Whereas, if you run 
that command explicitly it execution terminates immediately after an exception 
is thrown.
   > 
   > Try that out and let me know.
   
   I'm running into the following output below on W10. My previous comment is 
on Windows 10 as well
   
   ```Powershell
   PS PATH> yarn run-func build/yarn-scripts.ts watch
   yarn run v1.22.22
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ PATH\node_modules\.bin\run-func build/yarn-scripts.ts watch
   [concurrently] killOthers is deprecated. Use killOthersOn instead.
   $ esbuild src/tdmlEditor/webview/webview.js 
--outfile=dist/views/tdmlEditor/webview/webview.js --bundle --platform=node 
--format=cjs --watch
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ cd src/svelte && DEBUG_DATAEDITOR=on vite --config ./vite.config.mjs build 
--mode development --watch
   [1] 'DEBUG_DATAEDITOR' is not recognized as an internal or external command,
   [1] operable program or batch file.
   info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this 
command.
   error Command failed with exit code 1.
   [1] yarn watch:svelte exited with code 1
   --> Sending SIGTERM to other processes..
   [0] vite build -w -c ./vite/dev.vite.config.mjs exited with code 1
   --> Sending SIGTERM to other processes..
   [2] yarn watch:tdmlEditorJS exited with code 1
   node:internal/process/promises:392
         new UnhandledPromiseRejection(reason);
         ^
   
   UnhandledPromiseRejection: 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(). The promise rejected with the reason "[object 
Array]".
       at throwUnhandledRejectionsMode (node:internal/process/promises:392:7)
       at processPromiseRejections (node:internal/process/promises:475:17)
       at process.processTicksAndRejections 
(node:internal/process/task_queues:106:32) {
     code: 'ERR_UNHANDLED_REJECTION'
   }
   
   Node.js v22.14.0
   error Command failed with exit code 1.
   info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this 
command.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to