Eclipse commits not showing up on Git Contributions - java

I am currently going trying to learn java, and my IDE is Eclipse. I connected my Github account and am easily able to push/pull etc. Everything is working great, except for the fact that my commits are not coming up on my Contributions.
I think I have found the issue, but I am not sure what the solution is. If someone can help that would be great, I'm sure it's an easy fix.
Under the "Git Staging" tab on Eclipse, there is a section for 'Author', and 'Committer'.
As I was writing this message I was able to solve this issue.

Under the author & committer section, all you have to do is change it from:
name <name#localhost>
To:
GitHubUsername <GitHubEmail>
For a more permenant solution:
Through this method, it should automatically change the default Author/Committer to what you enter here.
Go through this article for more information.
https://eclipsesource.com/blogs/tutorials/egit-tutorial/

Related

Cannot find imports after IntelliJ suggested Maven reload

I was just creating a new project and doing creating some JWT Authentication.
I was writing my code and it worked as intended. Suddenly after having created a bunch of code, IntelliJ suggested I would do a Maven reload. I don't per se know why, but I did it as I thought there would be a handy change instead of what happened now.
Now all my imports are invalid, not recognized whilst (I think) nothing else changed.
I cannot help but think there is a simple fix for this problem, but I cannot find it anywhere.
I'll include two screenshots of my situation in an imgur link, a before and an after.
Imgur Screenshots

How to update a Github project on IntellijIdea

Everyone
I don't know if the question has already been asked, but I'm looking everywhere but I can't find it.
I am working on a project on Intellij IDEA using GitHub.
I use my desktop computer at work to develop. After finishing I make a commit on Github and it is directly on my account.
But, sometimes I would like to continue at home on my laptop, using the same project as well as modifying and committing it.
Not knowing much about Github in integration with Intellij, I know that I can take an existing project and thus download it locally on my computer. But my question is, how can I update the changed files on each computer.
Example, I work at the office, I modified the A and B file, I commit it to Github, and at home on my computer, I update the Github project on Intellij and suddenly I have the new files modified.
If you have a solution, thank you!
I think you should need to take a "deeper" look into git fundamentals, here's a quick tutorial I think would do for your case:
Learn the Basics of Git in Under 10 Minutes
Also (if u can, and have the time) I would suggest you learn to use the git CLI before the IntelliJIDEA integrated plugin, so that, in case of problems, you know where to look under the hood.
To put it in easy words the most straight-forward thing you can do is (assuming you have already set-up a repo and a branch to work on):
(on the device you just worked on)
git commit -am "comment your wip here"
git push
(on the device where you want to get the work updated)
git pull

Android Studio: How to choose what to import from VCS

I'm using Android Studio 2.1, which is based on IntelliJ IDEA 2016.
If you select VCS -> Commit changes there's a nice dialog showing all the modified files and you are able to choose what to commit.
However when selecting VCS -> Update project there's no dialog. You have to update everything give or take.
I really miss eclipse's Team Syncronize perspective. It kicked ass compared to this, both for commiting and updating.
Is there a way of displaying a dialog to select which files to update? Or maybe some plugin? I'm getting tired of importing workspace metadata from other team members, or even broken builds when doing bulk updates. The only workaround seems to be looking at the incoming tab first, and then right click over the files you want, which is not very efficient as you have to expand their packages or parent folder first, and you might also need to manually refresh the incoming tab.
Yes that's a nice question but unforunately we have no ways First thing first to checkout documentation of IntelliJ IDEA 2016.1 Help given here but not in depth. As vcs-> update will update all files from remote branch and it will never provide you options because it is not implemented yet !!
Also see comments discussion on this answer they have talked about whole issue you have here the question asked little matching with yours is this which is the same having this discussion.
This is unlikely to be an issue with the Android tooling and more likely an issue with the underlying intellij idea software.
This is already discuss over here in google code issues :
https://code.google.com/p/android/issues/detail?id=184086
I have already tried to search plugin or help software but coudn't find one. :(
You just can add a .gitignore file for metadata.
Although, when you update your project it's a good practise to commit files before (and choose only those files you want to update).
Regards!

Eclipse [Desktop NO-HEAD]

Beside my project name says [Desktop NO-HEAD] in eclipse. I am developing an android application, and was wondering if there is anything wrong with this, why it might be saying that, and if it makes a difference to anything, though everything seems to compile and debug normally. Surprisingly, I have found literally nothing online about this. I was just wondering if anybody knew, thanks!
You apparently have some type of version control going on. Right click on yoir project and go to Team. If you don't want to see it and/or don't want to have any version control at the moment there should be an option somewhere there in Team to disconnect.
In my case, for git, in Eclipse Team settings, I had to Disconnect and then Share Project (Right-click project -> Team -> Disconnect / Share Project...) with the following settings:
Checking any other permutation of those check boxes caused the NO-HEAD for me.

Eclipse and JavaFX? is it just me?

I'm looking at learning JavaFX.
I've tried setting Eclipse to develop a small app and I've downloaded the Eclipse plugin.
Eclipse JavaFX plugin
BUT... it just seems, well, flakey.
So I have 3 questions...
1: Is there a better plugin?
2: Or is there some great set of tutorials out there that I'm missing?
3: finally, is it meant to be easy to call Java code from FX? I'm stuggling, it there a good example somewhere?
On questions 1 & 2, Eclipse underlines code in red that just shouln't be. For example..
see this image... alt text http://www.qenet.co.uk/fx.jpg
Why does it underline bit of imports in red?
I know this is little of an open ended question. So I guess my main question is this...
Is my experiance of JavaFX and Eclipse the best I can hope for? Or am I missing something ?
(and I'm not looking for a Yes/No response) :-)
Just looking for a discussion on how best to learn/develop JavaFx.
This kind of thing is not unusual. A lot of Eclipse plugin editors have problems dealing with error tags and the like. For example,
I find that the XML and HTML file editors often fail to clear error and warning markers, and the only way to get rid of the markers it is close and reopen the file.
Even the Java viewer gets it wrong in some circumstances, though the problem goes away when the relevant files are saved.
When you update a spelling dictionary, the spelling checker is not rerun and the spelling error markers are not updated. In fact, you have to restart Eclipse for this to happen.
I suggest that you try saving files, and closing/reopening editors to see if that makes the bogus error markers go away. Then decide whether Eclipse is the right IDE for this task.
I've never used NetBeans (at all), but you would expect that it would do a better job supporting JavaFX. After all NetBeans and JavaFX are both high profile Sun products at the moment.
Netbeans is really the only way to go at the moment for JavaFX development. They are both Sun products and Sun has made sure the two work very well together. Before long Eclipse and others will catch up but for the moment that's how it is.
There is another JavaFX plug-in for Eclipse from Exadel. You can download it here: http://exadel.org/javafxplugin. Give it a try.
I have similar problems but funnily only under Linux, not Windows. Hope they change that soon.
To me this has happened when I wronlgy installed javafx sdk 1.2.3....This plugin works only with 1.2.1... :/

Categories