Can't Compile/upload since V 0.35.0

Help,

The attached bit of code will compile and run with V 0.34.0
but will not compile under V035.0.
I have uploaded other bits of code under V0.35.0 no probs, but not this bit of code.
Board type Freetronics EtherMega ( Aust )
I am running windows 10 and all the XOD dependencies are up to date.

looser. :disappointed:

Clock Series-Time-.xodball (32.9 KB)

Begin compiling code for the board Arduino Mega or Mega 2560 :package:

C:\Users\denis\AppData\Local\Temp\xod_temp_sketchbook20EI12\xod_1600164137954_sketch\xod_1600164137954_sketch.ino: In member function ‘void xod::xod__common_hardware__ds18b20_thermometer::Node<constant_input_PORT>::evaluate(xod::xod__common_hardware__ds18b20_thermometer::Node<constant_input_PORT>::Context)’:
C:\Users\denis\AppData\Local\Temp\xod_temp_sketchbook20EI12\xod_1600164137954_sketch\xod_1600164137954_sketch.ino:2843:40: error: ‘port’ was not declared in this scope
bool success = readTemperature(port, &tc);
^~~~

C:\Users\denis\AppData\Local\Temp\xod_temp_sketchbook20EI12\xod_1600164137954_sketch\xod_1600164137954_sketch.ino:2843:40: note: suggested alternative: ‘Uart’
bool success = readTemperature(port, &tc);
^~~~
Uart

Error during build: exit status 1
Compilation failed
Command Process exited with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

Hi!

We just released XOD v0.35.1 that fixes this bug among other things. Please update and all should work fine!

Hello evgenykochetkoprov,

Thank you for your quick reply.
The code now compiles and uploads no errors with the message “Uploaded Successfully” but the code doesn’t run.
I can reinstall 0.34.0 upload the program and it works fine.

looser :disappointed:

Thanks for the report and sorry for the late response.
That was indeed a bug with tweak-strings, it’s fixed now and released in v0.35.2

Hello evgenykochetkov,
Thanks very much for your help.

Downloaded 0.35.2 the sketch now compiles and runs no problems.

looser. :slightly_smiling_face:

1 Like

It looks like the problem still exists in version 0.35.2

Begin compiling code for the board Arduino Mega or Mega 2560 :package:

C:\Users\15FC~1.-\AppData\Local\Temp\xod_temp_sketchbookP3TJLB\xod_1600522652947_sketch\xod_1600522652947_sketch.ino:4519:5: error: initializer for flexible array member ‘uint8_t xod::txgruppi__stepper_28byj48__stepper_28byj48_controller::Node::positions []’
};
^

Error during build: exit status 1
Compilation failed
Command Process exited with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

My compilation error message.

@seralex thank you for this bug report. I confirm, that the bug introduced in the 0.35.0 version. However, we don’t plan to fix it until get more similar bug reports with the third-party libraries, because this fix is not so trivial. But there are some solutions:

  1. Ask @txgruppi to publish a new version of the library after fixing the bug or migrate the implementation to new version.
    To fix it you need just specify a size of array by replacing the line uint8_t positions[] = { with uint8_t positions[8] = {.
  2. If there is no response from library creator you can make a fork of the library with the suggested fix and publish it. Or just copy used node, make a fix, and use it in your project only :slight_smile:
4 Likes

Hi everyone!

I just pushed version 0.0.3 with the fix proposed by @brusher.

Let me know if it works (please tag me so I get a notification).

:wink:

3 Likes

Where can I get version 0.0.3? I could not find.

Hi, download the library again.

as if it were the first time, from the library search engine.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.