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

Submitted by:  Karl Hegbloom <karlhegbloom>
Submitted on:  Mon 16 Feb 2015 05:47:47 PM UTC  
Votes:  1  
 
Category: NonePriority: 5 - Normal
Item Group: NoneStatus: Works For Me
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: Release: None
Fixed Release: NoneFixed 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>
Project 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 16 Mar 2017 09:09:22 PM UTCpjoyezStatusConfirmed=>Works For Me
      Open/ClosedOpen=>Closed
    Thu 05 Mar 2015 12:12:36 AM UTCkarlhegbloomCarbon-Copy-=>Added karlhegbloom
    Mon 16 Feb 2015 09:04:15 PM UTCpjoyezStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1