Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

core cycler invalid search path specified "%lib%" #65

Closed
extrifixation opened this issue Jun 7, 2024 · 4 comments
Closed

core cycler invalid search path specified "%lib%" #65

extrifixation opened this issue Jun 7, 2024 · 4 comments
Labels
can't reproduce The issue could not be reproduced

Comments

@extrifixation
Copy link

at startup, the terminal displays the following error:

Add-Type : (0) : Warning, treated as an error: In "environment variable LIB" -- "The system cannot find the
specified path. " invalid search path specified "%lib%"
(1) : using System;
C:\CoreCycler-v0.9.5.0alpha3\script-corecycler.ps1:593 sign:1

  • Add-Type -ErrorAction Stop -Name PowerUtil -Namespace Windows -Member ...
  •   + CategoryInfo          : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Except
     ion
      + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
    
@sp00n
Copy link
Owner

sp00n commented Jun 7, 2024

Huh, that's a weird one.

The code block mentioned there is importing some C#/.NET code to try to prevent a shutdown while the script is running, and while importing that code the C# code itself throws this error.
I'm not sure what's going on there, it's somehow trying to access an environment variable lib, which isn't mentioned in the code to be imported. 🤷

Do you maybe work with Visual Basic, MSBuild, etc, where this variable would've been set/changed/overridden?

@extrifixation
Copy link
Author

I've worked in codeblocks and visual studio, I'll try to figure it out.

@sp00n
Copy link
Owner

sp00n commented Aug 20, 2024

Did you figure this one out?

@sp00n sp00n added the can't reproduce The issue could not be reproduced label Aug 20, 2024
@sp00n
Copy link
Owner

sp00n commented Nov 11, 2024

Apparently you did. 🙃

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
can't reproduce The issue could not be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants