6 votes

What programming/technical projects have you been working on?

This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

7 comments

  1. [2]
    Comment deleted by author
    Link
    1. Wulfsta
      Link Parent
      Ugh, I just had to do an upgrade from findbugs to spotbugs (a significant fast forward) for work, and it was weeks of updating. If you’re going to add linters to your projects, make sure to keep...

      Ugh, I just had to do an upgrade from findbugs to spotbugs (a significant fast forward) for work, and it was weeks of updating. If you’re going to add linters to your projects, make sure to keep them up to date.

      3 votes
  2. Wulfsta
    Link
    I’ve been trying to get klipper to run on atsamc21, so I can use Duet3D Toolboards with it. I can’t seem to establish a connection over CAN bus though.

    I’ve been trying to get klipper to run on atsamc21, so I can use Duet3D Toolboards with it. I can’t seem to establish a connection over CAN bus though.

    3 votes
  3. [5]
    scrambo
    Link
    I am having a hell of a time getting a stupid Spring Boot project off the ground. I have no idea why the application isn't finding the Controller classes and autoconfiguring them so I can do a...

    I am having a hell of a time getting a stupid Spring Boot project off the ground. I have no idea why the application isn't finding the Controller classes and autoconfiguring them so I can do a simple GET /foo.

    For whatever reason, the spring-boot-starter-actuator is configured properly, so I can GET /actuator just fine.

    Debug logging is showing that none of my controller classes are being found for autoconfiguration, which originally lead me to believe I had my package structure incorrect, but following the advice found here but that didn't help at all. Nothing changed in the structure, or the debug output in the logs after that.

    If anyone has (probably less than 5 minutes) of experience to donate and show me what the hell I'm doing wrong, I would very much appreciate that. I feel like a freshman back in CS 101 again 😅 Link to my github project

    1 vote
    1. [4]
      talklittle
      Link Parent
      Your project is working for me in a VM running Ubuntu and OpenJDK 17. Using the instructions for running using Gradle: $ ./gradlew bootRun Then visit http://localhost:8080/foo and I see "Foo" in...

      Your project is working for me in a VM running Ubuntu and OpenJDK 17.

      Using the instructions for running using Gradle:

      $ ./gradlew bootRun
      

      Then visit http://localhost:8080/foo and I see "Foo" in Firefox.

      2 votes
      1. [3]
        scrambo
        Link Parent
        What the hell, I'm not getting that running it using openjdk 17 through intellij on windows.... I even ran it through powershell just to make sure, and I'm still getting 404's. There can't be THAT...

        What the hell, I'm not getting that running it using openjdk 17 through intellij on windows....

        I even ran it through powershell just to make sure, and I'm still getting 404's.

        There can't be THAT much of a broken difference between windows and Linux...

        PS C:\Users\huffstler> Invoke-RestMethod -Method Get -Uri http://localhost:8080/foo
        Invoke-RestMethod : The remote server returned an error: (404) Not Found.
        At line:1 char:1
        + Invoke-RestMethod -Method Get -Uri http://localhost:8080/foo
        + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
           eption
            + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
        
        C:\Users\huffstler> Invoke-RestMethod -Method Get -Uri http://localhost:8080/actuator
        
        _links
        ------
        @{self=; beans=; caches-cache=; caches=; health=; health-path=; info=; conditions=; configprops=; configprops-prefix...
        
        1 vote
        1. [2]
          talklittle
          Link Parent
          Do you have spaces in your project directory path? Spring Boot Issue #34379: In Spring Boot 3.0.3, component scanning does not work when application's path contains one characters that would be...
          3 votes
          1. scrambo
            Link Parent
            I absolutely do (thanks windows 💢). I'll make a change to spring boot 3.1.0 Milestone and see if that fixes the problem. If not, I'll downgrade to 3.0.2 for the time being, and see what that does....

            I absolutely do (thanks windows 💢). I'll make a change to spring boot 3.1.0 Milestone and see if that fixes the problem. If not, I'll downgrade to 3.0.2 for the time being, and see what that does.

            Thanks for the help :)

            2 votes