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

Use langver=latest for scripting #21331

Merged
merged 2 commits into from
Aug 8, 2017
Merged

Use langver=latest for scripting #21331

merged 2 commits into from
Aug 8, 2017

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Aug 5, 2017

The Interactive Window was using langver=default. This PR makes it use langver=latest.

Fixes #21327

@jcouv jcouv added Area-Compilers PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. labels Aug 5, 2017
@jcouv jcouv added this to the 15.5 milestone Aug 5, 2017
@jcouv jcouv self-assigned this Aug 5, 2017
> Dim t = (a, 2)
> System.Console.Write(t.a)
«Red»
Public member 'a' on type 'ValueTuple(Of Object,Integer)' not found.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tmat I was surprised by the behavior of VB scripting with tuple names. I'll investigate before merging this PR, but I wondered if the problem might be obvious to you. Any clues?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VB interactive isn't complete. There is a lot of missing pieces currently. I'd not bother writing test for VB.

@tmat
Copy link
Member

tmat commented Aug 5, 2017

We'll also need to change this in the IDE (along with the binding flag to ignore corlib duplicate).

@jcouv
Copy link
Member Author

jcouv commented Aug 5, 2017

Deploying from command-line worked. Verified the fix in dev hive. Thanks

image

@tmat
Copy link
Member

tmat commented Aug 5, 2017

👍

@jcouv jcouv removed the PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. label Aug 5, 2017
@jcouv
Copy link
Member Author

jcouv commented Aug 5, 2017

@dotnet/roslyn-compiler for review. Thanks

@jcouv
Copy link
Member Author

jcouv commented Aug 7, 2017

test windows_debug_vs-integration_prtest please

@jcouv
Copy link
Member Author

jcouv commented Aug 7, 2017

test windows_release_vs-integration_prtest please

@jcouv
Copy link
Member Author

jcouv commented Aug 7, 2017

test windows_debug_vs-integration_prtest please

@jcouv
Copy link
Member Author

jcouv commented Aug 7, 2017

@dotnet/roslyn-compiler for review. Thanks


[Fact]
[WorkItem(21327, "https://github.com/dotnet/roslyn/issues/21327")]
public void InferredTupleNames()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding an equivalent test for VB.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had one, but removed it on advice of Tomas. VB scripting is not sufficiently functional at this point.
The test was producing a missing type error for ValueTuple type from some CompilerServices helper type.

@cston
Copy link
Member

cston commented Aug 7, 2017

LGTM

Copy link
Member

@VSadov VSadov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jcouv jcouv merged commit 995b158 into dotnet:master Aug 8, 2017
@jcouv jcouv deleted the csi-langver branch August 8, 2017 02:04
@filipw
Copy link
Contributor

filipw commented Aug 9, 2017

note that this is already supported in Omnisharp and VS Code too (scripting is using latest lang version) 😄 OmniSharp/omnisharp-roslyn#935

333fred added a commit to 333fred/roslyn that referenced this pull request Aug 10, 2017
…-literal-text

* dotnet/features/ioperation:
  Fix NamedArgumentInParameterOrderWithDefaultValue test for new IOperation output.
  EnC and EE cleanup (dotnet#21226)
  Fix crash when encountering a parenthesized expression when converting an if to a switch.
  this makes OOM to crash OOP process. this won't crash VS, instead it will show info bar and notify users to close VS and re-open.
  Turn on ref assemblies in all projects (dotnet#21346)
  Re-baseline some emit tests
  Move MakeFrames logic into Analysis
  Use langver=latest for scripting (dotnet#21331)
  Enable skipped tests and fix them (dotnet#21335)
  Replace project reference with linked file
  removed left out from deleted esent code.
@jcouv jcouv mentioned this pull request Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants