interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Error from #r seem to suggest it is referencing a feed not specified by #i command

Open gitmadness opened this issue 3 years ago • 4 comments

Issue Type: Bug

  1. Run a notebook with #i "nuget:https://abc/index.json"
  2. Replace the #i statement with #i "nuget:https://api.nuget.org/v3/index.json
  3. Running notebook eventually fail with error:

Error: C:\Program Files\dotnet\sdk\6.0.202\NuGet.targets(130,5): error : Unable to load the service index for source https://abc/index.json.

It shouldn't remember there's abc/index.json right? I don't see any info at https://github.com/dotnet/interactive/blob/main/docs/magic-commands.md. I also restarted Azure Data Studio and reloaded the notebook but still getting the error about abc/index.json.

Notebook running from Azure Data Studio 1.36.1.

Extension version: 1.0.3175020 Azure Data Studio version: azuredatastudio 1.36.1 (e56e1d931bbb110fe8f24751423c4e184bb8f22d, 2022-04-21T21:25:10.399Z) OS version: Windows_NT x64 10.0.25105 Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2904)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.96GB (20.11GB free)
Process Argv
Screen Reader no
VM 0%

gitmadness avatar Apr 25 '22 19:04 gitmadness

Code referencing abc/index.json:

#i "nuget:https://abc/index.json"
#r "nuget:Microsoft.DotNet.Interactive.Kql,*-*"

Code with the error after replacing abc/index.json with Nuget.org feed:

#i "nuget:https://api.nuget.org/v3/index.json"
#r "nuget:Microsoft.DotNet.Interactive.Kql,*-*"

gitmadness avatar Apr 25 '22 19:04 gitmadness

We don't currently support removing a feed, so your second #i submission is adding another feed rather than replacing the first one.

This would probably be a useful thing to support, though.

jonsequitur avatar Apr 29 '22 20:04 jonsequitur

Is there a way to tell it to not use a feed? Just thinking how to unblock myself.

Agreed on adding support to undo a "#i".

From: Jon Sequeira @.> Sent: Friday, April 29, 2022 1:08 PM To: dotnet/interactive @.> Cc: Tom Wu @.>; Author @.> Subject: Re: [dotnet/interactive] Error from #r seem to suggest it is referencing a feed not specified by #i command (Issue #1988)

We don't currently support removing a feed, so your second #i submission is adding another feed rather than replacing the first one.

This would probably be a useful thing to support, though.

Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Finteractive%2Fissues%2F1988%23issuecomment-1113679973&data=05%7C01%7CTom.Wu%40microsoft.com%7C267f324373f14b8f6dff08da2a1be94c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637868623779607436%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=cSiLSvxOXem4fgjZydKEgsIDyQck0Ul8AGhS7rwIDyE%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAHUFIEI62RMSC6R4AJCOGE3VHQ6QXANCNFSM5UJSZF4A&data=05%7C01%7CTom.Wu%40microsoft.com%7C267f324373f14b8f6dff08da2a1be94c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637868623779607436%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9UNWvTtZCHxZK2EA0D9fH5TmqVpz7315InLO69Q7rfk%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.@.>>

gitmadness avatar Apr 29 '22 21:04 gitmadness

Is there a way to tell it to not use a feed? Just thinking how to unblock myself.

If the feed is in your user-level nuget.config, then you would need to remove it from there.

jonsequitur avatar Jun 21 '22 17:06 jonsequitur