Platformio questions

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
cherowley
Normal user
Posts: 125
Joined: 14 Jan 2016, 09:39

Platformio questions

#1 Post by cherowley » 22 May 2019, 13:16

Hi!

I'm trying to adjust to using platformio on vscode.

When opening the src directory its complaining that c/c++ intellisense service does not support ino files.

I can install the arduino extension to get rid of that message but then it complains that there's conflicts between it and the c/c++ extensions ?

Also, is there anyway to configure it to NOT keep rebuilding all the library files each build and just resue the last built .o files? (like visual studio) ?

Also, is there a way to configure a default build task and a default build/upload task so able to use shortcuts?

Cheers o platformio / vscode ide gurus!

dmenne
New user
Posts: 1
Joined: 03 Jun 2019, 09:16

Re: Platformio questions

#2 Post by dmenne » 03 Jun 2019, 09:21

I have the same problem. Visual Studio Code with platformio, latest update. Building and flashing own programs (cpp-based) is working fine. No other Arduino plugin installed.


Anybody with the same problem?

Tim25N
New user
Posts: 1
Joined: 01 Aug 2019, 10:33

Re: Platformio questions

#3 Post by Tim25N » 01 Aug 2019, 10:39

Hello!
I have the same problem.
It's necessary for my project https://scamfighter.net/review/edubirdie.com

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: Platformio questions

#4 Post by JR01 » 01 Aug 2019, 12:33

I see all are using VS Code.

Too heavy for me, will all wok, with platformio on Atom?
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Platformio questions

#5 Post by TD-er » 03 Aug 2019, 01:30

Yes it does all work in Atom.
I've been using Atom upto about a month ago.

I switched to VS code because I was a bit fed up with Atom needing to restart-crash-restart for a lot of times when I first started it.
After N times it would work fine.
Also the "go to implementation" and "go to declaration" of VS code are really great.

I have also this pop-up stating an incompatibility in my screen. I have not had time yet to look into it.
It looks like they want to use some linter which requires .cpp and .h files instead of .ino.

Oh and there is indeed an option to define your default project.
Tried it once and was really fed up when that very labour intensive created file was deleted and had to start over.
I now use just the PIO menu on the left and select the build in the tree of projects defined in the platformio.ini file.

N.B. I also created a "custom" build which uses a pre_extra_script.py.
Please have a look at that one and get some very cool ideas on how to define your own build :)
It is a bit of a work in progress on my part, so it may change in the future.

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: Platformio questions

#6 Post by JR01 » 03 Aug 2019, 06:58

I finally installed vscode, as when I did a new install of pllatformio in Atom, it asked to rather use vscode 8-(. Then when I opened the .ino in vscode, it said I must convert to cpp, as it cannot do ino. Have not put in effort to understand how yet....
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: Platformio questions

#7 Post by JR01 » 03 Aug 2019, 07:26

N.B. I also created a "custom" build which uses a pre_extra_script.py.
Please have a look at that one and get some very cool ideas on how to define your own build :)
Where do I find it?
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

User avatar
micropet
Normal user
Posts: 34
Joined: 23 Jan 2018, 11:39
Location: Essen, Germany
Contact:

Re: Platformio questions

#8 Post by micropet » 03 Aug 2019, 10:42

Hello,

I also switched to VS Vode because Atom hung with the message "Loading dependencies".

After a bit of work on the new interface, I am very satisfied.

The software does what it should.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Platformio questions

#9 Post by TD-er » 03 Aug 2019, 13:17

JR01 wrote: 03 Aug 2019, 06:58 I finally installed vscode, as when I did a new install of pllatformio in Atom, it asked to rather use vscode 8-(. Then when I opened the .ino in vscode, it said I must convert to cpp, as it cannot do ino. Have not put in effort to understand how yet....
Have you installed the platformio extension?
JR01 wrote: 03 Aug 2019, 07:26
N.B. I also created a "custom" build which uses a pre_extra_script.py.
Please have a look at that one and get some very cool ideas on how to define your own build :)
Where do I find it?
In the ESPeasy repo.
It must be in the same directory as the platformio.ini file.
Just clone the Github repo and fetch it to your computer.
Then open the platformio project (platformio extension must be installed in VCcode) via the platformio menu page.
You should select the directory level where platformio.ini file is located.

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: Platformio questions

#10 Post by JR01 » 06 Aug 2019, 22:37

Thank you - trying it.
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 18 guests