|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Eclipse is being a butt
Hello, it is I, Lord Supreme Programmer with Team 1410, and I am trying to write the code for the bot this year, but alas, I keep getting these errors while using CANTalon:
The type 'CANTalon' must implement the inherited pure virtual method 'CANSpeedController::ConfigPotentiometerTurns' and so on. It says this for every CANTalon I write, and nothing seems to go away. The file still works and builds, but these errors are annoying. Does anyone know how to fix this? |
|
#2
|
||||
|
||||
|
Re: Eclipse is being a butt
Lord Supreme Programmer, try to rebuild in the index.
http://wpilib.screenstepslive.com/s/...p-test-program |
|
#3
|
||||
|
||||
|
Re: Eclipse is being a butt
Quote:
Rebuild project clean and rebuild rebuild index un/reinstall libraries un/reinstall toolchain un/reinstall eclipse rewritten entire project restarted computer xMany times I just can't fix it. My mentor had the same problem, but after a minute it disappeared |
|
#4
|
||||
|
||||
|
Re: Eclipse is being a butt
Quote:
Last edited by King Nerd III : 03-02-2015 at 15:08. |
|
#5
|
||||
|
||||
|
Re: Eclipse is being a butt
That's a bummer usually re-indexing fixes it, but I still think it's syntax parser related only because you said the project still builds, and I know for a fact ConfigPotentiometerTurns is implemented (it's an empty implementation).
Just to sanity check (I'm sure you did this too) but maybe it might help another team having similar symptoms.... -navigate to the Problems tab and manually delete all the errors and warnings. You can highlight the treenodes in there and press delete or right-click-menu-delete. Eclipse will warn about deleting the error being permanent, hit ok. Then in the project explorer, under binaries delete your FRCUserProgram. This step is necessary just for checking that the project does build. Close all other open projects in eclipse except for the one you care about. Clean the project. (takes a min, while you wait the build menu item will be gray) Full build (or CNTRL+B), and let it finish. Confirm FRCUserProgram is back (because it built ok). Confirm if you still get the parser errors. |
|
#6
|
||||
|
||||
|
Re: Eclipse is being a butt
Quote:
fl_motor = new CANTalon(1); I think eclipse is just trying to make me go crazy. Last edited by King Nerd III : 03-02-2015 at 15:50. |
|
#7
|
|||||
|
|||||
|
Re: Eclipse is being a butt
Quote:
(I'm wondering what happened to the front_left_drive constant that used to be where the 1 is now, but that's not really important right now.) Quote:
|
|
#8
|
||||
|
||||
|
Re: Eclipse is being a butt
Quote:
I have that line in the subsystem DriveBase. Chief Delphi won't let me upload the file again, as I already have it here: http://www.chiefdelphi.com/forums/sh...6&postcount=15 but its the same file. Last edited by King Nerd III : 03-02-2015 at 16:28. |
|
#9
|
||||
|
||||
|
Re: Eclipse is being a butt
Yeah so one thing that's unique about eclipse is the error/warnings sometimes tend to stick around even after you resolve and rebuild. I'm guessing that was the first problem.
That new error sounds like a genuine compiler error, so that means the linker isn't able to create FRCUserProgram. Probably should confirm that though. That also means that you haven't actually been successfully building this whole time, which is good to know. That line with the Talon c'tor error probably has been a problem this whole time and now it's revealing itself. Maybe make a simple project first and merge in your stuff in pieces until the error shows up to see what the cause is. Alan's right, the problem is likely before that line, could be in one of the headers too. |
|
#10
|
||||
|
||||
|
Re: Eclipse is being a butt
Quote:
|
|
#11
|
||||
|
||||
|
Re: Eclipse is being a butt
Update: I found the error. See attached image, anyone have a clue what the method is supposed to be named??
|
|
#12
|
||||
|
||||
|
Re: Eclipse is being a butt
int GetNumberOfQuadIdxRises();
void SetNumberOfQuadIdxRises(int rises); virtual bool GetForwardLimitOK() override; virtual bool GetReverseLimitOK() override; virtual uint16_t GetFaults() override; uint16_t GetStickyFaults(); void ClearStickyFaults(); ...maybe you bumped spacebar or something while navigating/viewing the headers? |
|
#13
|
||||
|
||||
|
Re: Eclipse is being a butt
Quote:
I just added it in and the program finally built without any errors, thanks for all the help. I will go and make sure that all my under-programmers fix that error, too, as they all copied their installation of Eclipse from me. Maybe finally all of our code will build perfectly. I still stand by Eclipse isn't the best, and I still hold out hope that Microsoft will swoop in and save the day by helping to make Visual Studio available as a dev tool for FRC, but now that everything is working I'm content with Eclipse for now. Last edited by King Nerd III : 03-02-2015 at 17:23. |
|
#14
|
|||
|
|||
|
Re: Eclipse is being a butt
Quote:
![]() |
|
#15
|
|||||
|
|||||
|
Re: Eclipse is being a butt
Do you mean they didn't actually "install" it on their computers, but just copied files from yours? I wouldn't be very confident in that working. You should always follow the directions in http://wpilib.screenstepslive.com/s/...eclipse-c-java when setting up a computer for C++ robot programming.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|