Particle Workbench generates nul file causing fatal git error

Hi all,

Every time I create a new project with Particle Workbench (on Windows), a nul file is made too. When I use Git to make any changes to the folder like stage or add, that single nul file always creates a fatal error.

Unable to delete it in Windows either "Invalid MS-DOS Function"
image

Am I doing something wrong to set up a Workbench Project? Unsure how to work around this easily, any feedback appreciated.

I find that my little nul file gets created when I compile locally. I just tried making a new project but I didn't see it get produced.

You're right that you can't right click delete it, but you can still remove it with rm nul from a command prompt window. Also if you select it in the explorer tab of Visual Studio Code, you can right click delete it from there.

To make sure git doesn't pick it up, simply add nul to your .gitignore file.

1 Like

Ah yes good point, not sure why I didn't think of that earlier. Thank you!

It seems to be coming from %UserProfile%\.particle\toolchains\buildscripts\1.15.0\Makefile around line 44. If I change that to /dev/null instead then it doesn't create the nul file in my source directory.

I was concerned that it might be writing to some random file elsewhere so I watched sh.exe with Process Monitor, it doesn't write to any file. I'm pretty sure that was the intention.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.