Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Source Level Error #21

Closed
alexanderepstein opened this issue Sep 14, 2017 · 3 comments
Closed

Source Level Error #21

alexanderepstein opened this issue Sep 14, 2017 · 3 comments

Comments

@alexanderepstein
Copy link

alexanderepstein commented Sep 14, 2017

This line of code

public class Fern extends Plant implements Comparable<Fern>

is causing this error Syntax error, parameterized types are only available if source level is 1.5 or greater

The linter is showing this error (that can be prevented by disabling this package and restarting atom). However my code compiles fine using javac and runs with no issues as well. My system must be running on source level 1.5 or greater already, not to sure why the package isn't picking up on that.

@damieng
Copy link
Contributor

damieng commented Sep 14, 2017

These kind of issues are very much handled at the Eclipse JDT layer. Specifically they need configuration information about your project as a whole and tend to use the Maven pom.xml file although there is also some support for Gradle and Eclipse project information.

https://github.com/eclipse/eclipse.jdt.ls has a little bit more information although I'm not sure if there is a full guide to what is and isn't supported.

@alexanderepstein
Copy link
Author

alexanderepstein commented Sep 14, 2017

Is there anyway to have the plugin generate this file? I used to code Java in eclipse and the only reason the classpath file isn't a big deal is because they generate it for me.

If I was able to just select all the Java files I wanted to include into the classpath file and then the plugin would determine the correct syntax to represent this data in a classpath file.

By the way thanks for the quick response and creating this, atom has been my editor for a bit but I was still switching to eclipse to work with Java but now I can use just atom :)

@damieng
Copy link
Contributor

damieng commented Sep 14, 2017

It doesn't look like the Eclipse JDT language server supports that at this time.

@damieng damieng closed this as completed Sep 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants