Cannot rename/move directories.
See original GitHub issueDescribe the bug
In windows, the ng language service plugin locks all folder/subfolders of the workspace.
I tracked this lock down with LockHunter.exe:
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:
- Open any angular workspace that has subdirectories
- 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:
- Created 3 years ago
- Reactions:4
- Comments:10 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Re-opening since we have to revert commit 17708d4 to address #1310