I have downloaded the trial version of ANTLR Studio, and I am
having trouble with debugging a grammar (.g file). I have tried
opening the debug perspective and executing a debug configuration on
the .g file, but I get errors about the source code being not found.
I know that the debug perspective recognzies the .g file because I can
see the special outline view for it.
I want to do the following: set a breakpoint, enter text into
the input view, and see the AST in its view. I have also tried
debugging the Java files generated by ANTLR Studio, but that process
does not seem to know about the .g file.
Sincerely,
Craig
Prashant
Hilfe.
Atif.
On Mar 6, 3:49 am, "craigugor...@gmail.com" <craigugor...@gmail.com>
wrote:
What do you mean by this?
Do you have any code which actually executes and runs the parser?
The input view shows the text that was passed to a parser/lexer.
You can pass your parser a file containing the text you want to test
it with and see it in the that view.
Prashant
Yes I have code which instantiates a lexer and a parser but nothing
happened as earlier. Then i added three parser functions calls and now
i am getting an error that debuggingcharbuffer.class cannot be found.
Its strange because i can import it in eclipse and the code complete
feature of eclipse shows it as well. However, i don't have this file
with me. I have added all antlrstudio jar files in my debug
configuration but it still cant find it.
Atif.
However, before i
Errors during build.
Error instantiating builder: AntlrStudio.antlrGrammarbuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.AntlrGrammarBuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.AntlrGrammarBuilder.
Error instantiating builder: AntlrStudio.markerManipulatorBuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.MarkerManipulatorBuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.MarkerManipulatorBuilder.
Error instantiating builder: AntlrStudio.smapBuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.SMapInstallerBuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.SMapInstallerBuilder.
However, apparently none of these packages r related to troublesome
class DebuggingCharBuffer.class which belongs to AS' debug jar.
I am using Eclipse 3.2 and ANTLR is ofcourse 2.7.6 which ships with
the latest studio.
Hilfe,
Atif.
did you reinstall and then enabled antlr studio on the project again?
Prashant
Have you followed the steps in this faq -
http://www.placidsystems.com/faq.aspx#b
Prashant
Atif.
So is this the error message you are getting? do you mean it throws a
classnotfound exception at runtime?
or are you getting no error msg at all?
is the asdebug jar included in your build path?
Prashant
The source attachment does not contain the source for the file
DebuggingCharBuffer.class.
You can change the source attachment by clicking Change Attachment
Souce below. (button)
-----------------------
When i do that, the error persists.
This is the file: antlrdebug_1.0.0.jar, (19.2 KB)
Atif.
Does your 'console' view show any exception being thrown?
Prashant
You are not supposed to do that. While debugging, antlr studio uses a
custom modified antlr jar.
Prashant
---------
Network connection problems encountered during search.
Unable to access "http://placidsystems.com/updates/as/".
Unable to access site: "http://placidsystems.com/updates/
as/" [placidsystems.com]
Unable to access site: "http://placidsystems.com/updates/
as/" [placidsystems.com]
--------
I hav tried with appending www to the url as well, so cant b my
network problem.
Prashant
the url seems to be working fine for me. if you try to access it
directly from your browser of course then it will give an error.
Did you follow the instructions mentioned here to use the automatic
update site -
http://www.placidsystems.com/info/updatesite.aspx
Prashant
On another note, i have found out the reason to one of the errors i
was getting, i.e.
Errors during build.
Error instantiating builder: AntlrStudio.antlrGrammarbuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.AntlrGrammarBuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.AntlrGrammarBuilder.
Error instantiating builder: AntlrStudio.markerManipulatorBuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.MarkerManipulatorBuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.MarkerManipulatorBuilder.
Error instantiating builder: AntlrStudio.smapBuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.SMapInstallerBuilder.
Plug-in AntlrStudio was unable to load class
antlr_Studio.ui.build.builders.SMapInstallerBuilder.
Sometimes, Eclipse environment loads up before the message box
indicating remaining evaluation days especially when NOT invoked with
the eclipse -clean option, so when i try to invoke the debugger before
this message box appears, i get the above error. Makes sense too,
AntlrStudio UI isnt loaded yet.
So now we have lesser directions to follow.
> However, i am using windows 2000 and not an administrator, my java
> classpath is a user variable and not a system variable, which usually
> works. On Monday, i will exhaust this possibility as well by becoming
> an admin to try it again but i am not so optimistic about it.
thats irrelevant. when you execute a program in eclipse, eclipse
provides it its own classpath.
> On another note, i have found out the reason to one of the errors i
> was getting, i.e.
> Errors during build.
> Error instantiating builder: AntlrStudio.antlrGrammarbuilder.
> Plug-in AntlrStudio was unable to load class
> antlr_Studio.ui.build.builders.AntlrGrammarBuilder.
> Plug-in AntlrStudio was unable to load class
> antlr_Studio.ui.build.builders.AntlrGrammarBuilder.
> Error instantiating builder: AntlrStudio.markerManipulatorBuilder.
> Plug-in AntlrStudio was unable to load class
> antlr_Studio.ui.build.builders.MarkerManipulatorBuilder.
> Plug-in AntlrStudio was unable to load class
> antlr_Studio.ui.build.builders.MarkerManipulatorBuilder.
> Error instantiating builder: AntlrStudio.smapBuilder.
> Plug-in AntlrStudio was unable to load class
> antlr_Studio.ui.build.builders.SMapInstallerBuilder.
> Plug-in AntlrStudio was unable to load class
> antlr_Studio.ui.build.builders.SMapInstallerBuilder.
You told me previously that you had solved this error and you were
able to build fine.
how did you manage to do this again.
Try this.
-make sure port 55551 is not blocked. antlr studio uses this to debug
the grammar.
- do a clean install of eclipse and antlr studio.
- enable antlr studio on your project.
- set a breakpoint on one of the rules in the grammar.
- debug.
do NOT download the antlr jar from antlr.org. antlr studio will
automatically add its own antlr jar which it needs to run its
debugger.
Prashant
Sorry for the late reply by the way.
On Apr 27, 11:51 pm, "Prashant Deva" <prashant.d...@gmail.com> wrote: