fredyvonvinet / ANTLR4-Plugins-for-NetBeans

NetBeans plugins for ANTLR 4 enabling to integrate ANTLR grammar files in standard NetBeans projects (ant-based or Maven-based).
9 stars 11 forks source link

Source package is empty and source files are in wrong node (generated files) #40

Open Chris2011 opened 7 years ago

Chris2011 commented 7 years ago

As you wrote it here:

The node "Source ANTLR grammars" in tab "Projects" is associated to a new source directory that you can see in tab "Files" of NetBeans explorer. This directory is not the same for ant-based and Maven-based projects:

For ant-based projects, it is grammar,
For Maven-based projects it is src/main/antlr4

The sources should be in /src/main/antlr4 for maven based projects, in which antlr4 will be renamed to "Source ANTLR grammars", but this only appears in the Files, window, not in the Project window, where a project was created. I couldn't find my files in the project window, until I realized, that your plugin Created a new node called "Generated Sources (antlr4)" where all my source files are inside, which is wront, because I didn't generated anything yet. So I expect that all my source files should be in the Sources Packages of a maven project.

So here is the files view:

antlr-project-structure

And here is the project view:

antlr-project-view

Regards

Chris

Chris2011 commented 7 years ago

In the Generated Sources node, should only be my generated files, not the sources files.

azewiusz commented 7 years ago

On the newest NetBeans 8.2 and with latest plugin from http://plugins.netbeans.org/plugin/70625 I do not see my g4 files under Other Sources tree nodes at all (just after installing ANTLR plugin they disappeared) - they were there on my NB 8.1 version from before few months, also there is no node like "Source ANTLR grammars" in tab "Projects".