JeremyYao commented on issue #1389:
URL: 
https://github.com/apache/daffodil-vscode/issues/1389#issuecomment-3347999305

   Another thing I'll insert here is that this OmegaEdit code snippet appears 
to be causing the printing to the Java window 
   
   ```Scala
   class boot(iface: String, port: Int, pidfile: String) {
     implicit val sys: ActorSystem = ActorSystem("omega-edit-grpc-server")
     implicit val ec: ExecutionContext = sys.dispatcher
   
     def run(): Unit = {
       val v = OmegaEdit.version()
       val pid = getServerPID()
       val servInfo = s"Ωedit gRPC server (v${v.major}.${v.minor}.${v.patch}) 
with PID $pid"
   
       // write the PID to the pidfile (if specified)
       if (pidfile != null) {
         val file = new File(pidfile)
         val fos = new FileOutputStream(file)
         try
           fos.write(pid.toString.getBytes("UTF-8"))
         finally
           fos.close()
       }
   
       val done =
         for {
           binding <- EditorService.bind(iface = iface, port = port)
           _ = println(s"${servInfo} bound to ${binding.localAddress}: 
ready...")
           done <- binding.addToCoordinatedShutdown(1.second).whenTerminated
           _ = println(s"${servInfo} bound to ${binding.localAddress}: 
exiting...")
         } yield done
   
       Await.result(done, atMost = Duration.Inf)
       ()
   
       // delete the pidfile (if specified)
       if (pidfile != null) {
         val file = new File(pidfile)
         file.delete()
       }
   
     }
   }
   
   ```
   
   in server/scala/serv/src/main/scala/com/ctc/omega_edit/grpc/boot.scala. I 
wonder if it would it be worth investigating `boot.scala`? 


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