bugGNU TeXmacs - Bugs: bug #61563, Local style files in Windows give...

 
 

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

bug #61563: Local style files in Windows give a cache error

Submitter:  JW <jeronim>
Submitted:  Fri 26 Nov 2021 03:34:18 PM UTC
 
Category:  Windows port Priority:  5 - Normal
Item Group:  Error Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Release:  2.1
Fixed Release:  None Fixed Release: 
Keywords: 
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Mon 09 May 2022 06:50:07 PM UTC, comment #4: 

I have the same thing happening on Windows 10 with the most up to date version.

Gennady Uraltsev <guraltsev>
Fri 06 May 2022 11:38:20 AM UTC, comment #3: 

I have attached a patch to illustrate the proposed fix.

This has been **briefly** tested on Windows and Linux and loads local style files without problem. More testing and review would be welcome.

(file #53178)

JW <jeronim>
Fri 06 May 2022 09:21:17 AM UTC, comment #2: 

Adding `s= replace (s, "\\", "%");` to `cache_file_name` in `new_style.cpp` removes the error message and saves to a cache file, but the local style file is still not loaded. The contents of the local style file are not present in the cache.

There seem to be an additional problem with the function `exec_use_package` in `env_exec.cpp`, possibly also `env_exec.cpp`. There, the file's parent directory is added to the url `styp`, but on Windows paths of the form "C:\Users\..." are interpreted as a combination of paths "C" and "Users\...".

I believe `url_system` needs to be used here before adding a directory string to a url.

JW <jeronim>
Tue 03 May 2022 10:14:34 PM UTC, comment #1: 

An additional comment as clarification: due to the error the style file cannot be loaded. Local style files are therefore unusable in Windows.

The error message indicates that this happens because the backslash is not substituted in `src/Data/Document/new_style.cpp`.

I haven't checked this thoroughly yet, as I haven't yet been able to compile for Windows.

JW <jeronim>
Fri 26 Nov 2021 03:34:18 PM UTC, original submission:  

When I try to open a .tm file on Windows that has a local style file (i.e. a .ts file that is located in the same directory as the .tm file), I get a cache error like the following:

Save error for C:\Users\jeroen\AppData\Roaming\TeXmacs\system\cache\__generic__C_\Users\jeroen\testing__, No error

JW <jeronim>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by guraltsev (Posted a comment)
  • -email is unavailable- added by jeronim (Submitted the item)
  •  

    There are 0 votes 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.

    Only logged-in users can vote.

     

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-06 jeronim Attached File- Added windows-local-style-fix.diff, #53178

    Back to the top


    Powered by Savane 3.9