Yes but you start to go into areas where security becomes more of a problem with logging to a local file. I like the idea, but not locally due to the fact that would be opening up their security (if you happen to have bad security in your network) this could be a way for some zealous hacker to make his way into ST.
Security isn’t really an issue with a persistent text file… It’s just raw read access only, wouldn’t have any database storage like the current log.debug function does… In fact, one could argue the current logging infrastructure is far more vulnerable…
This would simply write out a text file server side, just like cameras write images to the cloud, and then only in the IDE would you be able to view the text file.
@pstuart you might be right there. I know from where I work, that we deal with issues similar to this all the time. But, this is not my area of expertise. So I will defer to you (SMILE)
This might be simple, might be impossible…
IDE Code window…
Word Wrap Text.
Is there any way to make it so that the “live logging” window can be scaled “portrait” - it cuts off real short when it is long
May I suggest that the Cloud9 web-based IDE is worth taking a close look at for further ideas?
It has “runners” (execution / debug environments) for a few languages (e.g., Node.js) and apparently there is a way to plug-in more (Groovy can be selected for an editing environment).
It is a nice multi-pane IDE … I’m just starting to use it, so I can’t say for sure whether it beats my old standard of VisualStudio (or Eclipse, etc.). One major feature that is a benefit on large projects is concurrent - collaborative editing ability!
Can we also force people to use semi-colons at the end of every statement of Groovy code?;
OK … I’m sure this is a religious argument. I’m just new to Groovy and I have a huge pet peeve about languages that don’t have mandatory statement terminators. It’s just asking for trouble, IMHO.
I second all the suggestions and would like to add one small thing “SPEED”. The slowness of the IDE when coding, saving, setting location and trying to simulate kills you most of the times.
Even better would be github integration combined with an ST plugin for the atom editor.
atom.io is the bomb! Started using it a few months ago, coming from smultron. (Mac User)
I cannot get into Atom over Sublime Text 3. Sell me
@Ben Honestly, I still prefer sublime text for my larger projects. But atom is getting better all the time. For small projects I have been using atom. It is free and hackable and it’s development and user base will soon eclipse sublime.
If I didn’t already use Sublime, I would probably be super excited about Atom. But since I do use Sublime (and have it lovingly configured to do exactly what I want), I don’t see an advantage to Atom.
The only real difference for me is the responsiveness. I have atom set up to behave just like my sublime config. The fact that sublime is a compiled application makes it much more efficient. Given that all I do all day is write code and I paid for sublime, I keep using it. Once atom performs better, I will switch completely.
Are there plans to and Intellisense to the IDE? I think adding this, while most-likely a considerable investment for SmartThings, would have a large payoff to the community. I can tell you from my experience that I do not have every class and library memorized. I’m just struggling to learn the basics of Groovy!
Autocompleting and in-line code references are some of the most requested features. We are looking into these.
A debugger with variable evaluation.
Search - through current code, all your own code, and all code.
Be careful what you ask for, Intella-sense can easily turn into an intella-menace…
Found this thread a bit late, but here is my 2 cents worth of inputs :
- reliable logging : sometimes, for unpredictable reasons, log stops working; at the same time, while the log pane appears empty, the SmartApp or Device Handler continue to work… or not
- strictly identical behavior between IDE and iOS/Android mobile App (ex: ticket #63621)
- IDE safe for saving modifications : sometimes (usually after some lengthy inactive IDE period), just when you want to save your latest modifications, the IDE brings you to the logging page, and once logged again, you discover you have lost all your latest modifications
- IDE lack of quirky behavior : to make it work reliably after a modification, I have to Save / Publish for me / goto SmartApps / select again my SmartApp / enter Location and Preferences /. Otherwise, when I just Edit and Install, nothing happens (or the log does not show)
- IDE error messages when some incompatibility exists between the IDE and the browser : for example, 10 days ago, I thought all my saved SmartApps had disappeared from the cloud/IDE : when selected, their window was totally empty (ticket #75037). Then I discovered it was a new and unexpected regression, with TenFourFox browser now incompatible with IDE, while it was perfectly OK before (Safari was still working)
- color schemes which make sense and are not kaleidoscopic : the latest modifications of colors are definitely not a plus !