question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

#r doesn't work as expected with local libraries

See original GitHub issue

Describe the bug

This issue has two parts, not sure if they are related:

  1. Attempting to load a locally available library using #r with an absolute path fails partially. An error will be printed as if the #r command failed but namespace is available and types are usable if included with a using statement. Regardless, autocompletion of anything involving this local library doesn’t work except when writing the using statement.
  2. Attempting to load a locally available library using #r with a relative path fails completely. It will print out the standard file not found error. I’m not certain if this is intended to work so a clarification would be great. Without using an absolute path, certain (all?) system packaged libraries seem to be loadable just fine which makes me think there is some special handling concerning those.

Both issues are present in Jupyter Notebook, Lab and Console. Tried with various dlls that were either originally downloaded with nuget or built locally.

Did this error occur while using dotnet try or online?

  • dotnet-try (jupyter)
  • online

What kind of error was it?

  • User Interface (UI): For example the output never displayed
  • Service Error: For example “The service is temporarily unavailable. We are working on it”
  • Other: Potential issue with .NET C# Kernel for Jupyter

Screenshots

No screenshots but:

Windows

#r "C:/Users/Mehmet/.nuget/packages/newtonsoft.json/12.0.2/lib/netstandard2.0/Newtonsoft.Json.dll"

Invalid: Command: #r C:/Users/Mehmet/.nuget/packages/newtonsoft.json/12.0.2/lib/netstandard2.0/Newtonsoft.Json.dll

Linux

#r "/home/mehmet/.nuget/packages/newtonsoft.json/12.0.2/lib/netstandard2.0/Newtonsoft.Json.dll"

Invalid: Command: #r /home/mehmet/.nuget/packages/newtonsoft.json/12.0.2/lib/netstandard2.0/Newtonsoft.Json.dll

Please complete the following:

  • OS
    • Windows 10
    • macOS
    • Linux (Ubuntu 18.04)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Safari

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jonsequiturcommented, Jun 22, 2020

I’ve updated the link: https://github.com/dotnet/interactive/blob/master/docs/NotebooksLocalExperience.md.

Note that the Jupyter kernel is now in a new tool, Microsoft.dotnet-interactive, and no longer part of Microsoft.dotnet-try.

1reaction
jonsequiturcommented, Nov 11, 2019

Autocomplete support is not complete so this isn’t indicative of a loading failure. Does code compile successfully against the imported library?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change R default library path using .libPaths in Rprofile. ...
The proper solution is to set environment variable R_LIBS_USER to the value of the file path to your desired library folder as opposed...
Read more >
Every libraries failed to load after upgrading R to 3.6.0
I tried re-installing R but it still does not work. The error message I get is. Error: package or namespace load failed for...
Read more >
Howto: Building R-devel and packages on Windows
R packages with native code (C, Fortran, C++) but without any dependencies on external libraries, should not need any Rtools43-specific customizations; they ...
Read more >
R libraries workflow - High Performance Computing
Do not use the library path /usr/local/usrapps/[group] directly because ... To check whether R has defined the library paths as expected, open R...
Read more >
Cannot debug net6.0-macos Apps - Developer Community
This is a regression. I can no longer debug net6.0-macos apps. It also fails for net6.0-maccatalyst apps. When I hit debug, the following ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found