question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot rename file using configuration build.files

See original GitHub issue
  • Version: 21.2.0
  • Target: NA

The doc states that app contents can be renamed using from and to (#1119). However it doesn’t work:

  1. Setting from to an existing file path, and to to the expected file path, the expected file does not exist in the asar. It seems from is still considered as a directory path, since the FileMatcher contains **/* in patterns. Maybe glob doesn’t return anything now, while when you implemented this feature it returned the original path?
  2. Not setting from, but instead setting filter to ["<file path>"], actually creates a directory at the expected file path, containing a hierarchy of dirs and finally a unique file, with the original name.
  3. Setting from to the file’s directory, and setting the filename in filter, does the same as point 2 expect the file is directly in the directory.

There’s no explanations in the doc, so I have no other ideas. Can you please check the feature is working as intended, and if so, give some more details?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:13

github_iconTop GitHub Comments

5reactions
KoltesDigitalcommented, Apr 13, 2020

Yes it is.

2reactions
KoltesDigitalcommented, Feb 9, 2020

Of course it is still relevant, you haven’t even replied.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot rename files from within sandbox - Stack Overflow
When I create a folder, and then a file within that folder, I can rename that file even from within the sandbox. But...
Read more >
The File or Folder does not exist, Unable to move or rename in ...
If when you try to move or rename files or folders on your Windows computer, you cannot move or rename files or folders,...
Read more >
Problem creating/renaming a folder on a network share with ...
Nature of problem: When I create a new folder on a share (e.g. \\contososerver\Company) that is hosted on Windows Server 2012 R2 running...
Read more >
Cannot rename files from SB in Win10 - Sophos Community
When I create a folder, and then a file within that folder, I can rename that file. But I see no difference in...
Read more >
Rename or Move files in GIT - Aram Koukia
Problem. In your Git working directory, you wish to rename a previously committed file named mycoolclass.cs to myCoolClass.cs and commit the newly renamed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found