mbeckerle commented on issue #57:
URL: https://github.com/apache/daffodil-vscode/issues/57#issuecomment-993932816


   Ok, so ethernetIP has no global elements because its test elements are 
defined in the TDML files. 
   
   It's a schema that just defines global types, and the notion is that schemas 
that use eithernetIP, like PCAP, but also some other schemas, they get the job 
of defining the elements. 
   
   No reason not to change this and add some test elements directly to 
ethernetIP however so that it can be debugged directly without need of anything 
from the TDML file.
   
   So go ahead and add:
   
       <xs:element name="testRoot">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="Ethernet" type="eth:Ethernet"/>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
   
   You will need to create test data from testEthernet.tdml also. There are no 
files of test data in ethernetIP. The test data is all expressed in hex in the 
tdml file. 
   
   I know I said for sure see if you can debug PCAP/EthernetIP, but.... turns 
out you've hit PCAP and ethernetIP in this 3.2.0 release transition currently. 
   
   I was in the middle of updating all the various published DFDL schemas to 
reference 3.2.0 daffodil, and update other libraries, etc. when we found the 
daffodil 3.2.0 release has a bad unparser bug that is preventing ethernetIP and 
hence PCAP from working with checksum calculations, which are a primary feature 
3.2.0 was supposed to enable.  
   
   Suggest you back out to the prior tagged release of ethernetIP (tag 1.0.0), 
and prior git hash for PCAP the ghit hash you want is one back from the current 
master branch head, so git hash 87b4b28cc56a8ce9383af2f52711182a87013a3c. 
   
   Or do git checkout master; git checkout HEAD^ 
   
   I just did this and it worked:
   
   cd dfdl-ethernet # where I have ethernetIP cloned
   git checkout 1.0.0
   sbt test
   sbt publishLocal
   cd ../dfdl-pcap
   git checkout master
   git checkout HEAD^
   sbt test
   
   All tests pass, so at this point you should be able to debug PCAP on some of 
its data files which are under src/test/resources/com/tresys/pcap/data. 
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to