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

invalid path on linux #1353

Closed
ivanjx opened this issue Jul 21, 2023 · 1 comment
Closed

invalid path on linux #1353

ivanjx opened this issue Jul 21, 2023 · 1 comment

Comments

@ivanjx
Copy link

ivanjx commented Jul 21, 2023

vscode wont show the correct error because moq uses the wrong path for the error message such as:

[xUnit.net 00:00:00.50]     server.Tests.Services.Registration.RegistrationServiceTest.SendOtpAsync_RateLimit [FAIL]
  Failed server.Tests.Services.Registration.RegistrationServiceTest.SendOtpAsync_RateLimit [39 ms]
  Error Message:
   Moq.MockException : ITimeService.Now invocation failed with mock behavior Strict.
All invocations on the mock must have a corresponding setup.
  Stack Trace:
     at Moq.FailForStrictMock.Handle(Invocation invocation, Mock mock) in C:\projects\moq4\src\Moq\Interception\InterceptionAspects.cs:line 182
   at Moq.Mock.Moq.IInterceptor.Intercept(Invocation invocation) in C:\projects\moq4\src\Moq\Interception\Mock.cs:line 27
   at Moq.CastleProxyFactory.Interceptor.Intercept(IInvocation underlying) in C:\projects\moq4\src\Moq\Interception\CastleProxyFactory.cs:line 107
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.ITimeServiceProxy.get_Now()
   at server.Services.Registration.RegistrationService.SendOtpAsync(String email, String username) in /home/user/Documents/projects/server/server/Services/Registration/RegistrationService.cs:line 136
   at server.Tests.Services.Registration.RegistrationServiceTest.SendOtpAsync_RateLimit() in /home/user/Documents/projects/server/server.Tests/Services/Registration/RegistrationServiceTest.cs:line 118
--- End of stack trace from previous location ---

related microsoft/vscode-dotnettools#278

@stakx
Copy link
Contributor

stakx commented Jul 21, 2023

Closing for several reasons:

  • This issue is missing a minimally complete code example thst reproduces the issue.
  • The issue isn't clearly stated. The error message does not contain any "path" at all. Also, what kind of path are you speaking of? File paths such as in the stack trace? Windows file paths despite you being on a Linux machine? If so, that's very likely beyond our control.

@stakx stakx closed this as completed Jul 21, 2023
@devlooped devlooped locked and limited conversation to collaborators Sep 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants