【问题标题】:Is fsbolero's runner, `bolero-live`, open source and if so, where is the source?fsbolero 的跑步者 `bolero-live` 是开源的吗?如果是,源代码在哪里?
【发布时间】:2020-06-03 08:40:36
【问题描述】:

我在获取修改后的 bolero 应用程序以执行 HotReload 时遇到问题。问题似乎在bolero-live 中,如错误日志的顶部所示(为方便起见插入了换行符)。然而,bolero-live 的源代码似乎不可用,尽管存在客户端和服务器项目的参考库代码on github。我欢迎任何见解。

fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLTL27BTITCT", Request id "0HLTL27BTITCT:00000001": 
      An unhandled exception was thrown by the application.
System.IO.DirectoryNotFoundException: 
      Could not find a part of the path '
          /mnt/drive1/testproj/test1/src/test1.Serve/bin/Debug
            /netstandard2.0/dist/_framework/_bin/test1.Client.dll
          '
   at Interop.ThrowExceptionForIoErrno(
          ErrorInfo errorInfo, String path, Boolean isDirectory 
          ,Func`2 errorRewriter
          )
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(
          String path, OpenFlags flags, Int32 mode
          )
   at System.IO.FileStream..ctor(
          String path, FileMode mode, FileAccess access, 
          FileShare share, Int32 bufferSize, FileOptions options
          )
   at System.IO.FileStream..ctor(
          String path, FileMode mode, FileAccess access
          ,FileShare share
          )
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at Elmish.HotReload.Bolero.Cli.ListenerController.Update() in
          /root/TeamCity/buildAgent/work/bbeb18eb622e1e0d/src
             /bolero-live/ListenerController.fs
          :line 39
   at lambda_method(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor
          .AwaitableResultExecutor.Execute(
            IActionResultTypeMapper mapper
            ,ObjectMethodExecutor executor
            ,Object controller, Object[] arguments
            )
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
          .InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
          .InvokeNextActionFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
          .Rethrow(ActionExecutedContext context)

【问题讨论】:

    标签: bolero


    【解决方案1】:

    bolero-live 与 Bolero HotReload 模板实现不同。 bolero-live 也应该重新加载底层 dll,而不仅仅是前端。可以找到源代码here

    不幸的是,它没有得到大量维护或与最新的 Bolero 版本保持同步(主要是因为我没有时间维护它)。该异常似乎表明cli工具本身无法从FCSWatch中找到新制作的dll。

    【讨论】:

    • FCSWatch 似乎已更新为每个 0.7.9 - 2019-05-15 以专门包含 Bolero。但是,它表达了完全相同的问题。 :)
    • 该版本中的更新是重新加载 Bolero 的分发文件,是的,但仍需要刷新才能看到更新。 bolero-live 无需刷新即可启用热重载。
    【解决方案2】:

    bolero-live 似乎只是 github.com 上的 FCSWatch

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-03
      • 2014-08-06
      • 2011-01-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多