-
Notifications
You must be signed in to change notification settings - Fork 15
Removing a project path when updating behaves weirdly #60
Comments
that's weird. a while ago i found issues like you described and made some changes. do you have my latest commits in your fork/branch? |
Yeah. I found it as I was submitting my latest PR, and I was all up to date at that point. |
first point i have identified in the code and is an easy fix (so tomorrow will apply the patch). the second point is intentional to add to tree or remove from it if you do the action in the update. So the only alternative i see is to make it as an option in config. what you think? i prefer to make it "syncable" between PV/TV. |
i need to investigate what you said regarding "even if it's not the active project". that sounds bad :D |
When I noticed it, the status bar said that I had no active project selected. I've made my whole tree view disappear by clicking my button, saving it, and then removing those paths. Say you have two projects that both use the same external library, so you have it added as a path on each. You're working in project A and decide to remove the library from project B. It will disappear from your current tree view (though not from the PV entry for project A). It seems like it shouldn't do that unless you're removing the path while project B is active. |
Yeah, you are right, this was really wrong! damn... |
please validate this |
This issue is regarding multiple quirks or bugs with the
removePath
method inmodal-update-component.js
.Removal not working
Steps: Update an existing project and add a path, then immediately remove the path and save it. The path is still there even though it appeared to be removed.
This also means that you can't remove a path and then re-add it until you have saved and reopened the project.
Removing a path that has been saved works just fine, but has unexpected behavior (see below).
Removing a project path removes the folder from Atom's project
Steps: Add a path that exists in the current tree view, save the project, open the Update panel and remove that path. The folder in your tree view will disappear.
This one could have been intentional, but I didn't expect it to happen. I tested and found that it occurs even if the project in question is not listed as the currently active project. I don't think this package should mess with what people have open in their tree views unless the user explicitly asks it to.
The text was updated successfully, but these errors were encountered: