Macaulay2 / M2

The primary source code repository for Macaulay2, a system for computing in commutative algebra, algebraic geometry and related fields.
https://macaulay2.com
347 stars 231 forks source link

path to file mangled #1779

Closed DanGrayson closed 3 years ago

DanGrayson commented 3 years ago

What happened to the initial / in the file name in the error message here?

+ /Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/gallium-release-1.17/M2 --no-readline --print-width 105
Macaulay2, version 1.16.99
Users/dan/src/M2/M2.git/M2/Macaulay2/m2/methods.m2:3:1:(1):[6]: error: debug me

@mahrud @d-torrance

d-torrance commented 3 years ago

I can't reproduce this issue unless my current working directory is a parent of the one containing the file with the error, which is to be expected with minimizeFilename.

d-torrance commented 3 years ago

Actually, I was able to find a similar issue. If the error is raised in startup.m2.in, then the path isn't correct. But maybe that's okay since startup.m2.in just exists as a string?

profzoom@peg-amy:/tmp$ M2 --check 4
Macaulay2/Core/startup.m2.in:561:33:(0):[1]: --check 4: expected 1, 2, or 3
Macaulay2/Core/startup.m2.in:561:33:(0):[1]: --entering debugger (type help to see debugger commands)
DanGrayson commented 3 years ago

Hmm, it came back:

+ /Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/gallium-release-1.17/M2 --no-readline --print-width 102
Macaulay2, version 1.16.99
/Users/dan/src/M2/M2.git/M2/Macaulay2/m2/methods.m2:3:1:(1):[6]: error: debug me

Closing.