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:  Jeroen Wouters <jeronim>
Submitted:  Fri 26 Nov 2021 03:34:18 PM UTC
   
 
Category:  Windows port Priority:  5 - Normal
Item Group:  Error Status:  Ready For Test
Privacy:  Public Assigned to:  sadhen
Originator Name:  Open/Closed:  Open
Release:  None Release:  2.1
Fixed Release:  None Fixed Release:  2.1.3
Keywords: 

Sun 31 Jul 2022 12:27:21 PM UTC, comment #5: 

jeronim's patch applied

Darcy Shen <sadhen>
Group Member
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)

Jeroen Wouters <jeronim>
Group Member
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.

Jeroen Wouters <jeronim>
Group Member
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.

Jeroen Wouters <jeronim>
Group Member
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


Jeroen Wouters <jeronim>
Group Member

 

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

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 sadhen (Posted a comment)
  • -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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-07-31 sadhen StatusNone Ready For Test
        Assigned toNone sadhen
        Fixed Release 2.1.3
    2022-05-06 jeronim Attached File- Added windows-local-style-fix.diff, #53178

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code