-
Notifications
You must be signed in to change notification settings - Fork 39
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
autogen usage #37
Comments
You're the first person (as far as I know) to test this in it's current state, so there may be some issues (sorry!). Can you try again (pull upstream changes first)? I think the problem was that I hadn't fully removed some bad scripts from the fork of the library that our autogen package tries to install. Because it is installing from a git repo instead of from NPM itself, NPM doesn't automatically run the build scripts, so I had to configure it manually (and the issue was in that custom configuration). I also made some changes to the autogen readme so that it's more understandable. |
This manages to get further, but |
@ddemidov Sorry for the late reply, I was very busy and completely forgot to reply to this thread. I think I have fixed all the issues (and I have tested it on multiple clean installs of the OS). The problem appears to be how |
It works! Thank you, I'll continue my experiments with autogen. |
The following command runs fine:
If, however, I modify an autogen block inside one of the generated files (for example diff --git a/extras.ts b/extras.ts
index 8e3338f..29784d0 100644
--- a/extras.ts
+++ b/extras.ts
@@ -3,7 +3,6 @@
///<reference path="io.ts" />
//~autogen autogen-header
- // Sections of the following code were auto-generated based on spec v0.9.2-pre, rev 1.
//~autogen
class PowerSupply extends Device { ), then
It seems that autogen does not overwrite a file if its contents did not change, but fails when there are some changes to apply. |
The error above does not happen when
Is that the intended behavior? |
@ddemidov Feel free to reopen this if you come across any more issues. |
Hi,
I am looking at converting the python bindings to using the autogen scripts. For now I am just trying to run the existing scripts. Unfortunately, the usage instructions do not work for me: https://gist.github.com/ddemidov/3b97a533a149491c7006
Do I need anything else for autogen to work?
The text was updated successfully, but these errors were encountered: