Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

errors opening M2 in Aquamacs after opening a file

23 views
Skip to first unread message

Jessica Sidman

unread,
Sep 9, 2024, 1:39:08 PM9/9/24
to maca...@googlegroups.com
Greetings,

I run Macaulay 2 in aquamacs and am having a strange problem.  If I open aquamacs, press f12, and then open a file, everything works perfectly.

However, if I open a file and then press f12 to start Macaulay 2, I see the errors attached and can't even declare a polynomial ring.  I'd be grateful for advice on how to fix this (although I can always use the other order, opening M2 and then a file.) 

Thanks,

Jessica
Screenshot 2024-09-09 at 1.37.33 PM.png

Doug Torrance

unread,
Sep 9, 2024, 6:58:01 PM9/9/24
to Macaulay2
When Macaulay2 starts, it looks for certain files to load Core and the other pre-loaded packages in the directories in the "path" variable [1].  By default, the first directory it looks in is ".", which is the current directory.  And if you press F12 from a buffer that's visiting some file, then the current directory will be the directory containing that file.
So my guess is that the directory containing that file contains some .m2 file with the same name as one of the files that it's trying to load but with different contents, leading to unexpected behavior.

Mahrud Sayrafi

unread,
Sep 10, 2024, 10:09:05 PM9/10/24
to maca...@googlegroups.com
I think David might be running into the same issue.

It would be great if someone could take a look at using C++ function std::filesystem::canonical (c.f. #3145) to once and for all fix this issue for mac users.

Mahrud

--
You received this message because you are subscribed to the Google Groups "Macaulay2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to macaulay2+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/macaulay2/e7fa9fb6-32db-470a-9411-42ad3296c46cn%40googlegroups.com.

Jessica Sidman

unread,
Sep 10, 2024, 10:39:42 PM9/10/24
to maca...@googlegroups.com
Ah, thanks!  I tried opening M2 from files in other directories, and it was fine.  It's just the files in that particular directory which must have a .m2 file with a name in common with something standard.

Thanks!

Jessica

--
Reply all
Reply to author
Forward
0 new messages