Skip to content

vscode-wpilib: Project creation fails with "Cannot create into non empty folder" #64

@nullcubee

Description

@nullcubee

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:

  1. Open VSCode with vscode-wpilib extension installed
  2. Press Control+Shift+P to run "WPILib: Create a new project".
  3. Select project type as "template" "java" (or "cpp") and "Command Robot"
  4. Set base folder, project name, and team number
  5. Click "Generate Project"
  6. "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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions