I'm used to edit my sources in 2 instances and every time I save changes in one instance the others in which the same source is opened offer me to reload source from the disk and delete all changes I've made in that instances. I wonder is there a way to make sublime 'add' changes from disk if the source changed (like scm git do).
Thank you!
Related
I'm not sure exactly what's happening or if it's a default setting, but PHPStorm seems to be auto-saving files to some sort of buffer if I have not actually saved the file yet. I can close the editor and open it back up to still see unsaved changes, or perhaps it actually saves the changes on exit, I'm not sure which.
I often close the editor and re-load a file when I'm not sure what changes may have transpired since I last opened the file to make sure I don't save unintentional changes, but I can't do that with PHPStorm autosaving or whatever it's doing.
You cannot disable such behaviour -- auto save is one of the core functionalities that this IDE relies on and can be triggered at any moment in time.
You can use Local History to restore file to a previously saved state.
https://youtrack.jetbrains.com/issue/IDEABKL-6460
P.S.
If you will give it a bit of time (few weeks, month -- depends on person and habits), you will get used to it just like many other people who using this IDE.
From this particular comment:
Auto-saving is built in very deeply and many IDE features just won't work without it (e.g. compilation, running, etc). For reverting unwanted changes there's VCS, Local History and Undo.
Currently we don't plan to add a possibility to disable auto-save.
Maybe this is what you're looking for?
To enable preserving temporary files while saving changes
In the IDE Settings section of the Settings dialog box, click General.
Select the Use "safe write" check box.
Note that if this check box is selected, modified file will be first saved as a temporary file. If the save operation is completed successfully, the temporary file will renamed, and the original file will be deleted.
I was just wondering if it was possible to retain files copied into the File.applicationStorageDirectory across multiple debugging sessions in Flash Builder?
I'm using it to store the application's database, after copying it over from the actual application directory (File.applicationDirectory) if it doesn't already exist in the user storage folder, and it'd be useful to not have to start with the base database every time.
I've had a look through the Debug configuration in Flash Builder, but couldn't find anything that seemed related. If anyone has any ideas, or workaround tips, it'd be much appreciated.
Thanks in advance.
By default, the data is saved between instances. In the Debug Configuration, at the bottom of the window, there is an option labelled "Clear application data on each launch" that will automatically wipe that directory each time your launch a new debug instance.
Short Version:
I have 7 SSISDeploymentManifest files I need to run. Is there a way to alter the SSISDeploymentManifiest file to per-populate Installation value?
Rant Version
At first running 7 deployments did not seem like much of a problem. But the part of the process where you "Select Installation Folder" for package dependencies is horribly designed.
First, you have to enter a network path here if you are not running from the server you will install to. This is because the dialog box makes sure path you enter a valid path... on the local machine you run the manifest from. But when the package is run it will need to also work for the server. (dumb huh?))
The next problem with this screen is that the field is read only. So I cannot just specify the path directly.
Second, the dialog box to "browse" won't let me enter a path.
So... I have to browse my entire network (from home, over a vpn). That takes a long time.
Is there a way to alter the SSISDeploymentManifiest file to pre-populate this value?
No, dtsinstall doesn't accept any command line arguments, pity. My first approach to this was to write a heavy, command line application that made repeated calls to dtutil to get things done. I never finished it but if you want to peek, it's on codeplex
What I do like and prefer is a PowerShell script that handles my SSIS deployments now. Even if PowerShell isn't your cup of tea, the concepts should apply to whatever .NET language you might want to use to handle it.
Attractive features of it are that it will create the folders in SQL Server for you and correctly deploy those packages into said folders. The other nice thing that might be of assistance to you is that if all the 7 deploys are in a common folder structure, the script walks the folder structure looking for manifests and deploys all the packages per manifest so you could conceivably deploy all with a single mouse click.
Is it possible to maintain multiple workspaces for each build in Hudson? Suppose if i want to keep the last 5 builds, is it possible to have the five corresponding workspace folders also? Currently whenever a new build is scheduled it overwrites the workspace.
Right now, the idea is to reuse the workspace.
It is based on the SCM used (a SVN workspace or a Git workspace or a ClearCase snapshot or dynamic view or ...), and in none of those SCM plugins I see the option to build a new workspace or to save (copy) an old one for each run of the Job.
One (poor) solution would be to:
copy the job four times, resulting in 5 jobs to be modified for specifying 5 different workspaces (based on the same SCM configuration, meaning those 5 workspaces select the same versions in each one of them),
and have them scheduled to run one after the other.
As far as I know, there's no built in way to do it.
You do have a couple of options:
As one of your build steps, you could tar (or zip) up the workspace and record it as a build artifact.
Generate a tag with each successful build (e.g. with the Subversion Tagging Plugin)
Although not ideal, you could use the Backup Plugin.
The backup plugin allows you to back up the workspace. So, you could run the plugin after every build and it would archive the workspace.
Again, not ideal, but if this is a must-have requirement, and if it works with the way you're using Hudson, then it could work.
Depending on what you want to do, you have a few options.
If you need the last five workspace for another job, you can use the clone workspace SCMlink text plugin. Since I have never used it, I don't know if you can access the archived workspace manually (through the UI) later.
Another option worth to try, is to use the archive option and archive the whole workspace (I think the filter setting for the archive option would be **/*). You can than download the workspace in a zipped version from every job run. The beauty of this solution is, that the artifacts will be cleaned up when you delete the particular job run (manually or through the job setting to delete old builds).
Of course you can also do it manually and run an copy as the last step of your build. You will need five directories (you can name them 1 to 5). First delete the oldest one and rename the others (4->5, 3->4, ..). The last step would be to copy the workspace to the directory holding the newest copy (in our example 1). This will require you to maintain your own archive job. Therefore I prefer one of the above mentioned options.
Several times now I've had Eclipse delete files for me seemingly randomly - then they appear under the 'Local History' option.
What is going on! I'm definitely not just deleting things by mistake.
Most recently it deleted my template files under html-template which are quite important!
I have an AIR project and a web project that references the src directory inside the AIR project. Usually I close one project while working on the other.
FYI: Currently my backup solution is Windows Home Server which means I have to go home to find a file if its lost in some other fashion and not in history. Yes I do plan to rectify that!
Under Local History you can find the previous versions of your files, after you modified it.
Didn't you set this folder as the output folder for compiling? Then eclipse could clear the files during build.
I suspect it is an external application that is deleting or moving your files. Eclipse's local history simply keeps of copy of your files for quick reverting later.
I suggest trying using a different IDE for a while like NetBeans, and see if the files are still being deleted. Eclipse probably isn't the suspect, as those files would be in local history even if they were not deleted.
I am trying to fix an issue like this myself, I find that when I look into files that have been deleted with another text editor like GEdit, they look like they have been corrupted. I hadn't previously noticed that eclipse kept them in local history, thank you for that. I had been using gitHub for backups before and restoring from that.
If I find that switching to another IDE fixes it, or any other info, I will update this post.