New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with saving as directory #589
Comments
It is indeed the length of the filename nesting that is breaking you up. If you count how long that path is, you'll see it is 270 characters long. The MAX_PATH constant (which is an ancient constraint that Windows still abides by unless applications specifically mark themselves compatible) ends at 260... which means that your path runs into a problem. I ran into the same problem myself a couple of months ago; you can check issue #517 for more information. There is a workaround listed in it that may work well enough for you, but that solution could potentially negatively affect the workings of other applications on your machine. (It probably won't, but changing MAX_PATH on your system is like changing the constant that defines gravity on earth; most programs are simply not prepared to deal the subtleties that follow from it.) We may have to look into a more program-centric way to work around this issue on Windows at some point, because the workarounds we know of are not ideal. Edit: I figure I might as well sum up the workarounds.
Workarounds like these are not pretty and definitely not ideal, but they are solutions you can use to work around the problem right this second. Edit the Second: I totally forgot the most obvious thing you can do that is perhaps the neatest...
Note that you specifically want Python 3.6 or later, because that version has the builtin switch that says 'we support the longer MAX_PATH'. The official Manuskript release for Windows is released with Python 3.4 because that is the last version of Python that supports Windows XP, and that is at present still a platform we garget. The 'advantage' of this third option is that you can very easily update to the latest version of Manuskript to test out features or bugfixes because you are running directly from the development branch. (Of course, works in progress could also introduce new bugs, but that shouldn't typically happen.) |
Thank you, I will look into these options. I had a feeling it was something like this, however. Thank you! |
Working on Windows 10, have laid out my outline and copied in the relevant information from my previous google docs version, then realized I had forgotten to change to directory mode ("save to single file" was still clicked on). When I clicked this off and hit save it crashed.
It has now crashed numerous times. I'm not sure if it is a bug, an installation issue, or even just a file problem. BTW I thought it might be because of the length of file/folder names and the depth of files, but I moved the files to the base of a different drive and it seems to die in the same place. The output from commandline is below.
The text was updated successfully, but these errors were encountered: