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.

Open namespace issues

See original GitHub issue

Few issues I’ve come across repeatedly:

  1. Rider sometimes adds the open above the first line (above namespace/module), not sure why
  2. Rider cannot deal very well with multiple namespaces in the same file, it gets confused where to put the open causing the open to have no effect on the code you’re writing.
  3. Rider does not take AutoOpen into account when it opens from a function suggestion, causing the auto opened module to be added unnecessarily into the completion too.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
auduchinokcommented, Feb 11, 2020

@NinoFloris Yes, this case wasn’t implemented yet. Thanks for repro!

1reaction
NinoFloriscommented, Feb 11, 2020

So quick fix ignores the parent class and imports just the namespace which is wrong in its own way without symbol fixup at the import site, while code completion tries to import the parent class like I said.

it’s super simple

namespace ReproCs
{
    public class Foo
    {
        public class Bar
        {
        }
    } 
}
module ReproFs

let bar() = Bar // try either quick fix or code completion for the fireworks.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot DFSN access failures - Windows Server
This article provides a solution to solve Distributed File System Namespace (DFSN) access failures. Applies to: Windows 10 - all editions, ...
Read more >
DFS namespace problem - Windows Server
I've been using DFS namespace and replication for file sharing on 2 servers in a small office for years with no problems until...
Read more >
Long pause when accessing DFS namespace
Some more detail on the problem: The namespace access delay is generally 1 - 10 seconds long and seems to occur when a...
Read more >
DFS namespace issue with Office applications, My ...
So I'm in the process of changing the folder redirection to point to server name instead of DFS. the symptom is when they...
Read more >
How do I fix a "type or namespace name could not be ...
In my case, the problem originated from renaming the folder. Even though I updated the namespace of all the classes inside that folder,...
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