htmltidy2 icon indicating copy to clipboard operation
htmltidy2 copied to clipboard

Unnecessary Exception for ARM64 Linux

Open queejie opened this issue 3 years ago • 3 comments

Thanks again for this tool. There is a small tweak that would help us in using it on Linux on an ARM64 environment. We are currently getting this error message: "Error: unsupported execution platform". I think it just needs an else if here:

function chooseExec() {
    ...
    case 'linux':
      if (process.arch == 'x64') {
        tidyExe = path.join('linux64/', 'tidy');
      } else {
        throw new Error('unsupported execution platform');
      }
      break;
     ....

Any help on this would be appreciated. Thank you.

queejie avatar Oct 13 '22 18:10 queejie

is linux64 binary works for ARM64 ?

c0b41 avatar Oct 14 '22 10:10 c0b41

I'm not sure, but you can install htmltidy2 on Linux using apt-get. Here's the uname result:

Linux devvm 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux

queejie avatar Oct 14 '22 14:10 queejie

Any update on this issue? Facing the same issue unable to run it on M1 chip ARM64.

kelisiki avatar Sep 12 '23 04:09 kelisiki