#r doesn't work as expected with local libraries
See original GitHub issueDescribe the bug
This issue has two parts, not sure if they are related:
- 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 theusing
statement. - 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:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 ofMicrosoft.dotnet-try
.Autocomplete support is not complete so this isn’t indicative of a loading failure. Does code compile successfully against the imported library?