-
Notifications
You must be signed in to change notification settings - Fork 16
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
Open Files Do Not Update After SVN Update #633
Comments
… and provide alert/notification - New command hooked on tab active/clicked - Command added to test when SVN, Git update/pull (reference #633)
- Added file-modification-test hook into SVN, Git update/pull (reference #633)
The current updates also looks into other text-editors and Eclipse, and I planned the steps in following way:
After every Git/SVN pull/update Moonshine validates currently opened editor's open timestamp with the physical file's modified timestamp. If the physical file's modification timestamp is newer, Moonshine will raise the alert. This behavior is also true when you active any inactive tab. Checking while activating a tab doesn't requires Git/SVN pull/update dependency. It'll be automatic. @JoelProminic raised some observation after above:
We need to raise check in case of git-switch too (not done yet), and alert if the opened file does not exists in changed branch anymore. |
…nst opened tab - Adjustment to the editor-popup notification sizing (reference #633)
…t-new-branch (reference #633)
|
I did some testing today with a non-trivial Java project, and I found I was getting false alerts from the new system. I couldn't identify the exact case where this triggered, but here are some possibilities:
I'll let you know if I have a more specific test procedure. |
I confirm @JoelProminic reported problem when edited multiple files in Moonshine (not saved) and both file changed externally. Seems like a looped case, prompting by separate notifications: Looking into this. |
@joshtynjala can you help me find where this prompt is firing from? With my quick string search throughout the project, I didn't found any reference, surprisingly. This generally pop-up when opening a .java file to editor: We have a need to tuneup showing the prompt as they overlaps each other at same time, when opening multiple .java project during Moonshine start. |
… times in a loopy way (reference #633)
It probably comes from the Java language server. Language servers have the ability to ask the IDE to display a message. |
Can we adjust the timing of the alert that multiple do not overlaps against each opened .java editors, when Moonshine opens (?) |
We probably need to create some kind of queue where, if one of these message boxes is already open, any additional messages are stored until the current one is closed. For reference, I'm pretty sure that this pop-up message is coming from here in JavaLanguageServerManager.language__actionableNotification: Maybe we can modify this StandardPopup component to have some kind of static method like StandardPopup.addToQueue() that manages the queue internally. |
We were infact discussing on an enhanced queued but noticeable-also notification system with @piotrzarzycki21 for some time, which generally mimic how notifications generates in editors like VS Code or IntelliJ. This seems will support the scenario you described also, Josh. |
This issue now merged into master. |
I did some testing with this today, and noticed this behavior:
Here is an example of the error:
I also see this behavior. I don't think it is necesarily wrong, but I'm considering whether it is desireable behavior for the use case:
|
Normal
File Does Not Exists Anymore
File Does Not Exists With More Cases
|
I see this working on master - Can we close that ? |
Perhaps, let's open this for some time. Cause some tests are still pending from Joel's side. |
I was discussing this with you yesterday and Joel as well - Let's not keep things open. Let's close it and when release comes - everything will be captured in CHANGELOG - Joel can do review then. Repository becomes messy and unreadable cause we are holding opened issue for weeks. |
I have been using Moonshine for a Java SVN project recently, and I ran into this bug after working on another workstation:
We don't have a way to diff the changes to a file from Moonshine currently, so it is not immediately obvious that the changes were overwritten.
This same error may trigger for Git or file changes from another local editor.
I'd like to see some protection against this behavior. For example:
The text was updated successfully, but these errors were encountered: