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

Describe with #!set should detect the variable name instead of the prompt text #90

Closed
marckruzik opened this issue Nov 3, 2023 · 2 comments
Labels
bug Something isn't working external

Comments

@marckruzik
Copy link

marckruzik commented Nov 3, 2023

I am using #!set to set a variable my_name in a notebook.

The notebook code:

#!set --name my_name --value @input:"please enter value"

The CLI command (working as intended):

dotnet repl --run test.dib --exit-after-run --input my_name="hello" --output-path output.ipynb

The bug

When using the describe command dotnet repl describe test.dib, it does not detect correctly the variable name. Instead, it detects the prompt text displayed to the user.
Here is a screenshot with the variable name (1) and the name detected by describe (2):
2023_11_03-15h36m41s-C__Windows_System32_cmd exe

I think the variable name detected by describe (2) should be "my_name".

I am using dotnet-repl v0.1.205.

@jonsequitur
Copy link
Owner

jonsequitur commented Nov 7, 2023

This is a bug in Microsoft.DotNet.Interactive.Documents. I'm closing it here and have opened an issue here.

@jonsequitur
Copy link
Owner

jonsequitur commented Nov 8, 2023

Updating to the latest .NET Interactive libraries with the bug fix resolves the problem. I'll publish a new package shortly.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external
Projects
None yet
Development

No branches or pull requests

2 participants