|Known problem: Need to run LPG manually to get IMP DSLs to build the first time [message #568067]
||Sun, 21 October 2007 16:26
| Stan Sutton
Registered: July 2009
This is a concern for those of you who have checked out the IMP projects
from CVS and are trying to get them to build. (It should not affect
those of you who have just installed the IMP features from the update
site and are trying to use IMP to build an IDE.)
In general, in order to get the IMP projects to build, you will need to
follow the instructions on the "IMP Developer's Corner" web page:
One particular thing that you need to do is addressed there under the
heading "Building Required Parsers."
In the IMP CVS repository we don't usually store generated files that
can be regenerated in the user's workspace. This saves on storage space
and download/upload time. In particular, we don't store the generated
parsers and AST node types for the various languages that are part of
IMP. There are about half a dozen of these languages now, including the
LPG grammar specification language and various DSLs for specifying
things about an IMP IDE. The generated classes need to be regenerated
whenever an IMP projects that contains one of these languages is checked
out into a workspace.
Ideally, the LPG builder, which is part of the IMP installation, will
run automatically to regenerate the needed classes. However, there is a
problem in that the LPG builder does not seem to run automatically on a
project until after LPG has been run manually on the project. So, for
now, the IMP developer needs to manually run LPG on the grammar files
for each of these languages in order to get the containing projects to
build for the first time. The instructions on how to do this are
contained in the web page cited above.
(Note that the user must run LPG the first time as an "external tool."
After that the internal builder should work automatically.)
We have to go through this process ourselves, so we know that it's a bit
of a pain. We apologize for that, and we're working to fix it.
Powered by FUDForum
. Page generated in 0.01938 seconds