ionide-vscode-fsharp
ionide-vscode-fsharp copied to clipboard
Can't add file to project
Describe the bug
I have a .NET 6 console add. I can't use the "Add Current File to Project" feature.
Steps to reproduce
- Create a new console app
- Create a new .fs file.
- Navigate to the file.
- Choose the aforementioned action.
You get an error as follows:
![image](https://user-images.githubusercontent.com/1781813/173870162-8f3cf67c-e024-49ff-a21d-d009a6ca19ac.png)
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
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.
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.
Just wanted to add that I have the same issue on Mac.
Machine info
- OS: macOS Monterey 12.4
- .NET SDK Version: 6.0.104
- Ionide version: v6.0.6
- CPU: M1 Max (ARM)
@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 Both the normal project/file explorer in VSCode and the F# Solution Explorer are showing up for me.
@mhays118 ok, so this is a separate thing for me - i'll raise a separate issue
Linked to #1753