lrbarber commented on issue #58:
URL: https://github.com/apache/daffodil-vscode/issues/58#issuecomment-3151839171

   I just accidentally reversed the names of the data file and the schema files 
when parsing in VSCode... this resulted in a blocking pop-up SDE error notice.
   
   <img width="700" height="250" alt="Image" 
src="https://github.com/user-attachments/assets/3d35a016-9df1-421e-9dc6-5b16162a2410";
 />
   
   The code was expecting an XML schema but that's not what it received.
   
   I _think_ that the reason this happened now vs the other schema errors I 
tested is that this error was detected in a different portion of the code. It 
was still trying to read XML rather than trying to verify valid DFDL syntax. 
   The Terminal window contains the following info:
   
   > org.apache.daffodil.debugger.dap.DAPCompiler$CompilationFailed: Schema 
Definition Error: Error loading schema due to 
java.nio.charset.MalformedInputException: Input length = 1
   Schema context: Location in C:\Users\X\Documents\River\rug.rdds, Schema 
Definition Error: Error loading schema due to 
java.nio.charset.MalformedInputException: Input length = 1
   Schema context: Location in C:\Users\X\Documents\River\rug.rdds
           at 
org.apache.daffodil.debugger.dap.DAPCompiler$$anon$1.$anonfun$compile$2(Compiler.scala:52)
           at cats.MonadError.$anonfun$ensureOr$1(MonadError.scala:41)
           at println @ 
com.monovore.decline.effect.CommandIOApp$.addVersionFlag(CommandIOApp.scala:67)
           at ensureOr$extension @ 
org.apache.daffodil.debugger.dap.DAPCompiler$$anon$1.compile(Compiler.scala:52)
           at map @ 
org.apache.daffodil.debugger.dap.DAPCompiler$$anon$1.compile(Compiler.scala:53)
           at map @ 
org.apache.daffodil.debugger.dap.Parse$.apply(Parse.scala:89)
           at flatMap @ 
org.apache.daffodil.debugger.dap.Parse$.apply(Parse.scala:87)
           at println @ 
com.monovore.decline.effect.CommandIOApp$.addVersionFlag(CommandIOApp.scala:67)
           at map @ 
org.apache.daffodil.debugger.dap.Parse$Debugee$LaunchArgs$Manual.data(Parse.scala:252)
           at flatMap @ 
org.apache.daffodil.debugger.dap.Parse$.$anonfun$debugee$11(Parse.scala:771)
           at ifM$extension @ 
org.typelevel.log4cats.slf4j.internal.Slf4jLoggerInternal$Slf4jLogger.info(Slf4jLoggerInternal.scala:99)
  
   
   
   


-- 
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