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/move directories.

See original GitHub issue

Describe the bug

In windows, the ng language service plugin locks all folder/subfolders of the workspace.

I tracked this lock down with LockHunter.exe: image It points to the VSCode subprocess for angular.ng-template.0.901.3\server.

This lock causes renaming directories to fail with: Error: EPERM: operation not permitted, rename '<source>' -> '<target>'

To Reproduce

Steps to reproduce the behavior:

  1. Open any angular workspace that has subdirectories
  2. Rename/move a directory within that workspace

Expected behavior

Folder renaming should work.

Logs

Not applicable.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Version info:

Angular CLI: 9.1.1
Node: 12.11.1     
OS: win32 x64     

Angular: 9.1.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Ivy Workspace: No

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.1
@angular-devkit/build-angular     0.901.1
@angular-devkit/build-optimizer   0.901.1
@angular-devkit/build-webpack     0.901.1
@angular-devkit/core              9.1.1
@angular-devkit/schematics        9.1.1
@angular/cdk                      9.2.1
@angular/cli                      9.1.1
@angular/material                 9.2.1
@ngtools/webpack                  9.1.1
@schematics/angular               8.3.25
@schematics/update                0.901.1
rxjs                              6.5.4
typescript                        3.7.5
webpack                           4.42.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kyliaucommented, Feb 19, 2021

The non-polling watchers are used to improve performance, but now that there’s built-in option to configure watch mode, we should remove the environment variable.

0reactions
atscottcommented, Apr 30, 2021

Re-opening since we have to revert commit 17708d4 to address #1310

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix: Cannot Rename or Move Folders in Windows 10
If you're unable to rename or more folders in Windows 10, it's caused due to missing registry entries under the FolderDescriptions registry key....
Read more >
I cannot move, copy or rename my files. - Microsoft Community
1. Go to run command by pressing Windows Logo + R at the same time. 2. Type netplwiz then hit enter. 3. Under...
Read more >
Solution to cannot rename file because the folder or a file in it ...
Step 1: Go to Folder Options​​ In Windows Explorer, click the Option key to make the hidden menu appear, then select Tools /...
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 >
Unable to Rename a File in Windows 10? 8 Ways to Fix It
1. First, Rule Out a File Specific Issue · 2. Ensure You Have Access to the File You're Renaming · 3. Ensure the...
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