Can't enter a relative path in Preferences->ANTLR 4->Tool #150
Comments
Can you provide a screenshot and say the exact steps you would like to be able to perform with references to one or more UI elements in your screenshot? |
For example, if I have the antlr.jar file located in the lib folder under the project root folder, then when I browse to that antlr.jar file and click Ok, the resulting path should be ./lib/antlr.jar instead of /home/usrname/workspace/ProjectName/lib/antlr.jar (the current behavior) Implementation option 1: When you click Add in the Project Properties->ANTLR->Tool dialog under the distributions list, if you brows to a path that is under the project path then when you click "Ok" in the file browser the relative path of the file should be placed in the Path field of the distribution item. Implementation option 2: There will be a new button on the UI called Add Relative which opens the folder browser to the project root directory and makes a relative path from what the user selects. |
So the tool path can be specified in both window->preferences and project On Nov 8, 2016 9:03 AM, "sithys" notifications@github.com wrote: [image: antlr tool project properties] For example, if I have the antlr.jar file located in the lib folder under Implementation option 1: When you click Add in the Project Implementation option 2: There will be a new button on the UI called Add — Reply to this email directly, view it on GitHub |
Yeah, a variable would be better. That's how most IDEs do it, come to think of it. |
If I understood your usecase correctly, you want to store the path for the antlr jar relatively to the workspace such that different users can use the same settings. How do you share the eclipse preferences between your different users ? The reason I am asking is that the preferences are stored per user anyway and they would have to configure the preferences for the new antlr jar at least once. |
Are the project settings not stored inside the project folder? If my VM crashes or I need to revert it, or if I make a VM with a different name, I want to use git pull to start working where I left off without changing anything in the project after installing eclipse/antlr4 ide/xtext Get Outlook for iOShttps://aka.ms/o0ukef From: HSorensen <notifications@github.commailto:notifications@github.com> If I understood your usecase correctly, you want to store the path for the antlr jar relatively to the workspace such that different users can use the same settings. How do you share the eclipse preferences between your different users ? The reason I am asking is that the preferences are stored per user anyway and they would have to configure the preferences for the new antlr jar at least once. You are receiving this because you authored the thread. |
The preferences are stored somewhere in the workspace/.metadata. See the eclipse help for |
I should note that I have "Use project specific configuragion" checked. If I delete metadata my options are still there for antler4 IDE when I restart eclipse and import the project. Get Outlook for iOShttps://aka.ms/o0ukef On Thu, Nov 10, 2016 at 2:42 PM -0800, "HSorensen" <notifications@github.commailto:notifications@github.com> wrote: The preferences are stored somewhere in the workspace/.metadata. See the eclipse help for You are receiving this because you authored the thread. |
If you enable project-specific settings for a project then these settings are stored inside the project directory itself inside a hidden folder with the name |
I see it now. So two options to either "add Jar" (relative to workspace) or "add external Jar" (from filesystem) would make sense, Similar to the build path. |
Hello, any news on this issue? I'm having the same problem: how to specify a relative path. When, for example, the project is under git version control, the same com.github.jknack.antlr4ide.Antlr4.prefs file is shared among different users.. but they have different absolute path of the ANTLR tool. So how to solve this situation? |
I cannot set a relative path under the ANTLR Tool Distributions settings. I want to enter a relative path so that I can push my project to GIT and not have to modify any project settings to use my project with a different linux username.
If I try to modify the path by hand using nano, the IDE starts to break down. It begins ignoring project settings and instead defaults to workspace settings. You get errors saying that the generator and the runtime use different versions of ANTLR.
In this state attempting to set the @Header with a package name will cause ANTLR 4 IDE to generate sources into the incorrect folder.
If you delete all the data generated by eclipse (the .recommenders and .metadata hidden folders) and restart eclipse, then import the project, ANTLR 4 IDE appears to rewrite that file to use an absolute path in place of your relative path that you hand-entered.
/xfilesmusic
The text was updated successfully, but these errors were encountered: