fret icon indicating copy to clipboard operation
fret copied to clipboard

Issue with the fret-install script

Open oisinsheridan opened this issue 1 year ago • 3 comments

I have come across a strange problem with the fret-install script after pulling the newest version (both for main FRET and merging the updates into the Mu-FRET fork). When I try to run 'npm run fret-install', it crashes out with a "no such file or directory" error (see below):

Image

However, it installs correctly if I manually run each command in sequence, i.e. running

  1. npm run clean
  2. npm install
  3. npm --prefix ../tools/LTLSIM/ltlsim-core install ../tools/LTLSIM/ltlsim-core && npm run build

I tried fixing this by changing the fret-install script to use '&&' after clean instead of ';' , as shown below. Image

That does work to get past that crash, but then it crashes once it gets to the LTLSIM installation with this message about "native dependencies". Somehow, running 'npm --prefix ../tools/LTLSIM/ltlsim-core install ../tools/LTLSIM/ltlsim-core && npm run build' after this point works fine. Image

I'm not really sure how this problem is coming about; maybe it's because I'm on Windows and I'm still using Cygwin rather than WSL?

Also, as a somewhat related issue, if you try to re-install FRET after already installing, it will crash at the installation of LTLSIM. Seemingly, this is because of the version number being "3.0" instead of "3.0.0"; I think this is because of the LTLSIM package-lock.json file getting re-generated during installation.

Image

oisinsheridan avatar Apr 17 '25 11:04 oisinsheridan

Hi @oisinsheridan ,

Thank you for your message. We recently updated the installation scripts, consolidating the installation and re-installation scripts to running just one command (npm run fret-install), regardless of whether you have FRET already installed or not. This consolidation has resulted into definitions for our npm scripts that are no longer compatible with the hybrid Windows/Linux environment used in Cygwin. Consequently, we decided to remove the Cygwin installation guide as the resulting environment was too complex, leading to intricate issues like the one you are facing now.

As such, I would strongly recommend re-installing FRET using the WSL guide. This will establish a FRET installation within a Linux environment that will be much easier to maintain and update in the future. We are more than glad to help you with the installation, should issues arise.

Best,

Andreas

andreaskatis avatar Apr 17 '25 13:04 andreaskatis

Hi @oisinsheridan,

Was Andreas' answer helpful? Please let us know.

anmavrid avatar Apr 24 '25 21:04 anmavrid

Hi, sorry for not replying. Thanks for the explanation for the switch over to WSL. I will have a look at setting up WSL at some point soon and let you know how it goes.

oisinsheridan avatar Apr 25 '25 10:04 oisinsheridan