2

I am running some code that works fine on my windows system using the .remove method. On Ubuntu 16.04 I get the following errror:

error: ‘class String’ has no member named ‘remove’

To see if it was installation, I uninstalled arduino with

sudo apt-get purge arduino arduino-core

then

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install arduino arduino-core

and the issue remains. I have seen some people say opening arduino through the terminal (from this), although that does not fix it.

Arduino version 2:1.0.5+dfsg2-4

Any help is appreciated.

asked Feb 9, 2018 at 17:01
3
  • Why are you running 1.0.5? Commented Feb 9, 2018 at 17:03
  • @IgnacioVazquez-Abrams I didn't realize that, for some reason I thought it was 2. Ubuntu is installing 1.0.5 even after the updated package list, is arduino not maintained on the repo? Or am I missing something obvious? Commented Feb 9, 2018 at 17:09
  • You'll probably have to download the tarball from the Arduino site, but don't quote me on that. Commented Feb 9, 2018 at 17:10

1 Answer 1

5

The remove method was added to the String class in 1.0.6.

Installing Arduino IDE from the Ubuntu repository gets you a really old package (1.0.5).

You should download and install the newest version from the official Arduino page.

answered Feb 9, 2018 at 17:17
1
  • Yep, that's what I always do. Download the newest version and bang it into some place like your home directory. Commented Feb 9, 2018 at 22:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.