Bug 1539 : error report ...It looks like you're mixing "active" and "static" modes
Last modified: 2010-04-14 09:47




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
nikp
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2010-04-12 09:57
v 0182

MacOS 10.5.8 macbook pro unibody early 2009

This is a compile time error through the processing IDE. Any simple syntax
problem will now fire only this error. For instance i made this simple
mistake:

My line was in an included file within a class method
if(other.virus > 0.0) //optimise

accidentally i then removed the comment slashes
so

if(other.virus > 0.0) optimise

An obvious typo. However rather than stop at this line during compile, the
IDE stops at setup() in the main file. Here is the full output..

processing.app.debug.RunnerException: It looks like you're mixing "active"
and "static" modes.
at processing.app.Sketch.preprocess(Sketch.java:1326)
at processing.app.Sketch.preprocess(Sketch.java:1205)
at processing.app.Sketch.build(Sketch.java:1568)
at processing.app.Sketch.build(Sketch.java:1553)
at processing.app.Editor$DefaultRunHandler.run(Editor.java:1648)
at java.lang.Thread.run(Thread.java:613)

Some things to note...i have been working on "core" albeit in a different
location copy, this is the standard vanilla 0182. This app or 95% has
never had this output before the last two weeks (likely my last processing
download, so likely 0182), although of course it could be the 5% i changed.

Not a critical bug just annoying as you have to search for your typo's.

nik
Additional Comment #1 From fry 2010-04-12 13:54
can you give me a short example that doesn't require your other classes to
run? i need something that we can reproduce and test against.
Additional Comment #2 From fry 2010-04-13 19:17
*** Bug 1544 has been marked as a duplicate of this bug. ***
Additional Comment #3 From nikp 2010-04-13 20:41
(In reply to comment #2)

Seems i can delete almost everything from my 4 file 3 class project....but
i must leave 1 class other than the main sketch...and the error is always
precompile sytax error. Normally missing semi-colon or just random text
somewhere. Plus it seems to start at some random compile and then never go
away.

>
>
>
> Additional Comment #2 From
> fry
> 2010-04-13 19:17
>
> <!--
> addReplyLink(2); //-->[reply]
>
>
>
>
>
>
> *** Bug 1544 has been marked as a duplicate of this bug. ***
>
>
Additional Comment #4 From fry 2010-04-14 09:47
fixed in 0184.

if anyone gets a similar error message, *open a new bug*.

*do not add to this bug report, now that it is closed.*