2014-12-20, 14:28
XBMC Stubs allows auto-completion and documentation lookup in some IDEs. I think there is a walk-through about how to set it up in PyCharm.
https://github.com/romanvm/xbmcstubs
https://github.com/romanvm/xbmcstubs
(2014-12-20, 14:26)LandRover Wrote: [quote pieman]
Thanks for adding the ATV2 path details and obviously they will be different for different set ups. Hopefully users can locate their xbmc.log and modify the tail command accordingly.
The modules that are prefixed with xbmc like xbmcgui and xbmc itself are not available in standalone Python.They will only run via XBMC. It maybe that the techies have worked out how to use them in an IDE but I certainly haven't found a way. It would be nice to use the IDE's we are familiar with but unless someone advises otherwise it is not possible. Even if you added the modules to Python I don't think they would work as they were developed to work within XBMC.
(2014-12-20, 14:28)Karnagious Wrote: XBMC Stubs allows auto-completion and documentation lookup in some IDEs. I think there is a walk-through about how to set it up in PyCharm.
https://github.com/romanvm/xbmcstubs
(2014-12-20, 14:40)pieman Wrote: Not sure what I have done with the format of quotes in my last few posts but hopefully readers can make some sense of it.
xbmcstubs and PyXBMCt were written by the same person so he (?) obviously knows the ropes when it comes to Python and XBMC.
(2014-12-20, 20:39)Roman_V_M Wrote:Just downloading PyCharm Community Edition now. So xbmcstubs will not allow us to run the xbmc code in a regular IDE? I think you are saying the virtual environment of PyCharm will allow us to run the code though. Thanks for the mod to the format of the PyXBMCt demo zip file and the dependencies are now met in Gotham.(2014-12-20, 14:40)pieman Wrote: Not sure what I have done with the format of quotes in my last few posts but hopefully readers can make some sense of it.
xbmcstubs and PyXBMCt were written by the same person so he (?) obviously knows the ropes when it comes to Python and XBMC.
To be honest, I've forked xbmcstubs from another Github repo that got stale some time ago and try to keep it up to date with XBMC/Kodi Python development. And xbmcstubs just help you write code in your favorite IDE, it doesn't let you actually run the code.
As for IDE, I prefer PyCharm Community Edition. There I have created a virtual environment with xmbcstubs and some other popular XBMC Python modules, which helps me with my amateur (I'm not an IT guy actually ) experiments.
(2014-12-20, 21:16)nickr Wrote: No. PyCharm will not allow you to run xbmc code in a gui/ide.
(2014-12-20, 21:19)nickr Wrote: If you want a log of the code running, yes.
(2014-12-20, 21:24)pieman Wrote:Not sure what your point is.(2014-12-20, 21:19)nickr Wrote: If you want a log of the code running, yes.
Specifically I want the log of the code NOT running i.e. all my bugs
I don't like the word log in this context as it suggests a passed record of events whereas tail gives a live view of the code in operation.
(2014-12-20, 21:27)nickr Wrote:(2014-12-20, 21:24)pieman Wrote:Not sure what your point is.(2014-12-20, 21:19)nickr Wrote: If you want a log of the code running, yes.
Specifically I want the log of the code NOT running i.e. all my bugs
I don't like the word log in this context as it suggests a passed record of events whereas tail gives a live view of the code in operation.
(2014-12-20, 22:48)LandRover Wrote:(2014-12-20, 21:27)nickr Wrote:(2014-12-20, 21:24)pieman Wrote: Specifically I want the log of the code NOT running i.e. all my bugsNot sure what your point is.
I don't like the word log in this context as it suggests a passed record of events whereas tail gives a live view of the code in operation.
I think that what pieman and I are looking for a is process or tool (or explanation) of how to review Python syntax errors, EOL errors, indent errors, parsing errors etc. before we attempt to run the code through Kodi/XMBC. How does a developer try to correct these errors for XMBC specific scripts given we can't seem to do this in IDE?
Pieman sorry if I got that wrong.
(2014-12-20, 22:48)LandRover Wrote: I think that what pieman and I are looking for a is process or tool (or explanation) of how to review Python syntax errors, EOL errors, indent errors, parsing errors etc. before we attempt to run the code through Kodi/XMBC. How does a developer try to correct these errors for XMBC specific scripts given we can't seem to do this in IDE?
Pieman sorry if I got that wrong.