GithubHelp home page GithubHelp logo

Comments (6)

sciencewhiz avatar sciencewhiz commented on June 17, 2024

If you delete the source file for the empty command, does it then generate correctly?

from robotbuilder.

dravis123 avatar dravis123 commented on June 17, 2024

Yes, I was able to get the file to create when I deleted the other files. I can see that the command in question (ShootSingleBall) does not get the .cpp file updated, the timestamp is older. But the .cpp~, .h, and .h~ files do get new modified timestamps. Is this a file locking problem perhaps where RobotBuilder cannot get write access? It seems odd because this worked many many times in recent days.

from robotbuilder.

dravis123 avatar dravis123 commented on June 17, 2024

I am going to try a new eclipse/WPI lib install and see if it works then.

from robotbuilder.

dravis123 avatar dravis123 commented on June 17, 2024

I finally recreated this and found the issue. If you have a parameter preset starting with a number, the generate code hangs/fails with no error messages. In this case, I had "10ft" as a preset, and changed it to TenFt and the code generated fine.

Do you think it would be possible to add validation to these fields or at least an error message when generating code? Could prevent other people from banging their heads against the wall here. I am SW Dev so I don't mind chasing down bugs :-).

from robotbuilder.

sciencewhiz avatar sciencewhiz commented on June 17, 2024

It appears there is already code to handle this condition, I wonder why it didn't work.

public static final boolean isValidParamName(String name) {
return !reserved.contains(name)
&& name.matches("^[a-zA-Z_]+\\w*$"); // at least one letter or underscore to start and then any amount of letters, numbers, and underscores
}

from robotbuilder.

dravis123 avatar dravis123 commented on June 17, 2024

Thanks for working on this! I'll be sure to put RBuilder through its paces next week... :-)

from robotbuilder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.