Trying to use the vscode-wpilib extension as packaged in FRC-Nix to create a project fails with the error "Cannot create into non empty folder," even though the targeted folder is empty.
Steps to reproduce:
- Open VSCode with
vscode-wpilib extension installed
- Press Control+Shift+P to run "WPILib: Create a new project".
- Select project type as "template" "java" (or "cpp") and "Command Robot"
- Set base folder, project name, and team number
- Click "Generate Project"
- "Cannot create into non empty folder"
This results in just a src folder containing a template project structure with files that are all read-only for some reason, wondering if this is related.
You can see the vscode configuration as tested here. This has also been tested without the FHS version of vscode, with the same results.
Creating a project works perfectly fine with the standard WPILib installer on a traditional Linux system (such as Linux Mint), so I can only assume that this is a FRC-Nix/NixOS problem.
Is there anything I'm missing here? Am I missing a dependency, is this a config issue, or is this a packaging issue?
CC: @Zynh0722, who first brought this issue to my attention.
Trying to use the
vscode-wpilibextension as packaged in FRC-Nix to create a project fails with the error "Cannot create into non empty folder," even though the targeted folder is empty.Steps to reproduce:
vscode-wpilibextension installedThis results in just a
srcfolder containing a template project structure with files that are all read-only for some reason, wondering if this is related.You can see the vscode configuration as tested here. This has also been tested without the FHS version of vscode, with the same results.
Creating a project works perfectly fine with the standard WPILib installer on a traditional Linux system (such as Linux Mint), so I can only assume that this is a FRC-Nix/NixOS problem.
Is there anything I'm missing here? Am I missing a dependency, is this a config issue, or is this a packaging issue?
CC: @Zynh0722, who first brought this issue to my attention.