ionide-vscode-fsharp icon indicating copy to clipboard operation
ionide-vscode-fsharp copied to clipboard

Can't add file to project

Open isaacabraham opened this issue 2 years ago • 7 comments

Describe the bug

I have a .NET 6 console add. I can't use the "Add Current File to Project" feature.

Steps to reproduce

  1. Create a new console app
  2. Create a new .fs file.
  3. Navigate to the file.
  4. Choose the aforementioned action.

You get an error as follows:

image

Expected behaviour

The file is added to the project.

Machine info

  • OS: Windows 11
  • .NET SDK version: 6.0.23
  • Ionide version: 6.0.6

isaacabraham avatar Jun 15 '22 15:06 isaacabraham

The only additional comment I have is that I don't have the Ionide / F# project explorer in the sidebar. It's not showing when I right-click to add it in either.

isaacabraham avatar Jun 15 '22 15:06 isaacabraham

Missing project explorer info (and presumably by extension project info at all due to failures during project cracking/workspace initialization) would lead to this behavior. It would be nice if the we could add a condition like 'projects are loaded' to the commands to hide them until we're initialized.

baronfel avatar Jul 17 '22 23:07 baronfel

Just wanted to add that I have the same issue on Mac.

image

Machine info

  • OS: macOS Monterey 12.4
  • .NET SDK Version: 6.0.104
  • Ionide version: v6.0.6
  • CPU: M1 Max (ARM)

mhays118 avatar Jul 22 '22 09:07 mhays118

@mhays118 is your project explorer also not showing up?

@baronfel if you want me to use a "diagnostics" version of Ionide to get you debug info, just let me know.

isaacabraham avatar Jul 24 '22 19:07 isaacabraham

@isaacabraham Both the normal project/file explorer in VSCode and the F# Solution Explorer are showing up for me.

mhays118 avatar Jul 25 '22 13:07 mhays118

@mhays118 ok, so this is a separate thing for me - i'll raise a separate issue

isaacabraham avatar Jul 25 '22 18:07 isaacabraham

Linked to #1753

isaacabraham avatar Jul 25 '22 18:07 isaacabraham