leaphy-robotics / leaphy-client

Web-based client application for programming Leaphy robots
GNU General Public License v3.0
6 stars 7 forks source link

Compilation error when using variables #150

Closed Roelandsmith closed 3 years ago

Roelandsmith commented 3 years ago

This program works:

This works

But this one doesn't:

This wont work

Seemingly the using of a variable in the program loop, isn't sufficient for the declaration of the variable. But in Scratch it is sufficient. So, we want it to be the same in Easybloqs:)

This is the log file: Error during build: exit status 1

at ChildProcess.exithandler (child_process.js:317:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

[2021-09-26 11:50:33.932] [error] Compilation failed! Error: Command failed: C:\Users\smithr\AppData\Local\Temp\b43b3522-15b9-4991-875f-296e5ecbf5f4.tmp.exe compile --fqbn arduino:avr:uno C:\Users\smithr\AppData\Roaming\easybloqs\sketch\sketch.ino --build-path C:\Users\smithr\AppData\Roaming\easybloqs\sketch C:\Users\smithr\AppData\Roaming\easybloqs\sketch\sketch.ino: In function 'void leaphyProgram()': C:\Users\smithr\AppData\Roaming\easybloqs\sketch\sketch.ino:11:9: error: '_7B_OUFXk3KwPjE_25hAc' was not declared in this scope if (7B_OUFXk3KwPjE_25hA_c == 1 && eOB64qHzD6GVMAnM7A == 1) { ^~~~~~~~ C:\Users\smithr\AppData\Roaming\easybloqs\sketch\sketch.ino:14:9: error: '_7B_OUFXk3KwPjE_25hAc' was not declared in this scope if (7B_OUFXk3KwPjE_25hA_c == 1 && eOB64qHzD6GVMAnM7A == 0) { ^~~~~~~~ C:\Users\smithr\AppData\Roaming\easybloqs\sketch\sketch.ino:17:9: error: '_7B_OUFXk3KwPjE_25hAc' was not declared in this scope if (7B_OUFXk3KwPjE_25hA_c == 0 && eOB64qHzD6GVMAnM7A == 1) { ^~~~~~~~ C:\Users\smithr\AppData\Roaming\easybloqs\sketch\sketch.ino:20:9: error: '_7B_OUFXk3KwPjE_25hAc' was not declared in this scope if (7B_OUFXk3KwPjE_25hA_c == 0 && eOB64qHzD6GVMAnM7A == 0) { ^~~~~~~~ Error during build: exit status 1

at ChildProcess.exithandler (child_process.js:317:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)