Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug]: Import-Module throw an exception #87

Open
silverhack opened this issue Jan 9, 2024 · 3 comments
Open

[Bug]: Import-Module throw an exception #87

silverhack opened this issue Jan 9, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@silverhack
Copy link
Owner

What happened?
When calling Directory.EnumerateFiles and when a directory does not exist, an exception is raised. This happens when monkey365 is imported.

How to reproduce it
Steps to reproduce the behavior:

  1. What command are you running? Import-Module path/to/monkey365
  2. See error
    Screenshot 2024-01-09 194506

Expected behavior
Import module without errors and to control exceptions.

From where are you running Monkey365?
Please, complete the following information:

  • Resource: [Docker container, workstation) all
  • OS: [e.g. Windows, Linux, etc. ] all
  • PowerShell Version [$PsVersionTable]: all PowerShell versions
  • Monkey365 Version: latest
  • Others:

Additional context
A workaround is to check all paths with Directory.Exists.

@silverhack silverhack added bug Something isn't working status/needs-triage Needs triage and removed status/needs-triage Needs triage labels Jan 9, 2024
@silverhack silverhack self-assigned this Jan 9, 2024
@silverhack
Copy link
Owner Author

Hi all,

This is now fixed on dev branch.

Cheers,

@sssseossss
Copy link

The issue is still relevant. Was it not pushed to the official download repo?

@silverhack
Copy link
Owner Author

Hey @sssseossss,

I'm the only developer for this project and I have been very busy, but I'll try to get some spare time to update the code base with this and other improvements.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants