Page 1 of 1

[IDE Tip] how you setup sublime for using with the ESP-IDF

Posted: Sun Aug 18, 2019 11:04 pm
by rudi ;-)
hi folks

who is using this editor for esp-idf?
i tested the things for fun and i must say, it is not to bad.
for using with ESP-IDF you can create a custom build file, i did try this for a windows setup and test just in time the (windows) things for using it near usually programming IDE.

if you want try it out by self, i share my custom build setup file, if you find a better way or mistake or anything,
plz let me know.

here you are, it is simple json format

Code: Select all

{
	"cmd":	["C:/msys32/msys2_shell.cmd","-mingw32", "-where", "$folder"],
	"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
	"selector": "source.c, source.c++",

	"variants": [
		{
			"name": "ESP32-IDF Menuconfig",
			"cmd" : ["C:/msys32/msys2_shell.cmd","-mingw32", "-where", "$folder", "-c", "make menuconfig"],
		},

		{
			"name": "ESP32-IDF Clean",
			"cmd" : ["C:/msys32/msys2_shell.cmd","-mingw32", "-where", "$folder", "-c", "make clean"],
		},

		{
			"name": "ESP32-IDF Flash",
			"cmd" : ["C:/msys32/msys2_shell.cmd","-mingw32", "-where", "$folder", "-c", "make flash"],
		},

		{
			"name": "ESP32-IDF -j4 All",
			"cmd" : ["C:/msys32/msys2_shell.cmd","-mingw32", "-where", "$folder", "-c", "make -j4 all"],
		},
	]
}

you can simple expand the custom build - example with make app, make flash app, make bootloader and so on..

be sure you have setup the IDF_PATH right
i created for this the xport_idf_path.sh like in the RTF is written

sure - you can use environment vars in sublime too - like you want to do this.
important is, that the shell finds the IDF_PATH and it should work then.

one point i am not 100 prozent sure, is the clean prozess.
i think it is enough to give (Only) the "$folder", i read on, there are some things with "../$folder" possible,
but i want not clean up my projekt completly - ,
you can find nice RTF to this theme.

hope this helps other people if someone want test this nice "IDE".
i know - few espressifer's are using this too - watch the espressif video's and you will find the using there :)
so i did found sublime - not used before - i use usually Uedit32 and N+++ also HIEW and other stuff.
i give sublime a try for this for now.


best wishes
rudi ;-)



Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use.
There is currently no enforced time limit for the evaluation.

custombuild.jpg
custom
custombuild.jpg (82.29 KiB) Viewed 6478 times
targets.jpg
targets
targets.jpg (86.87 KiB) Viewed 6478 times
menuconfig.jpg
menuconfig
menuconfig.jpg (92.3 KiB) Viewed 6478 times


cause only 3 attachments allowed,
you find the flashing linked here: here is the flashing

Re: [IDE Tip] how you setup sublime for using with the ESP-IDF

Posted: Mon Aug 19, 2019 8:17 am
by mikemoy
Thanks for sharing rudi. Its nice to have alternatives. I was doing something very similar with Visual Studio Code. But since I moved to CMake, I cannot look back its just way to much faster than make. I hope Espressif comes out with a way to get VSC back in the game soon.

Re: [IDE Tip] how you setup sublime for using with the ESP-IDF

Posted: Mon Aug 19, 2019 9:23 am
by rudi ;-)
hi
yes this was my use case to have alternatives.
i used the portable version, simple zip without an install.
did not knowed about sublime until i saw this in one of the espressif video's.

which problem you have in vsc?
you know this vsc thread?
does not help?

best wishes
rudi ;-)

Re: [IDE Tip] how you setup sublime for using with the ESP-IDF

Posted: Mon Aug 19, 2019 12:29 pm
by mikemoy
I tried that but for some strange reason I was unable to get it working using the new setup.
https://dl.espressif.com/dl/esp-idf-tools-setup-2.0.exe