monkey2 icon indicating copy to clipboard operation
monkey2 copied to clipboard

MX2 Generates Names Too Long [STOPPER]

Open XANOZOID opened this issue 7 years ago • 1 comments

Problem

I only had a structure that was 4 folders deep(from the same directory as monkey2) and one of the filenames was far too long (261 characters).

I found that the actual file name was 125 characters long which, combined with the path of 136 characters, causes an error.

Temporary Fix

Moving the project folder higher up the chain I was able to finally compile the project.


Helpful Findings

  • Filenames of the actual project (not modules) are reasonably lengthed.
  • Filenames of imported module files are incredibly long, 125 characters long
  • Subfolder deepness is (speculatively) not a part of the problem.

Primary problem: Files imported from a module are extremely long Combining problem: Because full paths are being used, the deeper the root of the target project is, the primary problem is intensified.


Extra Info

Click To View As stated in the main problems, I think somehow using relative paths instead of full paths will heavily add room to filenames. But the most applicable solution would be to heavily shorten files imported via modules. Being over 100 characters long for the name alone is almost unusable in the compiler.

Environment:

  • Windows 10
  • MSVC 2017
  • x64 build
  • Debug & Release

Error message: c1xx: fatal error C1081 file name too long

Generated files: image

XANOZOID avatar Feb 20 '18 01:02 XANOZOID

related to this issue: https://github.com/blitz-research/monkey2/issues/102

With gcc the error is not explicit which makes the troubleshooting troublesome.

abakobo avatar Feb 20 '18 09:02 abakobo