Replies: 6 comments 4 replies
-
@rocky, probably the way to handle this error is to skip it in Windows. Another possibility would be to use the |
Beta Was this translation helpful? Give feedback.
-
The issue of ugly path names is still around and people will use Mathics on Microsoft Windows.
While I like pathlib, that is not the problem and I don't think that will solve confusion. The problem is in how this gets represented both internally and back to the user.
This kind of thing happens a lot. We are always working on the same thing when it would be better if we worked on different things. I now have a Windows setup that I can use to check things over. I will spend a week on that. After that is done, I will stop and move onto other things. In fact, the reason I haven't been working on Mathics3 much is because I need to focus on my BlackHat Asia talk in mid April. (Yes, I need that much time on this because I need to update software as well as slides and probably write a "whitepaper" as well.) For next week, I would greatly appreciate it if we you would focus whatever time you have to get doctests working by chapter and section. And then remove the obstacle in the doc system which prevents these highly touted Mathics3 modules (that we would like to replace everything with) work more along the same way that builtin modules work. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
One other thing with respect to Windows testing that I am not working on right now so that too would be good to too. (But personally, I would prefer it if we could finish things started rather than jump around). If we create a CircleCI setup for Microsoft Windows, then when things break we can ssh into the CI server and debug things that way. CircleCI really is much better than github actions and it is also generally faster too. There can however be a big learning curve and it is constantly changing more rapidly than actions. But the changes CircleCI makes is all to improve speed flexibility and long-term maintainability. |
Beta Was this translation helpful? Give feedback.
-
I started looking at this just because a part of the CI got broken. But OK, I leave this for you when you have the time.
OK, I will focus o on this then. |
Beta Was this translation helpful? Give feedback.
-
Some small follow ups. First, I see that Second, I have been wondering exactly where that tab got inserted by mistake and was worried that we might have a bug in our scanner. We do not. We handle |
Beta Was this translation helpful? Give feedback.
-
Looking at the Windows failures I am seeing a some flakiness and weaknesses in I have added comments to #908 |
Beta Was this translation helpful? Give feedback.
-
I have been looking into the Windows failures that have been more prevalent.
Apparently changes in improving $InputFileName have made things worse. No good deed goes unpunished.
One problem stems from Windows predilection for using backslash as a path separator. Python uses backslash as an as an escape character in front of some letters, like "t".
When
os.path.join()
is used we get path names likeC:\\Users\\rocky\\Appdata\\Programs\\...
. In Python tests we will see...\\test\\...
. Oddly the\t
sometimes gets treated as a tab!Python provides
PureWindowsPath.as_posix()
which will convert backslashes to forward slashes in file paths.In my opinion this is more readable and less prone to error.
I suggest then we canonical path names to the POSIX equivalent.
Anyone know what WMA does on MS Windows?
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions