dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.91k stars 389 forks source link

Dll file reference leads to CS1025 error in latest release #3753

Open dgpratt opened 1 week ago

dgpratt commented 1 week ago

Describe the bug

I have a C# based notebook that prior to the latest update to the VS Code plugin was working fine. After the last plugin update (to v1.0.5530010, released on 2024-10-30, 12:24:40), it seems file (DLL) references cause an error (displayed in the cell output area):

Error: (2,136): error CS1025: Single-line comment or end-of-line expected

To be clear, this is for references in the form:

#r "C:\..\Example.dll"

Nuget references (e.g. #r "nuget: Microsoft.Data.SqlClient") continue to work fine.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

Version: 1.0.553001+f0ec3826954ea1ab829b435418328e4aa8db58e2

Library version: 1.0.0-beta.24530.1+f0ec3826954ea1ab829b435418328e4aa8db58e2

Build date: 2024-11-06T19:03:33.2387602Z

Screenshots

If applicable, add screenshots to help explain your problem.

jonsequitur commented 1 week ago

I'm unable to reproduce this issue.

Are you able to get it to work with a different .dll? Can you provide additional information such as the exact code that's failing?

konst-sh commented 1 week ago

Confirming this, if in the same cell I have a few of #r directives for local .dll files and #r nuget directives it doesn't work anymore for F# lang. If I move #r directives for nugets it into separate cell it still works.

jonsequitur commented 1 week ago

Can you provide code that reproduces the issue? I'm still unable to do so.

konst-sh commented 1 week ago

@jonsequitur this file and a pair of local dll's reproduces the issue for me, the dll's are just two random ones Polyglot notebook reference dll issue.zip