Coder Social home page Coder Social logo

Build server error about cyclonedx-dotnet HOT 9 CLOSED

cyclonedx avatar cyclonedx commented on July 17, 2024
Build server error

from cyclonedx-dotnet.

Comments (9)

stevespringett avatar stevespringett commented on July 17, 2024 1

0.3.2 published. Will be available shortly.

from cyclonedx-dotnet.

Drewster727 avatar Drewster727 commented on July 17, 2024

Interestingly, when I login as the build service user on the build server, and run the command directly, it works...
image

from cyclonedx-dotnet.

Drewster727 avatar Drewster727 commented on July 17, 2024

Hmm, so I uninstalled 0.3.1 and installed 0.3.2 -- seems to still happen:
image

I am executing the app via powershell start-process:
image
It works outside of the build operation.

Any tips?

from cyclonedx-dotnet.

stevespringett avatar stevespringett commented on July 17, 2024

The path issue seems to be expected behavior. Someone at Microsoft must think that information disclosure in error messages is a good thing.

Regarding execution. I only have the ability to execute from command line. I don't have access to a Windows machine so cannot powershell. It appears to be caught on line 177 which is:

Console.SetCursorPosition(Console.CursorLeft, Console.CursorTop - 1);

Perhaps powershell is doing something weird with the console. Don't know.

from cyclonedx-dotnet.

Drewster727 avatar Drewster727 commented on July 17, 2024

I also just tried loading cyclonedx-dotnet into the local working directory:
image

@stevespringett note that I can run this via powershell on a windows machine outside of the build operation without problems. (same script I'm running in the build)

from cyclonedx-dotnet.

Drewster727 avatar Drewster727 commented on July 17, 2024

@stevespringett https://stackoverflow.com/a/18366631
You may just have to try/catch the cursor manipulation for now... :(

I think it has to do with TFS build operation redirecting output.

Update: confimed my suspicion... when I force redirecting standard output, it blows up on my dev box:
Start-Process -NoNewWindow -Wait -RedirectStandardOutput $true -FilePath "dotnet-cyclonedx.exe" -ArgumentList $bomArgs

from cyclonedx-dotnet.

Drewster727 avatar Drewster727 commented on July 17, 2024

OK, another update... I got around the problem by totally silencing any output from the tool:
Start-Process -WindowStyle Hidden -Wait -FilePath "dotnet-cyclonedx.exe" -ArgumentList $bomArgs | Out-Null

from cyclonedx-dotnet.

stevespringett avatar stevespringett commented on July 17, 2024

Thanks for the stackoverflow link. I removed the setting of cursor. There were two occurrances of this in the code which have since been removed. I pushed 0.3.3 to NuGet and it should be available shortly.

If you could test this and verify that it works without the workaround, that would be great.

Thanks for your patience and help in getting the dotnet plugin to where it needs to be.

from cyclonedx-dotnet.

Drewster727 avatar Drewster727 commented on July 17, 2024

@stevespringett confirmed! 0.3.3 resolved the issue. Thank you!

from cyclonedx-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.