If directory folders are named too long, unity new project will crash upon initializing 2019.2.0a9)

Problem:
Unity new project crashes upon initializing a new project with long directory

Error message:

The only thing that it does is create a blank Temp folder

To Reproduce:
On windows 10

  1. Create a new project called “Really long project name that will most likely crash unity 2019”, and put that in a folder called “Really ridiculously long folder name that is so insanely long it will almost certainly crash unity 2019 an throw and error message”
  2. Set to HDRP preview (not sure if this is important)
  3. Wait for error message

Could you please submit a bug report for this issue and reply in here with the issue ID?

For some reason it wouldn’t upload. I’m not sure if it was due to the long file name or not.