I can right click the .cup file and see "Java-Cup properties" but the first option is Output Directory and it prompts me to "Select a Java folder." When I click the "..." to the right of that box the popup comes up with "No entries available." I tried putting in the path and location under properties of the project but no luck. I tried adding a Java folder but no luck. CUP is working as the classes with the default naming scheme appear in the default package without an issue.
Under Eclipse Preferences CUP is set to output directory "src". I tried changing that to nothing and no luck either. My version of Eclipse:
Version: 3.2.2
Build id: M20070212-1330
Without setting the Java folder (which again is blank by default) I can't make any other changes as Apply is not activated. Am I missing something silly?
Thank you,
Cymen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well... It sort of makes sense. By default, I was importing a file into the (default package). I had to go File->New->Source Folder and put everything in that. Then I could right click the .cup file and use the new folder name. For some reason, it won't just use the default or perhaps there is some setting I am missing?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, you're right, by default Eclipse puts everything in the project's root. Since this boosts the
creation of unstructured projects, I didn't consider it worth it to implement this case; maybe
I'll do it at some point, but there are a lot of things waiting to be done before that...
The workaround is of course to create separate entries for source folders and classes; this allows
everyone to use building tools such as Maven. I usually have the following structure for my projects
- src containing java sources; classes go to output/classes
- tests containing tests sources; classes go to output/tests-classes
- etc containing anything else (e.g. cup/lex files)
Thank you for using this plugin
--
pappy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) Create a new project.
2) Put .lex/.cup in the default area (which is right under the project name in eclipse).
3) Right click project and select New->Source Folder (or New->Other then Java->Source Folder). I will use the name "code".
4) Right click the .cup/.lex and "code" is probably already there. Now you can change the parser and sym file names.
I tried downgrading to Eclipse 3.1 and had the same issue. With the above, everything is working (except editing the .lex file and saving it seems to take a little while longer for the file to be generated or recognized by eclipse. But it works and that is the important thing!
Thanks for the plug-in. Besides the above oddity it works great!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can right click the .cup file and see "Java-Cup properties" but the first option is Output Directory and it prompts me to "Select a Java folder." When I click the "..." to the right of that box the popup comes up with "No entries available." I tried putting in the path and location under properties of the project but no luck. I tried adding a Java folder but no luck. CUP is working as the classes with the default naming scheme appear in the default package without an issue.
Under Eclipse Preferences CUP is set to output directory "src". I tried changing that to nothing and no luck either. My version of Eclipse:
Version: 3.2.2
Build id: M20070212-1330
Without setting the Java folder (which again is blank by default) I can't make any other changes as Apply is not activated. Am I missing something silly?
Thank you,
Cymen
Well... It sort of makes sense. By default, I was importing a file into the (default package). I had to go File->New->Source Folder and put everything in that. Then I could right click the .cup file and use the new folder name. For some reason, it won't just use the default or perhaps there is some setting I am missing?
Hi
Well, you're right, by default Eclipse puts everything in the project's root. Since this boosts the
creation of unstructured projects, I didn't consider it worth it to implement this case; maybe
I'll do it at some point, but there are a lot of things waiting to be done before that...
The workaround is of course to create separate entries for source folders and classes; this allows
everyone to use building tools such as Maven. I usually have the following structure for my projects
- src containing java sources; classes go to output/classes
- tests containing tests sources; classes go to output/tests-classes
- etc containing anything else (e.g. cup/lex files)
Thank you for using this plugin
--
pappy
To be perfectly clear:
1) Create a new project.
2) Put .lex/.cup in the default area (which is right under the project name in eclipse).
3) Right click project and select New->Source Folder (or New->Other then Java->Source Folder). I will use the name "code".
4) Right click the .cup/.lex and "code" is probably already there. Now you can change the parser and sym file names.
I tried downgrading to Eclipse 3.1 and had the same issue. With the above, everything is working (except editing the .lex file and saving it seems to take a little while longer for the file to be generated or recognized by eclipse. But it works and that is the important thing!
Thanks for the plug-in. Besides the above oddity it works great!
Pappy,
Thank you for creating the plugin. It has been very useful. I completely understand your reasoning above.
Cymen