Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Issue with fsproj-file location #79

@viktorvan

Description

@viktorvan

tl dr;
Could it be a reasonable default to look for fsproj-files in the current folder and any parent folders recursively?

According to the plugin documentation, opening an .fs-file will load any fsproj-file in that directory.

And some experimentation will show this to be true :)
With the following project structure:

  • Project.fsproj
  • Library.fs
  • Folder/File1.fs
  • Folder/File2.fs

Given that Library.fs opens modules from File1 and File2 and
given that File2 opens a module from File1.

  1. I can open a vim-session for Library.fs an it will resolve any modules correctly because if will have loaded Project.fsproj.

  2. If I start a new vim-session and start with opening File2 it will not be able to resolve the module in File1 because Project.fsproj will not be loaded since it is located in a parent folder.

  3. However if I start a new vim-session and open Library.fs (which will load Project.fsproj) and then open File2 it will resolve the modules in File1 since the project file already is loaded.

Could we solve 2. by letting the plugin search for fsproj-files in parent directories?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions