JeremyYao commented on issue #1557:
URL: 
https://github.com/apache/daffodil-vscode/issues/1557#issuecomment-4012409231

   Yup I can confirm I'm seeing the same error on the VM now. 
   
   ```bash
   jeremy@fedora:~/Desktop/daffodil-vscode-apache$ yarn test
   yarn run v1.22.22
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ yarn compile && yarn vite:dev
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ yarn nodeclean && yarn gen-version-ts && yarn svelte:build && yarn 
compile:tdmlEditorJS
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ run-func build/yarn-scripts.ts nodeclean
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ run-func build/yarn-scripts.ts genVersionTS
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ cd src/svelte && vite build --config ./vite.config.mjs --mode production 
--emptyOutDir
   ▲ [WARNING] Expected the "strict" option to be nested inside a 
"compilerOptions" object [tsconfig.json]
   
       tsconfig.json:45:2:
         45 │   "strict": true /* enable all strict type-checking options */,
            ╵   ~~~~~~~~
   
   vite v6.4.1 building for production...
   transforming (7) 
../../node_modules/svelte/src/internal/client/runtime.js10:25:10 AM 
[vite-plugin-svelte] src/components/Header/Header.svelte:84:2 Unused CSS 
selector "header div.display-icons"
   https://svelte.dev/e/css_unused_selector
   
   ✓ 178 modules transformed.
   ../../dist/views/dataEditor/index.html                                     
1.14 kB │ gzip:  0.67 kB
   ../../dist/views/dataEditor/resources/fonts/RedHatMono-Regular.woff2      
20.95 kB
   ../../dist/views/dataEditor/resources/fonts/SpaceGrotesk-Variable.woff2   
49.26 kB
   ../../dist/views/dataEditor/resources/icons/material-icons.woff2         
690.76 kB
   ../../dist/views/dataEditor/style.css                                     
27.77 kB │ gzip:  6.03 kB
   ../../dist/views/dataEditor/index.js                                     
462.03 kB │ gzip: 83.61 kB │ map: 812.37 kB
   ✓ built in 4.30s
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ esbuild src/tdmlEditor/webview/webview.js 
--outfile=dist/views/tdmlEditor/webview/webview.js --bundle --platform=node 
--format=cjs
   
     dist/views/tdmlEditor/webview/webview.js  243.3kb
   
   $ tsc -p ./ && yarn sbt
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ sbt Universal/stage
   [info] welcome to sbt 1.12.0 (Eclipse Adoptium Java 17.0.9)
   [info] loading settings for project daffodil-vscode-apache-build from 
plugins.sbt...
   [info] loading project definition from 
/home/jeremy/Desktop/daffodil-vscode-apache/project
   [info] loading settings for project daffodil-debugger from build.sbt...
   [info] set current project to daffodil-debugger (in build 
file:/home/jeremy/Desktop/daffodil-vscode-apache/)
   [info] Wrote 
/home/jeremy/Desktop/daffodil-vscode-apache/debugger/target/jvm-2.13/daffodil-debugger_2.13-1.6.0-SNAPSHOT.pom
   [info] Wrote 
/home/jeremy/Desktop/daffodil-vscode-apache/debugger/target/jvm-3/daffodil-debugger_3-1.6.0-SNAPSHOT.pom
   [info] Wrote 
/home/jeremy/Desktop/daffodil-vscode-apache/debugger/target/jvm-2.12/daffodil-debugger_2.12-1.6.0-SNAPSHOT.pom
   [success] Total time: 2 s, completed Mar 6, 2026, 10:25:29 AM
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ yarn vite build --mode development -c ./vite.config.mjs
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ /home/jeremy/Desktop/daffodil-vscode-apache/node_modules/.bin/vite build 
--mode development -c ./vite.config.mjs
   vite v6.4.1 building for development...
   ✓ 328 modules transformed.
   node_modules/@omega-edit/client/out/index.js (2:178241): Use of eval in 
"node_modules/@omega-edit/client/out/index.js" is strongly discouraged as it 
poses security risks and may cause issues with minification.
   dist/ext/extension.js  2,270.31 kB │ gzip: 446.62 kB │ map: 4,183.87 kB
   ✓ built in 5.96s
   $ sbt test && yarn test:svelte && node ./out/tests/runTest.js
   [info] welcome to sbt 1.12.0 (Eclipse Adoptium Java 17.0.9)
   [info] loading settings for project daffodil-vscode-apache-build from 
plugins.sbt...
   [info] loading project definition from 
/home/jeremy/Desktop/daffodil-vscode-apache/project
   [info] loading settings for project daffodil-debugger from build.sbt...
   [info] set current project to daffodil-debugger (in build 
file:/home/jeremy/Desktop/daffodil-vscode-apache/)
   [info] compiling 2 Scala sources and 22 Java sources to 
/home/jeremy/Desktop/daffodil-vscode-apache/debugger/target/jvm-2.13/test-classes
 ...
   [info] compiling 2 Scala sources and 22 Java sources to 
/home/jeremy/Desktop/daffodil-vscode-apache/debugger/target/jvm-2.12/test-classes
 ...
   [info] compiling 2 Scala sources and 22 Java sources to 
/home/jeremy/Desktop/daffodil-vscode-apache/debugger/target/jvm-3/test-classes 
...
   ParseSuite:
     + Parse Successful 0.276s
     + Parse failed - No Schema 0.013s
     + Parse failed - No data 0.004s
     + Parse Succeeds with No stopOnEntry 0.002s
     + Parse succeeds without infosetFormat 0.001s
     + Parse failed - invalid infosetOutput 0.005s
     + Parse failed - invalid tdmlConfig - no name 0.004s
     + Parse failed - invalid tdmlConfig - no path 0.007s
     + Parse failed - invalid tdmlConfig - invalid action 0.002s
     + Parse failed - Invalid Schema Path 0.004s
     + Parse failed - infosetOutputType not file 0.016s
   TDMLSuite:
     + Test Generate 0.319s
     + Negative Generate 0.017s
     + Test Execute 0.039s
     + Test convertToRelativePath 0.001s
     + Test createTestCase 0.001s
   ParseSuite:
     + Parse Successful 0.372s
     + Parse failed - No Schema 0.015s
     + Parse failed - No data 0.002s
     + Parse Succeeds with No stopOnEntry 0.004s
     + Parse succeeds without infosetFormat 0.013s
     + Parse failed - invalid infosetOutput 0.015s
     + Parse failed - invalid tdmlConfig - no name 0.006s
     + Parse failed - invalid tdmlConfig - no path 0.004s
     + Parse failed - invalid tdmlConfig - invalid action 0.006s
     + Parse failed - Invalid Schema Path 0.006s
     + Parse failed - infosetOutputType not file 0.015s
   TDMLSuite:
     + Test Generate 0.476s
     + Negative Generate 0.05s
     + Test Execute 0.069s
     + Test convertToRelativePath 0.001s
     + Test createTestCase 0.003s
   [info] Passed: Total 16, Failed 0, Errors 0, Passed 16
   [info] Passed: Total 16, Failed 0, Errors 0, Passed 16
   ParseSuite:
     + Parse Successful 0.748s
     + Parse failed - No Schema 0.006s
     + Parse failed - No data 0.001s
     + Parse Succeeds with No stopOnEntry 0.0s
     + Parse succeeds without infosetFormat 0.002s
     + Parse failed - invalid infosetOutput 0.003s
     + Parse failed - invalid tdmlConfig - no name 0.002s
     + Parse failed - invalid tdmlConfig - no path 0.004s
     + Parse failed - invalid tdmlConfig - invalid action 0.004s
     + Parse failed - Invalid Schema Path 0.002s
     + Parse failed - infosetOutputType not file 0.007s
   TDMLSuite:
     + Test Generate 0.183s
     + Negative Generate 0.028s
     + Test Execute 0.051s
     + Test convertToRelativePath 0.001s
     + Test createTestCase 0.001s
   [info] Passed: Total 16, Failed 0, Errors 0, Passed 16
   [success] Total time: 23 s, completed Mar 6, 2026, 10:26:05 AM
   warning [email protected]: The engine "vscode" appears 
to be invalid.
   $ mocha -r ts-node/register ./src/svelte/tests/**/*.test.ts
   
    Exception during run: Error: Unexpected module status 0. Cannot require() 
ES Module 
/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/svelte/src/store/index-server.js
 because it is not yet fully loaded. This may be caused by a race condition if 
the module is simultaneously dynamically import()-ed via Promise.all(). Try 
await-ing the import() sequentially in a loop instead. (from 
/home/jeremy/Desktop/daffodil-vscode-apache/src/svelte/src/utilities/colorScheme.ts)
   This is caused by either a bug in Node.js or incorrect usage of Node.js 
internals.
   Please open an issue with this stack trace at 
https://github.com/nodejs/node/issues
   
       at Function.fail (node:internal/assert:17:9)
       at ModuleLoader.importSyncForRequire 
(node:internal/modules/esm/loader:412:16)
       at loadESMFromCJS (node:internal/modules/cjs/loader:1537:24)
       at Module._compile (node:internal/modules/cjs/loader:1688:5)
       at Module._extensions..js (node:internal/modules/cjs/loader:1839:10)
       at Object.require.extensions.<computed> [as .js] 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/ts-node/src/index.ts:1608:43)
       at Module.load (node:internal/modules/cjs/loader:1441:32)
       at Function.Module._load (node:internal/modules/cjs/loader:1263:12)
       at TracingChannel.traceSync (node:diagnostics_channel:328:14)
       at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
       at Module.require (node:internal/modules/cjs/loader:1463:12)
       at require (node:internal/modules/helpers:147:16)
       at Object.<anonymous> 
(/home/jeremy/Desktop/daffodil-vscode-apache/src/svelte/src/utilities/colorScheme.ts:18:1)
       at Module._compile (node:internal/modules/cjs/loader:1706:14)
       at Module.m._compile 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/ts-node/src/index.ts:1618:23)
       at Module._extensions..js (node:internal/modules/cjs/loader:1839:10)
       at Object.require.extensions.<computed> [as .ts] 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/ts-node/src/index.ts:1621:12)
       at Module.load (node:internal/modules/cjs/loader:1441:32)
       at Function.Module._load (node:internal/modules/cjs/loader:1263:12)
       at TracingChannel.traceSync (node:diagnostics_channel:328:14)
       at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
       at Module.require (node:internal/modules/cjs/loader:1463:12)
       at require (node:internal/modules/helpers:147:16)
       at Object.<anonymous> 
(/home/jeremy/Desktop/daffodil-vscode-apache/src/svelte/src/stores/index.ts:19:1)
       at Module._compile (node:internal/modules/cjs/loader:1706:14)
       at Module.m._compile 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/ts-node/src/index.ts:1618:23)
       at Module._extensions..js (node:internal/modules/cjs/loader:1839:10)
       at Object.require.extensions.<computed> [as .ts] 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/ts-node/src/index.ts:1621:12)
       at Module.load (node:internal/modules/cjs/loader:1441:32)
       at Function.Module._load (node:internal/modules/cjs/loader:1263:12)
       at TracingChannel.traceSync (node:diagnostics_channel:328:14)
       at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
       at Module.require (node:internal/modules/cjs/loader:1463:12)
       at require (node:internal/modules/helpers:147:16)
       at Object.<anonymous> 
(/home/jeremy/Desktop/daffodil-vscode-apache/src/svelte/tests/stores/index.test.ts:19:1)
       at Module._compile (node:internal/modules/cjs/loader:1706:14)
       at Module.m._compile 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/ts-node/src/index.ts:1618:23)
       at Module._extensions..js (node:internal/modules/cjs/loader:1839:10)
       at Object.require.extensions.<computed> [as .ts] 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/ts-node/src/index.ts:1621:12)
       at Module.load (node:internal/modules/cjs/loader:1441:32)
       at Function.Module._load (node:internal/modules/cjs/loader:1263:12)
       at TracingChannel.traceSync (node:diagnostics_channel:328:14)
       at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
       at Module.require (node:internal/modules/cjs/loader:1463:12)
       at require (node:internal/modules/helpers:147:16)
       at Object.exports.requireOrImport 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/mocha/lib/nodejs/esm-utils.js:53:16)
       at async Object.exports.loadFilesAsync 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
       at async singleRun 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/mocha/lib/cli/run-helpers.js:164:3)
       at async Object.exports.handler 
(/home/jeremy/Desktop/daffodil-vscode-apache/node_modules/mocha/lib/cli/run.js:379:5)
 {
     code: 'ERR_INTERNAL_ASSERTION'
   }
   error Command failed with exit code 1.
   info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this 
command.
   error Command failed with exit code 1.
   info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this 
command.
   jeremy@fedora:~/Desktop/daffodil-vscode-apache$ 
   
   ```
   
   
    I'll be describing my methodology below to reproduce the bug starting from 
prior steps.
   
   - I removed fnm via following commands and from .bashrc
   
   ```bash
   fnm uninstall 24
   rm -rf ~/.fnm
   rm -rf ~/.local/bin/fnm
   rm -rf /usr/local/bin/fnm
   ```
   
   - Install node via 
   
   ```bash
   sudo dnf install nodejs
   ```
   
   - Note: yarn doesn't come bundled
   
   ```
   jeremy@fedora:~/Desktop/daffodil-vscode-apache$ corepack enable yarn
   bash: corepack: command not found...
   ```
   
   - Install yarn
   
   ```
   jeremy@fedora:~/Desktop/daffodil-vscode-apache$ sudo npm install --global 
yarn
   ```
   
   - Clean and yarn 
   
   ```
   git clean -fdx
   yarn install
   yarn package
   yarn test
   ```
   
   
   
   


-- 
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