openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

[Build] Type mismatch: cannot convert from CommPort to SerialPort #5873

Closed marekhalmo closed 5 years ago

marekhalmo commented 5 years ago

Hello, when i do a fresh clone of openhab1-addons [master] directory and try mvn clean install on root i get following error

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile (default-compile) on project org.openhab.binding.satel: Compilation failure: Compilation failure: [ERROR] C:\Projects\OpenHab\clean build\openhab1-addons\bundles\binding\org.openhab.binding.satel\src\main\java\org\openhab\binding\satel\internal\protocol\IntRSModule.java:[68,-1] [ERROR] 1. ERROR in C:\Projects\OpenHab\clean build\openhab1-addons\bundles\binding\org.openhab.binding.satel\src\main\java\org\openhab\binding\satel\internal\protocol\IntRSModule.java (at line 68) [ERROR] SerialPort serialPort = portIdentifier.open("org.openhab.binding.satel", 2000); [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ERROR] Type mismatch: cannot convert from CommPort to SerialPort

Can anyone help?

9037568 commented 5 years ago

Is there a reason you're not using the OH2 satel binding? Just curious.

If you build from within the satel binding root, do you get the same error? Mine builds fine from there. I'll try building from root to see if I get the same problem you're seeing.

9037568 commented 5 years ago

Build ran clean from the root of the project, too.

marekhalmo commented 5 years ago

Hello, thank you for help. Can you please tell me how you build the addons project? I use "mvn clean install" where i have two folders, one with "addons" and one with "openhab"

marekhalmo commented 5 years ago

Is there a reason you're not using the OH2 satel binding? Just curious.

If you build from within the satel binding root, do you get the same error? Mine builds fine from there. I'll try building from root to see if I get the same problem you're seeing.

I don't need satel binding. I need to modify serial binding from addons1. Satel binding is causing my build to crash.

9037568 commented 5 years ago

You could try commenting out the satel binding so that it doesn't get built. For additional help, I suggest asking in the community forum.

marekhalmo commented 5 years ago

Ok. I will try that.Thank you!

marekhalmo commented 5 years ago

Hello, tried that but id did not work. Same issue is popping out on the serial binding.

Can anyone help me fix this build issue?

Thank you!

marekhalmo commented 4 years ago

Hello, i still can't build anything.. Can anyone help?