Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENAMETOOLONG #47

Open
kevinresol opened this issue Jul 24, 2020 · 4 comments
Open

ENAMETOOLONG #47

kevinresol opened this issue Jul 24, 2020 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@kevinresol
Copy link

when converting aws-sdk, encountered something like this: https://github.com/aws/aws-sdk-js/blob/6e552e94b78fe3198ef5fb93d7f0e0ded6f4ffd9/clients/mediaconvert.d.ts#L2561

@haxiomic
Copy link
Owner

haha wow, I wonder what they're doing to generate names like that

I got the error too on macOS

ENAMETOOLONG: name too long, open '.haxelib/aws-sdk/2,719,0/global/aws/mediaconvert/__StringPatternS3MM2VVMMPPEEGGMMPP3AAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8WWEEBBMMLLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMXXMMLLHttpsMM2VVMMPPEEGGMMPP3AAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8WWEEBBMMLLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMXXMMLL.hx'

It looks like a node.js filesystem error. Quite tricky to solve but I'll have a think

@kevinresol
Copy link
Author

kevinresol commented Jul 24, 2020

Manually patched the ts files and seems to generate fine now. Generated almost 80000 files 😅. https://github.com/kevinresol/hxnodejs-aws-sdk

Really well done man.

Perhaps the solution is to detect long type names and somehow encode (maybe MD5) it into a shorter one.

@haxiomic
Copy link
Owner

@kevinresol yeah, that's a good idea – I think I'll take that approach given long names probably don't actually contain any real meaning

@haxiomic
Copy link
Owner

haxiomic commented Jul 24, 2020

I hope it all works after your patch but keen to hear if you run into any issues when using the API

@haxiomic haxiomic self-assigned this Feb 10, 2021
@haxiomic haxiomic added the bug Something isn't working label Feb 10, 2021
@haxiomic haxiomic added this to the 0.20 milestone Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants