fret icon indicating copy to clipboard operation
fret copied to clipboard

realisability checker TypeError

Open pcyac21 opened this issue 1 year ago • 5 comments

Hi,

When diagnosing unrealizable requirements this TypeError appears: TypeError: Cannot read properties of undefined (reading '0') Testing is a boolean input variable.

What is that trying to communicate?

Thanks, Anna

Image

pcyac21 avatar Jan 31 '25 14:01 pcyac21

This is also happening to me (Anna is one of my students at Nottingham) with Ubuntu 22.04.5, Node v20.18.0, and using Kind2 v2.2.0 and Z3.

Anna is on a Mac, also using Kind2 v2.2.0 and Z3.

FRET also prints the following error details to the terminal:

TypeError: Cannot read properties of undefined (reading '0')
    at o.exports.runEnginesAndGatherResults (/home/pszml/bin/fret/fret-electron/app/webpack:/fret/analysis/DiagnosisEngine.js:160:38)
    at o.exports.main (/home/pszml/bin/fret/fret-electron/app/webpack:/fret/analysis/DiagnosisEngine.js:633:30)
    at /home/pszml/bin/fret/fret-electron/app/webpack:/fret/model/realizabilitySupport/realizabilityUtils.js:540:18
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Thanks, Matt

mluckcuck avatar Jan 31 '25 15:01 mluckcuck

Hi Anna and Matt,

I've been able to replicate this on Ubuntu. Using Kind2 v2.1.1 seems to resolve this issue. Can you downgrade to that and let me know if it worked?

When you downgrade, make sure that the correct Kind2 binary is accessible to FRET. This means that you may need to update the directory under which the new binary exists in your PATH environment variable.

Thanks,

Andreas

andreaskatis avatar Jan 31 '25 16:01 andreaskatis

One way to ensure that you are indeed using the correct binary is to run the following command from a terminal window:

kind2 --version

The output should be kind2 v2.1.1.

Andreas

andreaskatis avatar Jan 31 '25 17:01 andreaskatis

Hi @andreaskatis

I've downgraded Kind2 to version 2.1.1 and it works now:

Image

Perhaps I'll default to using Kind2 v2.1.1 for this, it seems to be more stable.

Hopefully this works for Anna on her Mac too.

Thanks for your help, Andreas!

mluckcuck avatar Jan 31 '25 17:01 mluckcuck

Changing to kind2 v2.1.1 also works for me.

Thanks for helping!

pcyac21 avatar Feb 04 '25 15:02 pcyac21