bugGNU TeXmacs - Bugs: bug #44277, Save error for cache filename too...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #44277: Save error for cache filename too long

Submitter:  Karl Hegbloom <karlhegbloom>
Submitted:  Mon 16 Feb 2015 05:47:47 PM UTC
Votes: 1
 
Category:  None Priority:  5 - Normal
Item Group:  None Status:  Works For Me
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Release: 
Fixed Release:  None Fixed Release: 
Keywords: 

Thu 16 Mar 2017 09:09:22 PM UTC, comment #2: 

I can't reproduce this presently in Ubuntu 16.04: No problem at all opening a tm flie alongside a custom ts file whith a path over 600 bytes long.

Closing. Feel free to reopen if you can provide details to reproduce.

Philippe Joyez <pjoyez>
Group Member
Mon 16 Feb 2015 09:04:15 PM UTC, comment #1: 

AFAICT Texmacs does not fix any limit to the path length on its own; the error you see is generated by fopen from stdio and it's strange that it is set to only 255. I'm not certain but fixing that could be as simple as (re)defining a larger value for PATH_MAX (and maybe NAME_MAX too while we're at it).

Besides modifying the code, a way to work around your problem could be by simply making a symlik to your working directory, so that the full path through the symlink is less than 255 characters.

Philippe Joyez <pjoyez>
Group Member
Mon 16 Feb 2015 05:47:47 PM UTC, original submission:  

I have a style package in the same directory as the document, so that it can be synced to my other computer or to other people who also might open the document, avoiding having to keep them up to date in the ~/.TeXmacs directories. The document and it's style sheet are stored in a fairly deeply nested folder with long directory and file names.

Whenever I open the document I get a warning dialog about the file name being too long. It exceeds the maximum filename length of 255 characters.

I propose that these file names for the cache be either abbreviated by cutting out part of the middle, or turned into a SHA1 or MD5 hash of the file url. I do not have time to create a patch for that today or I'd just try and do it.

Karl Hegbloom <karlhegbloom>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by karlhegbloom (Voted in favor of this item)
  • -email is unavailable- added by pjoyez (Posted a comment)
  • -email is unavailable- added by karlhegbloom (Submitted the item)
  •  

    There is 1 vote so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-16 pjoyez StatusConfirmed Works For Me
        Open/ClosedOpen Closed
    2015-03-05 karlhegbloom Carbon-Copy- Added karlhegbloom
    2015-02-16 pjoyez StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code