Comments (2)
Moving this here: materiaalit/2013-oo-programming#1
from tmc-intellij.
I went to the server to see if the server could give any extra information on why the server-side tests where failing, and I could see an error code exactly the same as the local error I just fixed:
-do-compile:
[mkdir] Created dir: /app/build/empty
[mkdir] Created dir: /app/build/generated-sources/ap-source-output
[javac] Compiling 2 source files to /app/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] /app/src/Main.java:13: error: diamond operator is not supported in -source 1.6
[javac] ArrayList<Bird> database = new ArrayList<>();
[javac] ^
[javac] (use -source 7 or higher to enable diamond operator)
[javac] 1 error
[javac] 1 warning
stderr:
BUILD FAILED
/app/nbproject/build-impl.xml:603: The following error occurred while executing this line:
/app/nbproject/build-impl.xml:245: Compile failed; see the compiler error output for details.
Total time: 3 seconds
Seems to me like the same problem I had locally is also the problem on the server. The standard project.properties files need to be edited to allow newer source versions.
again:
I have no idea where in this project these files are created, if I should have made this issue somewhere else please tell me.
Extra verification that this is indeed the problem:
- Change the diamond operator in my solution to an explicit Bird type and see this error on the server appear:
-do-compile:
[mkdir] Created dir: /app/build/empty
[mkdir] Created dir: /app/build/generated-sources/ap-source-output
[javac] Compiling 2 source files to /app/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] /app/src/Main.java:28: error: strings in switch are not supported in -source 1.6
[javac] switch (command) {
[javac] ^
[javac] (use -source 7 or higher to enable strings in switch)
[javac] 1 error
[javac] 1 warning
stderr:
BUILD FAILED
/app/nbproject/build-impl.xml:603: The following error occurred while executing this line:
/app/nbproject/build-impl.xml:245: Compile failed; see the compiler error output for details.
Total time: 3 seconds
So it's not just the diamond operator, it's also a problem with strings in switches.
from tmc-intellij.
Related Issues (20)
- NullPointerException when pressing button for next exercise HOT 4
- "Download course exercises" failed with error message on first attempt. Subsequent attempts fails silently HOT 1
- Mac ( High Sierra) Not Downloading Courses
- TMC for IntelliJ on mac doesn't work at all
- The colour green in Test Results bar is way too bright
- NullPointerException on pressing run test for current project
- IDE Fatal Error when Running test HOT 3
- PLEASE add support for newest IntelliJ
- Using version 2.0.2 tests fail to run HOT 2
- intellij TMC Plugin error
- IntelliJ plug in errors
- java.lang.NullPointerException
- IDE Fatal Error. Java.lang.NullPointer Exception HOT 2
- "Run tests for current project" isn't working
- Getting a nullpointer exception when trying to submit an exercise
- Cannot process toolwindow TMC Project List
- Plugin fails to start on IntelliJ 2022.2.3
- TMC plugin does not start on Intellij HOT 3
- Not seeing the TMC menu in Intellij Ultimate HOT 2
- Can't download exercises HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmc-intellij.