Hi,

For me the error reported doesn't really relate to code generation at all ... 
so it's strange that this solved the problem.
It might be co-related as the RawSocketChannelTest seems to be missing the 
RequirePcap classes, which are what we use to automatically disable tests if 
your machine doesn't support LIBPCAP.

If you just open a freshly checked out PLC4X in your IDE ... yes it will be 
missing a lot as most of the driver code is missing. 
That is true ... jut I think the CNFE you reported actually has nothing to do 
with that .. .

But happy you managed to get up and running ... and yes ... we should mention 
that in our readme in a very prominent location.

Chris



Am 16.07.20, 11:32 schrieb "Julian Feinauer" <[email protected]>:

    Hey,

    I think we cant as we use code generation.
    Normally your mvn generate-sources should do the trick, we have to have a 
look why it didnt.


    BUT we should definetly write it more prominent in the README.md, I think!

    Julian

    Am 16.07.20, 10:29 schrieb "Xiangdong Huang" <[email protected]>:

        Hi,

        I just checkout to the develop branch and want to run the project in 
IDEA.

        However,  the IDEA says, class not found
        Class: RequirePcap
          Location:
        org.apache.plc4x.java.utils.rawsockets.netty.RawSocketChannelTest

        Actually, I can indeed find the RequirePcap source code from the repo.

        I tried to run `mvn generate-sources` but it does not work.

        Then I tried to run `mvn package -DskipTests`. Fortunately, it works. 
After
        running the command, I can execute example codes in IDEA.

        My question is, can we avoid to let new developers/users run the 
command?
        (or leave the tips in a  conspicuous place).

        Best,
        -----------------------------------
        Xiangdong Huang
        School of Software, Tsinghua University

         黄向东
        清华大学 软件学院


Reply via email to