Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with the project selection fails with the error #35

Open
kirill-gerasimenko-da opened this issue Feb 21, 2024 · 4 comments
Open

Comments

@kirill-gerasimenko-da
Copy link

kirill-gerasimenko-da commented Feb 21, 2024

Hi!

I've encountered the following behavior:

  1. open up main transient menu
  2. press 'B' to get to the build menu
  3. press 'T' to get to the project selection
  4. select the project
  5. press 'b' to build
  6. there is an error "Opening directory: Not a directory, <FULL PATH TO THE SELECTED PROJECT at 4>

I've traced it down to the sharper--project-root and I understand that assumes that the path is directory, but it's given a selected project file path and thus it fails, but can't figure out how to fix it.

@sebasmonia
Copy link
Owner

Thank you for reporting the issue! I will take a look at it ASAP.

That error seems to be coming from the dotnet CLI rather than Sharper code. I think.
So maybe the invocation sharper does is passing a bad parameter.

@sebasmonia
Copy link
Owner

Two follow up questions:

  • what's your OS and version of dotnet
  • how does you project structure look like? just a single csproj project, no solution? solution in the same directory as the project? nested in a sub-dir? etc.

@kirill-gerasimenko-da
Copy link
Author

Two follow up questions:

  • what's your OS and version of dotnet
  • how does you project structure look like? just a single csproj project, no solution? solution in the same directory as the project? nested in a sub-dir? etc.
  • OS is Ubuntu 22.04
  • dotnet version is the latest available SDK 8
  • structure:
    • solution.sln
      • ProjectFolder
        • project.csproj
      • ProjectFolder
        • project.csproj

@kirill-gerasimenko-da
Copy link
Author

Thank you for reporting the issue! I will take a look at it ASAP.

That error seems to be coming from the dotnet CLI rather than Sharper code. I think. So maybe the invocation sharper does is passing a bad parameter.

I think it tries to open the project by the path which is actually a .csproj file, not the project path. It's exactly the path that I choose when pressing 'T' and select the project. I'd think that it should take the directory of that .csproj file and use it, instead of the file path itself. But I might be wrong :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants