Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » GitHub project - Not display error(On import github project to elipse, errors not displayed.)
GitHub project - Not display error [message #1735934] Thu, 23 June 2016 18:03 Go to next message
Filip Å andera is currently offline Filip Å anderaFriend
Messages: 4
Registered: June 2016
Junior Member
I import maven project from github to eclipse.

Export > Projects from git > Clone URI > Fill params > Next > Import as general project

After that, I configure project to maven. And all its ok, I can build it. BUT!

If I edit code and write some error, error doesn´t display. Why?
Re: GitHub project - Not display error [message #1735940 is a reply to message #1735934] Thu, 23 June 2016 21:03 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
You didn't tell us which View the picture shows. If it where the Package Explorer, then the icons would indicate that you have not configured any source folders (Project Properties > Java Build Path) The Eclipse Java compiler will only analyse .java files within known source folders.
Re: GitHub project - Not display error [message #1736035 is a reply to message #1735934] Fri, 24 June 2016 13:55 Go to previous messageGo to next message
Filip Å andera is currently offline Filip Å anderaFriend
Messages: 4
Registered: June 2016
Junior Member
Yes, build path not configured. But I can´t configured build path. In the Picture, you can seen No actions avalibe. How can I add resources to build path? In other project build path show normally.
Re: GitHub project - Not display error [message #1736071 is a reply to message #1736035] Fri, 24 June 2016 21:24 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
I've never seen that sub menu empty, so no quick guess what might be amiss.
You may want to paste your .project and .classpath files to show how the project is configured.

I also noticed, that you have what looks like nested projects, which will not be recognized as such by Eclipse.
Things might already clear up if you just say "Import ... > Existing Maven Projects " and select all those sub projects.
(In fact, if the toplevel project is just a pom-project that could also explain why m2e doesn't allow defining a build path here).
Re: GitHub project - Not display error [message #1736089 is a reply to message #1735934] Sat, 25 June 2016 11:54 Go to previous messageGo to next message
Filip Å andera is currently offline Filip Å anderaFriend
Messages: 4
Registered: June 2016
Junior Member
Only .project I have in root folder, there:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>uSkyBlock</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.m2e.core.maven2Builder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.m2e.core.maven2Nature</nature>
	</natures>
</projectDescription>


Classpath is on subfolders, uSkyBlock-API, Core ...

For exmple. .project and classpath from uSkyBlock-Core:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>uSkyBlock-Core</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.m2e.core.maven2Builder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.jdt.core.javanature</nature>
		<nature>org.eclipse.m2e.core.maven2Nature</nature>
	</natures>
</projectDescription>


<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" output="target/classes" path="src/main/java">
		<attributes>
			<attribute name="optional" value="true"/>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
		<attributes>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
		<attributes>
			<attribute name="optional" value="true"/>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
		<attributes>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
		<attributes>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
		<attributes>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="output" path="target/classes"/>
</classpath>


If I click to uSkyBlock (from git) and select Import > Existing maven projects > select all folders > in package Explorere I can see projects uSkyBlock-Core and more, and display errors. But, if developer update project on github, update my project in package explorer too?

Re: GitHub project - Not display error [message #1736090 is a reply to message #1736089] Sat, 25 June 2016 12:28 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
So it seems to be working for you now, right? Remember, Java errors are only displayed in Java projects in Eclipse. The root thing is not a Java project, the sub-folders are not known as Eclipse projects until "Import > Existing maven projects".

Quote:
But, if developer update project on github, update my project in package explorer too?

You only have to worry about addition / removal of child projects. In that case you will have to import again resp. remove stale projects.

Re: GitHub project - Not display error [message #1736110 is a reply to message #1736090] Sun, 26 June 2016 14:48 Go to previous message
Filip Å andera is currently offline Filip Å anderaFriend
Messages: 4
Registered: June 2016
Junior Member
Ok. Thanks for your time.
Previous Topic:syso press ctrl+space
Next Topic:java and eclipse
Goto Forum:
  


Current Time: Mon Dec 30 15:54:32 GMT 2024

Powered by FUDForum. Page generated in 0.14652 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top