Skip to content

BCPT Performance Toolkit Setup new project fails #8173

@mjmatthiesen

Description

@mjmatthiesen

Please include the following with each issue:

1. Describe the bug
When trying to create a new bcpt project the creation instantly fails.
Big improvement would be to separate the under the hood commands, like the bcpt deploy. It would be easier if I could just run the the powershell to install the app file myself.

2. To Reproduce
Steps to reproduce the behavior:

  1. open vs code
  2. f1
  3. bcpt
  4. select setup new
  5. docker
  6. pick desired (running) container
  7. get error
{
  "errorCode": -1,
  "stackTrace": "at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at ManagementEndpoint.AdminServiceConnectionFactory.FromDockerInstance(DockerBCInstance instance) in D:\\a\\_work\\1\\s\\src\\BCPTService\\ManagementEndpoint\\AdminServiceConnectionFactory.cs:line 23
   at BCPTLibrary.Docker.DockerDiscovery.GetEnvironments(DockerBCInstance instance, CancellationToken cancellationToken) in D:\\a\\_work\\1\\s\\src\\BCPTService\\BCPTLibrary\\Docker\\DockerDiscovery.cs:line 70
   at BCPTService.Commands.Base.EnvironmentCommandBase.<GetEnvironments>d__17.MoveNext() in D:\\a\\_work\\1\\s\\src\\BCPTService\\BCPTService\\Commands\\Base\\EnvironmentCommandBase.cs:line 64
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at BCPTService.Commands.ListEnvironmentsCommand.<Execute>d__5.MoveNext() in D:\\a\\_work\\1\\s\\src\\BCPTService\\BCPTService\\Commands\\ListEnvironmentsCommand.cs:line 26
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at BCPTService.CLI.CommandLineService.<Execute>d__3.MoveNext() in D:\\a\\_work\\1\\s\\src\\BCPTService\\BCPTService\\CLI\\CommandLineService.cs:line 33",
  "message": "Sequence contains no matching element",
  "data": {},
  "hResult": -2146233088
}

3. Expected behavior
Don't error

4. Actual behavior
Errors

5. Versions:

  • AL Language: 16.2.1869542
  • Visual Studio Code: 1.106.3 (system setup)
  • BCPT: 1.0.1857523
  • Business Central: 26.0
  • List of Visual Studio Code extensions that you have installed: al, bcpt
  • Operating System:
    • Windows
    • Linux
    • MacOS

Final Checklist

Please remember to do the following:

  • Search the issue repository to ensure you are reporting a new issue

  • Reproduce the issue after disabling all extensions except the AL Language extension

  • Simplify your code around the issue to better isolate the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions