Installer rewrite so picroft is downloading precompiled package and prepaired for
other precompiled packages for other platforms. Installer wil always install latest Theia-for-Mycroft from https://github.com/andlo/theia-for-mycroft/
Installer Builds and compile on systems where there isnt precompiled package for if system has more than 4 Gb memmory.
No more support for Mark_1 as debian jessie isnt supported and theia cant build properly.
Change to default open workspace in mycroft.core directory
Debug is working by using PTVSD, but requere remote-debug skill to activate and inject debug adaptor https://github.com/andlo/remote-debug-skill and change settings for padatious single_thread. remote-debug skills is at time of writing on way to market and PR to makea setting for controling padatious single_thread is on its way to mycroft.core.
How to install Theis IDE skill
Install the beta by asking Mycroft to “Install Theia ide beta” og by using mycroft-msm
mycroft-msm --latest install theia-ide
How to test Theia IDE skill
I would like to hear if this skill installs and run on different platforms.
Where feedback on Theia IDE skill should be directed a
Feedback on the Skill is prefeared through Issues on GitHub but Mycroft Chat an reply on this post are also OK.
root@picroft:~# mycroft-msm --latest install theia-ide
INFO - building SkillEntry objects for all skills
INFO - Best match (1.0): theia-ide by andlo
INFO - Downloading skill: https://github.com/andlo/theia-ide-skill
INFO - Installing system requirements...
INFO - Installing requirements.txt for theia-ide
INFO - Successfully installed theia-ide
INFO - invalidating skills cache
Great to hear. Yes an on device IDE is very usefull for making skills - not having to deal with setting up this self, but just get startet is usefull imho.
I am working on getting the debug adaptor injected in mycroft.skills, and then debugging is posible. It is very cool to se step by stem what is going on iside skills and mycroft.core.
If you just wants something simpler - this skill gives you a webbased terminal and/or webbased mycroftcli-client. Some people like making programs in vim, vi or nano but I like the IDE more
Tried this again after some time, but got a Python type error:
2021-12-27 15:56:56.057 | INFO | 4139 | mycroft.skills.settings:save_settings:115 | Skill settings successfully saved to /home/pi/.config/mycroft/skills/theia-ide.andlo/settings.json
2021-12-27 15:56:56.061 | ERROR | 4139 | mycroft.skills.skill_loader:_create_skill_instance:313 | Skill initialization failed with TypeError('can only concatenate str (not "int") to str')
Traceback (most recent call last):
File "/home/pi/mycroft-core/mycroft/skills/skill_loader.py", line 307, in _create_skill_instance
self.instance.initialize()
File "/opt/mycroft/skills/theia-ide.andlo/__init__.py", line 43, in initialize
self.install_theia()
File "/opt/mycroft/skills/theia-ide.andlo/__init__.py", line 140, in install_theia
self.log.info('Memmory on device is ' + mem +
TypeError: can only concatenate str (not "int") to str
I have had to littel time for microfting - but I did make a replacement skill for THEIA IDE based om OpenVSCode-server. It seems better or easier to update, as I dont have to make the precompiled packages I did need for getting Theia working on small deviceses.