stkb / Rewrap

Rewrap extension for VSCode and Visual Studio
https://marketplace.visualstudio.com/items/stkb.rewrap
Other
499 stars 58 forks source link

GitHub action for building and testing no longer works #398

Open hjfreyer opened 3 months ago

hjfreyer commented 3 months ago

I tried to make a minor modification to the extension and use GitHub Actions to build the project in an isolated environment, but it failed in a couple different ways.

First: https://github.com/hjfreyer/Rewrap/actions/runs/8481929442/job/23240192315

/usr/bin/bash /home/runner/work/_actions/GabrielBB/xvfb-action/v1.2/cleanup.sh
No xvfb processes to kill
/usr/bin/xvfb-run: 184: ./do: Permission denied
/home/runner/work/_actions/GabrielBB/xvfb-action/v1.2/node_modules/@actions/exec/lib/toolrunner.js:561
                error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);

Then I made a change to make do executable, but it still didn't work: https://github.com/hjfreyer/Rewrap/actions/runs/8481949322

/usr/bin/bash /home/runner/work/_actions/GabrielBB/xvfb-action/v1.2/cleanup.sh
No xvfb processes to kill
internal/process/esm_loader.js:74
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'timers' imported from /home/runner/work/Rewrap/Rewrap/.config/do.mjs
    at new NodeError (internal/errors.js:322:7)
    at packageResolve (internal/modules/esm/resolve.js:732:9)

This one seemed harder to fix, so I gave up.