I have noticed that scripts (especially longer ones, 1000 lines+) take long to VERY long to run from the editor, compared to running the very same scripts from Editor in V4 or V5. Also, I get errors on “Unterminated string constant” in many scripts that run normally in V5 and V4. Note that if I run these scripts in V6 by dragging into Vport or compiling into rhp all works fine. So it must be some Editor changes. Hope we can make it work again.
Any interest in this?
It is a major problem for many of our tools if we were to switch to and test out V6 with ScriptEditor.
Apart for very slow start and reporting syntax errors in code that work fine in V5 version the reported line does not even contain the string the error refers to.
Other than the look (new icons) I was wondering what other changes have been / are being made to the Editor. Something got broken for sure.
thanks, let me know if you need any sample files - this will not be obvious with shorter scripts. Hope you wrote a few script novels before (try 3000 lines +). The start is slow and while starting all the fans start and I can see a surge in processor use.
Hmm 3000 +… @Jarek , a novella is about the best I can scare up so far - if you have a good solid novel you can send me, I guess that would be more sure to show the problem.
On the topic of V6 RhinoScript Editor problems, in debugging some scripts I’ve noticed that the error report seems to be counting the number of lines of executable code (skipping blank lines and comments). Is this a known issue?
Thanks for looking into this @dale. Sorry about the delayed response, @brian, but any script seems to cause the error. For example, running this script results in the error below:
Option Explicit
'Script written by <insert name>
'Script copyrighted by <insert company name>
'Script version Monday, November 14, 2016 1:23:09 PM
Call Main()
Sub Main()
this Is line 9
End Sub
The ‘slow start’ problem and errors with comments are no more there, thanks for fixing it!
I have noticed another weird behaviors though when running scripts from the editor (and not dragging them or running as plugins)
if you change the command prompt, it does not go back to normal "Command: " after script ends/gets cancel
command autocomplete is active during script runtime. Again, only for scripts ran from Editor. This gets in a way of scripts that read keyboard presses in ‘real time’ - with the new GetKey method and others… Autocomplete should not be active when running scripts.
Found another problem in the current WIP editor: Rhino.Command() method commands don’t work in scripts executed from the Editor. Work OK from _Runscript (…) buttons and dragging scripts into Rhino…