VS 2019 displaying push error without specifying any error - visual-studio

I'm getting this message from VS2019 in the 'Git Changes' window when I push code in my repository:
Failed to push to the remote repository. See the Output window for more details.
But there's no message in the Output window and furthermore, I checked the repository and the new code is there. This has been happening consistently since last week. What's happening and how do I make the message go away?

This looks like a bug, but I can't really tell without seeing your Git Integration configuration and the steps you are using to reproduce the error.
I would suggest filing a bug report under the "Send Feedback" button (just under the X close button). Make sure to supply a detailed description and screenshots.
I personally stopped using the built-in Git/Github integration as it is pretty new and still has some problems.
In the meantime, GitKraken is a good alternative.

Related

What happens when I "save" in Xcode IDE

I'm just starting to learn Swift using the Apple Xcode IDE. I made a little test iOS app and was trying various things when I inadvertently deleted my main code file (ViewController.swift). "No problem", I thought, as I had hit "Save" just a couple of minutes before. I exited out, then came back in, but it appeared to have autosaved.
I don't really care about this test file, but am wondering what is the proper way to save a project before trying something out (or before inadvertently pulling a bonehead move)?
What happens when I “save” in Xcode IDE?
When you hit "Save" the changes you've made are saved to disk. XCode doesn't do this automatically. If it crashes you may lose all your code written after the last time it was saved to disk. But XCode saves the changes to disk even without hitting "Save" button in some cases.
Xcode automatically saves changes to source, project, and workspace
files as you work. This feature requires no configuration, because
Xcode continuously tracks your changes and saves them in memory. Xcode
then writes these changes to disk whenever you:
Build and run your app
Commit files to a source code repository
Close the project
Quit Xcode
https://developer.apple.com/library/archive/documentation/ToolsLanguages/Conceptual/Xcode_Overview/UsingFileSaving.html
Use Git. If you don't know what it is, look into it. In the mean time, here is a tutorial or two.
To use it in Xcode, when you create a project, be sure to create a git repo:
Then be sure to commit frequently. Xcode has a built in Git GUI, so that makes it easier:
Then if you do anything that you shouldn't have you can either discard all changes (see the above screen shot, or if that can't help you, you can:
Open the 'Terminal' app
cd to the directory with the project
Run git log
Find the commit before you ruined everything
Copy the commit hash
Type q to exit the log
Run git reset --hard <THE-HASH-YOU-COPIED>
That should do it for you.
When creating a project check 'create git repository on my mac'.
Then commit changes when you're finished with one minor part and give the commit a comment so you know when looking into the history what changes you have done (quick overview).
With git you can quickly revert changes and go back to certain revisions like you can do in TimeMachine.
Further information are available at git's webpage.

Sublime text 3 and Web Inspector plugin

Am I the only person having problems with this plugin in Sublime Text 3? I cloned it from github repo, and when I try to start chrome's remote debugging via Sublime's command pallete, the new instance of chrome is being opened but the file is not being opened. Did anybody made this plugin to work is ST3? Thanks in advance
Before working with Web Inspector plugin, properly exit chrome.
In chrome use Ctrl+Shift+Q
First, make sure you are using the ST3 branch of the github repo, and have run git pull as there have been some changes in the last few hours and days. Also, make sure you read completely through the Getting Started section of the README. It looks like you need to manually open your application's URL in Chrome after you've started it via Sublime using CtrlShiftR - you can't use an already-running Chrome session. You can then hit CtrlShiftR again and choose "Start debugging", then choose the correct tab from the list.
If you're still having issues, I'd fill out a detailed issue on Github and let the developer know what's going on. Make sure you include all the steps you've followed, and the complete text of any error messages that may appear in the Console (Ctrl`).

Cannot synchronize my project in VisualStudio

My team and I started a project at Azure and we have a git as the VCS/SCM.
One of my partners had made a few changes, and he had commited them. When I try to get those changes at my local repository, and I press sync at the Visual Studio, the following message appears
Cannot merge because there are uncommitted changes. Commit or undo
your changes before merging again. See the Output window for details.
The output window shows the message below
Cannot complete the operation because of existing changes to the
following file:Project\Project.csproj
I have searched everywhere at google, but I did not find anything similar.
Can anyone help me with this?
We are stack.
Thanks a lot
It probably means VisualStudio automatically added some references to the file ProjectProject.csproj, where it keeps general project settings. In VisualStudio 2013 you may do:
Go to the TeamExplorer
Select "Changes"
Search through Included and Excluded Changes, .csproj file is probably there
Right click on it and select compare with unchanged to see the differences
Now choose to commit it or undo the changes (if, for example, the changes are not necessary) to be able to sync with the current repository.
I had this same dilemma and it turned out that somehow the file that was preventing me from switching branches and was in my solution, was not being tracked like the other files were. I just added it to source control via the explorer window, committed and pushed it, then I was able to switch branches just fine. Hope this helps.

JCAPS Build Error

I am new to JCAPS and trying to build a sample project where I will read a file and write the content to the file system.
I have created the JCD, connectivity map and deployment profile using edesigner 5.1.3.
However when I am building the project, I am getting the error:
There are uncommitted source code changes, please commit the changes
before activation
Even though I don't have any code checked-out.
Could you please let me know why I am getting this error?
JCAPS is notoriously cryptic. In this instance, it is trying to tell you that you've changed your JCD, but not hit the green commit button in the JCD editor (bottom left). To fix this, open the JCD, hit the commit button, hit the validate button (top middle) then save it. For good measure, I would also commit the JCD file itself.
As an aside, if you can avoid using JCAPS altogether, I'd suggest Mirth for light weight integration projects and camel for everything else.

GitHub (Mac application) - commits not visible

I have just recently installed the github mac application and attempted to push some existing commits to a branch using the Synchronise button. I am authenticated with SSH keys, the application did not complain and it seemed to work. However, when inspecting the remote repository on github.com I cannot seem to find my commits anywhere, not in the history of the branch or individual files. It's as if I had committed nothing.
However, inside the GitHub app i can click on the "view on github" button and it will inspect the commits and show the diffs etc. correctly as if i had navigated to them on the website.
Does anybody know why this may be happening? Apologies in advance if this is a trivial problem!
Thanks
I'm not sure if I understand your question right, but did you first commit and then use the sync button?

Resources