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.
-
Why are you running 1.0.5?Ignacio Vazquez-Abrams– Ignacio Vazquez-Abrams2018年02月09日 17:03:03 +00:00Commented 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?user-2147482637– user-21474826372018年02月09日 17:09:29 +00:00Commented 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.Ignacio Vazquez-Abrams– Ignacio Vazquez-Abrams2018年02月09日 17:10:20 +00:00Commented Feb 9, 2018 at 17:10
1 Answer 1
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.
-
Yep, that's what I always do. Download the newest version and bang it into some place like your home directory.2018年02月09日 22:55:44 +00:00Commented Feb 9, 2018 at 22:55
Explore related questions
See similar questions with these tags.