libgit2 / libgit2/libgit2sharp
Unusable due to exceptions in both Linux and Windows
Aberta
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- C#
- Estrelas
- 3.5k
- Forks
- 925
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Hi,
I have been attempting to use your very nice looking tool.
Unfortunately I continiualy get different exceptions basedon OS
Windows:
PS C:\Git\OM2\om2-github-actions> Find-GitRepository
format-default: Exception has been thrown by the target of an invocation.
Ubuntu running PWSH
PS /mnt/c/Git/OM2/om2-github-actions> Import-Module LibGit2
MethodInvocationException: Exception calling "Register" with "1" argument(s): "The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception."
An error has occurred that was not properly handled. Additional information is shown below. The PowerShell process will exit.
Unhandled exception. System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
---> System.DllNotFoundException: Unable to load shared library 'git2-15e1193' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
/opt/microsoft/powershell/7/git2-15e1193.so: cannot open shared object file: No such file or directory
/home/tomer/.local/share/powershell/Modules/LibGit2/0.9.1/bin/git2-15e1193.so: cannot open shared object file: No such file or directory
/opt/microsoft/powershell/7/libgit2-15e1193.so: cannot open shared object file: No such file or directory
/home/tomer/.local/share/powershell/Modules/LibGit2/0.9.1/bin/libgit2-15e1193.so: cannot open shared object file: No such file or directory
/opt/microsoft/powershell/7/git2-15e1193: cannot open shared object file: No such file or directory
/home/tomer/.local/share/powershell/Modules/LibGit2/0.9.1/bin/git2-15e1193: cannot open shared object file: No such file or directory
/opt/microsoft/powershell/7/libgit2-15e1193: cannot open shared object file: No such file or directory
/home/tomer/.local/share/powershell/Modules/LibGit2/0.9.1/bin/libgit2-15e1193: cannot open shared object file: No such file or directory
at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()
at LibGit2Sharp.Core.NativeMethods..cctor()
--- End of inner exception stack trace ---
at LibGit2Sharp.Core.NativeMethods.RemoveHandle()
at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject.Finalize()
[1] 9021 IOT instruction pwsh
I get the feeling I am missing something
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Reproduza as falhas relatadas executando Find-GitRepository no Windows e importando LibGit2 no Ubuntu usando PowerShell. Inspecione como o LibGit2Sharp carrega a biblioteca nativa git2-15e1193 e verifique se o módulo é carregado e se a descoberta do repositório funciona sem exceções específicas da plataforma.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- csharp, git, powershell
- Domínio
- operating-systems, tooling
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100