New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete folder in Editor deleting package contents #5583
Comments
This comment was originally written by prujo...@gmail.com It's like there's a bad cache somewhere, but I can't find it. Any ideas? I thought it was supposed to be in my user profile (.pub_cache) I can't seem to find it anywhere else. |
This comment was originally written by pruj...@gmail.com For example. I was able to recover a few of the packages by redirecting pubspec.yaml dependencies to pub.dartlang.org, but the one I don't have published there is still not updating. |
This comment was originally written by prujoh...@gmail.com fixed. I was able to find the cache (location changed I guess) using a symlink extension. |
Crap, yes, sorry. The location of the system cache changed. That was a result of fixing that "null" directory bug. It now puts the system cache in a Windows-friendly location: AppData/Roaming/Pub/Cache. cc-ing Keerti since this may be an issue with how the Editor deletes directories. I'll try to repro and see what I can figure out. I'm really sorry for the trouble here, especially the file deletion (!). That's definitely not something we want pub or the editor to do. cc @keertip. |
This comment was originally written by prujoh...@gmail.com No problem guys, I knew that cache had to be somewhere! :) Hey do I need to open a new bug on the folder deletion piece? Also the editor can get hung up when moving folders (that have packages/) sometimes. |
@john, If you can reproduce the editor hang on close/delete/move folders, do open an issue for editor with steps to repro and we will look into it. |
This comment was originally written by prujohn...@gmail.com Well it's intermittent. Sometimes it works (when I cross my fingers and squint hard enough). Sometimes in hangs the editor indefinitely, with the working dialog still displayed. Again this is only when operating on folders that have a /packages replica. |
No, I'll consider this bug to be about that, thanks. |
Hey, John. What's the status of this? I think I got confused on this thread. Is the only remaining issue here that the Editor hangs on deleting a folder? |
This comment was originally written by pru...@gmail.com Correct. Folder deletion. |
OK, sorry for the confusion. Changing this to be an editor bug then. Set owner to @keertip. |
Added this to the M2 milestone. |
Are you still having issues with folder deletion in editor? Any steps to help repro would be helpful. |
This comment was originally written by prujoh...@gmail.com I was going to wait until the next weekly comes out and then try again. Will update then. |
This comment was originally written by @bp74 The problem is not fixed on Windows 7. I just deleted a folder in my project which contained a "packages" folder, now all files in all "packages" folders are gone. The only way to fix it, is deleting the "Pub/Cache/git" folder and run "pub install" again. Windows 7 64 bit, Dart Editor Build 13679 |
How did you delete the folder? Using Windows Explorer? The Editor? Command line? |
This comment was originally written by @bp74 I used the Dart Editor to delete the folder. |
This comment was originally written by @bp74 Maybe i should add that only the files were gone, all the folders inside of the package were still there. |
I think this is likely an editor issue, then. I did notice that src/com/google/dart/tools/core/utilities/io/FileUtilities.java looks like it's doing a naive recursive delete that will walk into symlinks. I don't know if that's the issue or not, though. |
This issue was originally filed by pruj...@gmail.com
Win7, 64
build 12784
What I did:
All of my root project files had were DELETED(recovered with git reset).
I'm stuck. Time for Skyrim.
pubspec.yaml for reference:
name: buckshot
description: >
Buckshot is a UI Framework for modern web applications. It attempts to model
the best of .net WPF (Silverlight) and Adobe Flex, but without the need for a
plug-in. Buckshot renders all output in HTML5/CSS3, and makes use of features
available in today's modern web browsers. If you've worked with .net WPF or
Silverlight then this framework will feel very familiar to you.
version: 0.0.2-alpha
author: John Evans <prujohn@gmail.com>
homepage: http://www.buckshotui.org
dependencies:
xml:
git: git://github.com/prujohn/dart-xml.git
dartnet_event_model:
git: git://github.com/prujohn/DartNet-Event-Model.git
dart_utils:
git: git://github.com/prujohn/dart_utils.git
unittest:
sdk: unittest
The text was updated successfully, but these errors were encountered: