getGameSpecificMessage undefined

We can’t get past the first line of this code from ScreenSteps:

String gameData;
gameData = DriverStation.getInstance().getGameSpecificMessage();
	if(gameData.charAt(0) == 'L')
	{
		//Put left auto code here
	} else {
		//Put right auto code here
	}

Eclipse gives this error message: “The method getGameSpecificMessage() is undefined for the type DriverStation”

We did also add this line with our other import lines at the top of Robot.java:

import edu.wpi.first.wpilibj.DriverStation;

and we tried adding this line at the beginning of the Robot class. Maybe it’s unnecessary:

DriverStation ds = new DriverStation.getInstance();

What are we doing wrong? (Sorry if it’s something easy. We’re new to Java.)

Have you updated your plugins? That method is undefined in WPILib 2017.

Definitely update the plugins
https://wpilib.screenstepslive.com/s/currentCS/m/getting_started/l/599679-installing-eclipse-c-java
Follow the installing the development plugins guide.

Sent from my iPad using Tapatalk

THANKS MuskieProgramme and Peteman, you’re right! Updated the plugins, and it works now!