transpiler icon indicating copy to clipboard operation
transpiler copied to clipboard

ReferenceError: TypeInference is not defined.

Open KoolenDasheppi opened this issue 8 years ago • 12 comments

It's in the title, help please? This looks really cool, and I really want to try it!

KoolenDasheppi avatar Jun 09 '16 00:06 KoolenDasheppi

Universal-transpiler is compatible with SWI-Prolog. Which Prolog interpreter are you using?

jarble avatar Jun 09 '16 01:06 jarble

Oh, I was using the javascript version, I'll try the Prolog version now though. :|

EDIT: SWI-Prolog gives me this error:

Warning: c:/users/coolj/documents/universal-transpiler-master/universal-transpiler-master/universal-transpiler.pl:25: Initialization goal failed

KoolenDasheppi avatar Jun 14 '16 23:06 KoolenDasheppi

The latest version works correctly on Windows and Ubuntu. Which operating system are you using?

jarble avatar Jun 15 '16 03:06 jarble

I am using Windows 10 currently.

KoolenDasheppi avatar Jun 15 '16 11:06 KoolenDasheppi

I am using the latest version on Windows 10 and it runs correctly. Is input.txt saved in the same folder as universal-transpiler.pl on your machine?

jarble avatar Jun 15 '16 15:06 jarble

Yes it is saved in the same directory... Maybe it's because I am on the Fast ring of the Insider Program???

EDIT: I am looking back at that error and it looks like it says there error is on line 25, which is "initialization"? I don't know anything about Prolog... so yeah.

KoolenDasheppi avatar Jun 15 '16 16:06 KoolenDasheppi

You might be using an outdated version of universal-transpiler. Try using the latest version: when you open universal-transpiler.pl it should show a prompt like this one:

Edit the source code in input.txt, type the name of the the input language, and press Enter:

jarble avatar Jun 15 '16 17:06 jarble

That's exactly what it says, and I just downloaded the day I submitted this issue... :\

EDIT: I just downloaded latest version, and now it just freezes when I give it the output language... How long does it take usually?

KoolenDasheppi avatar Jun 15 '16 19:06 KoolenDasheppi

I made another update to the system now; the latest version will print the output in several languages after the console is opened.

jarble avatar Jun 16 '16 03:06 jarble

I just redownloaded it, and now it's back to the initialization goal failed error.

KoolenDasheppi avatar Jun 16 '16 12:06 KoolenDasheppi

You need to extract the folder in order to use universal-transpiler. Did you extract the files before opening universal-transpiler.pl?

jarble avatar Jun 16 '16 14:06 jarble

Yes, it's extracted. I think my computer is just really crappy or something... :\

KoolenDasheppi avatar Jun 16 '16 18:06 KoolenDasheppi