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

Microsoft.VisualBasic.dll is not loaded by code typed in the immediate window #19526

Open
ivanbasov opened this issue May 15, 2017 · 2 comments

Comments

@ivanbasov
Copy link
Contributor

Attempted to migrate the test to xUnit. Still see the same issue. That is, I can reproduce it locally without any frameworks. It is not caused by Tao. It seems to be a regression in VB compiler services.

Here is a repro scenario:

  1. Create a VB console application with the code.
Module Module1
    Sub Main()
        'Dim x = (Function(val) (val + val))(1)
        System.Diagnostics.Debugger.Break()
    End Sub
End Module
  1. Start debugging up to the breakpoint.
  2. Type ?(Function(val) (val + val))(1) in the immediate window.
    Expected
    2
    Actual
    error BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.AddObject' is not defined.
  3. Also Microsoft.VisualBasic.dll is not loaded in Debug -> Modules.
  4. Uncomment the line in the code and run it again.
  5. ?(Function(val) (val + val))(1) will work in the immediate window.
  6. Microsoft.VisualBasic.dll will be loaded in Debug -> Modules.

Trying to add a reference explicityl, you would get the following message

A reference to 'Microsoft.VisualBasic' could not be added. This component is already automatically referenced by the build system.

Based on #8724
Will migrate tests for #8724 from Tao to xUnit but keep the failing one skipped for a while.

@jinujoseph
Copy link
Contributor

jinujoseph commented Jun 8, 2017

Tracked here

@sharwell sharwell reopened this Oct 31, 2023
@sharwell
Copy link
Member

This issue is different from the linked issue. I'm modifying the integration test to use this expression:

(Function(val As Integer) (val + val))(1)

The original expression (where val is not typed as Integer) cannot be evaluated by the debugger expression evaluator. This issue tracks that specific failure.

sharwell added a commit to sharwell/roslyn that referenced this issue Oct 31, 2023
sharwell added a commit to sharwell/roslyn that referenced this issue Nov 3, 2023
@arunchndr arunchndr added this to the Backlog milestone Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants