4

Could it be that the Asymptote package in MiKTeX is broken?

I have installed all the updates and my asymptote package has the version 2.65 and my miktex-asymptote-bin-x64-2.9 has the version 2.67 and since the update of the latter package on 10/31 I can't compile any asymptote file.

C:\>"c:\Program Files\MiKTeX\miktex\bin\x64\miktex-asy.exe"
Welcome to miktex-asy version 2.67 (to view the manual, type help)
warning [version]: using possibly incompatible version 2.65 of plain.asy
>

If I try to compile the very simple example below I got the error message:

C:\test>"c:\Program Files\MiKTeX\miktex\bin\x64\miktex-asy.exe" hello.asy
warning [version]: using possibly incompatible version 2.65 of plain.asy

    pic.addBox(position,position,min(f),max(f));
              ^
c:\Program Files\MiKTeX/asymptote/plain_Label.asy: 321.15: runtime:

The hello.asy file is:

settings.outformat = "pdf";
defaultpen(fontsize(10pt));
label("Hello world!");

Does anybody else have the same issue? What am I missing here?

Thank you for your help.

4
  • Standard asymptote (by which I mean, what you get if you do not import anything) consists of the asymptote language together with the "plain" asy library, which is imported automatically behind the scenes. It looks like the asymptote language is for some reason finding the old version of the plain library rather than the version that came with the updated installation. For a quick-and-dirty solution, try copying the contents of github.com/vectorgraphics/asymptote/tree/2.67/base into C:\Program Files\MiKTeX\asymptote.... Dec 2, 2020 at 14:39
  • You can alternatively get these contents by downloading asymptote-2.67.src.tgz from sourceforge.net/projects/asymptote/files/2.67 and unpacking the base folder within the archive. Dec 2, 2020 at 14:40
  • @CharlesStaats: thank you for your comments. I have tried as you suggersted to copy the files from the base folder in the archive to the asymptote folder under MiKTeX but unfortunately it still does't work. I have also adjusted the version to 2.67 in the version.asy file. That removes the incompatibility warning but the asy file still can not be compiled.
    – Bence
    Dec 3, 2020 at 7:55
  • You can't update the plain.asy file(s) just by overwriting the version number! You need to actually get the up-to-date versions. I suggest uninstalling the old version and reinstalling version 2.68. Jan 28, 2021 at 6:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.