-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checking COM port in Network Bridges list causes error - Failed to open serialPort #214
Comments
Haha, man, this code is slowly falling apart it seems. Probably time for a bit of a refresh on the dependencies (especially since it looks like it fails to run in Java 22 now as well). The error in NetBeans is something about Lombok, which is a... Plugin (I think?) for NetBeans, but the version referenced by the project might be pretty outdated. I don't know for sure when I'll get time, but on my list is updating all the libraries to recent versions (which I think is probably the root cause of the sporadic serial issues, and the lack of Java 22 compatibility). Is NetBeans still a good Java IDE? I might try using VS Code this time around. |
Added a warning to indicate the sketch hasn't been tested to work yet. Looking into an issue running the Moppy2 application: Sammy1Am/Moppy2#214
Thanks for getting back to me so fast. Sounds good to me. I did see mentions of that error when using older versions of the lombok plugin. So I tried to change the version by updating Build Scripts/build.gradle. Specifically changing org.projectlombok:lombok under dependencies to 1.18.22. But that didn't seem to fix anything. I did confirm I saw the version of lombok under Configurations/annotationProcessor and Configurations/compileClasspath change to that version. Other than that I also tried to figure out what version of Gradle Moppy was using versus what Netbeans was using, but I think Netbeans auto-selected the version and downloaded it as far as I can tell. So I'll just wait for the update. From the little research I did, I hear IntelliJ is a better option than VS code for Java. Apparently you need a lot of extensions to get it working in VS code and even then experience is still not that great. I know nothing firsthand though as it's not something I work in. |
New release is out that updates dependencies and resolves at least the issue with Java 22. If you have a moment to test I'd appreciate the feedback (I'm sort of updating blind as I don't have my floppy drive hardware setup). |
Hey, sorry for getting back to you so late. I can confirm the new release is working with java 22. It also looks like the issue I was running into is specific to my machine and I didn't realize it earlier. I have several additional com ports added by my Bluetooth adapter that's part of my motherboard. So the error was caused when trying to connect to one of those. Once I found an actual serial port I was able to connect and play a song. I'm going to close this issue in that case. Unfortunately I'm not currently using the moppy Arduino code so I can't confirm that it's actually playing notes from the microcontroller. But I would think that's working as it did before. Thanks. |
Thanks for the update-- yeah I didn't change any of the microcontroller code or the communication with it, so it should still be working. |
Hello, I'm trying to run the Moppy2 GUI on Windows 10. I have JDK 21 installed.
In the UI, I see multiple COM ports displayed and some random IP I don't recognize. When I try to connect (check) any of the COM ports, I get the below error and the box isn't checked (of course). Connecting to the IP does work as far as being able to check the checkbox.
Not sure what's causing it and I sort of feel it's something specific to my computer, but I can't really debug/troubleshoot further.
I tried to debug the source myself, but am also running into compilation issues when using the Netbeans IDE. This is a separate issue, just mentioning what I've tried to get more info in case you might know something. Not really getting a lot of out Google searches on this.
Info on/from NetBeans
Product Version: Apache NetBeans IDE 22
Java: 21.0.2; Java HotSpot(TM) 64-Bit Server VM 21.0.2+13-LTS-58
Runtime: Java(TM) SE Runtime Environment 21.0.2+13-LTS-58
System: Windows 10 version 10.0 running on amd64; UTF-8; en_US (nb)
Output from build
Not familiar with Netbeans + Gradle so I might be missing something obvious.
Thanks for any help.
The text was updated successfully, but these errors were encountered: