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

MS Windows - Unable to import library or clone repository because file names are too long #743

Closed
RichGski opened this issue Jul 9, 2024 · 2 comments
Labels
Needs Attention 👋 question Further information is requested type:question An issue that's a question

Comments

@RichGski
Copy link

RichGski commented Jul 9, 2024

In MS Windows I'm getting a bunch of errors because the file names are too long:
rror: unable to create file storage/filestorage_containers_item_drive_list_items_item_getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval_get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_request_builder.go: Filename too long
error: unable to create file storage/filestorage_containers_item_drive_list_items_item_getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval_get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_response.go: Filename too long
error: unable to create file teams/item_channels_item_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_get_response.go: Filename too long
error: unable to create file teams/item_channels_item_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_request_builder.go: Filename too long
error: unable to create file teams/item_channels_item_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response.go: Filename too long
error: unable to create file teams/item_primarychannel_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_get_response.go: Filename too long
error: unable to create file teams/item_primarychannel_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_request_builder.go: Filename too long
error: unable to create file teams/item_primarychannel_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response.go: Filename too long
error: unable to create file teamwork/deletedteams_item_channels_item_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_get_response.go: Filename too long
error: unable to create file teamwork/deletedteams_item_channels_item_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_request_builder.go: Filename too long
error: unable to create file teamwork/deletedteams_item_channels_item_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response.go: Filename too long
error: unable to create file users/item_joinedteams_item_channels_item_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_get_response.go: Filename too long
error: unable to create file users/item_joinedteams_item_channels_item_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_request_builder.go: Filename too long
error: unable to create file users/item_joinedteams_item_channels_item_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response.go: Filename too long
error: unable to create file users/item_joinedteams_item_primarychannel_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_get_response.go: Filename too long
error: unable to create file users/item_joinedteams_item_primarychannel_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_request_builder.go: Filename too long
error: unable to create file users/item_joinedteams_item_primarychannel_doesuserhaveaccessuseriduseridtenantidtenantiduserprincipalnameuserprincipalname_does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_response.go: Filename too long
Updating files: 100% (14540/14540), done.

@RichGski RichGski added the status:waiting-for-triage An issue that is yet to be reviewed or assigned label Jul 9, 2024
@baywet
Copy link
Member

baywet commented Jul 10, 2024

Hi @RichGski
Thanks for using the Microsoft graph SDK and for reaching out.
Have you enabled long path support on your Windows installation?
https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/

@baywet baywet added question Further information is requested status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:question An issue that's a question and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Jul 10, 2024
@RichGski
Copy link
Author

Hi @RichGski Thanks for using the Microsoft graph SDK and for reaching out. Have you enabled long-path support on your Windows installation? https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/
I enabled long path names and it fixed this issue.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs Attention 👋 and removed status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Jul 13, 2024
@baywet baywet closed this as completed Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Attention 👋 question Further information is requested type:question An issue that's a question
Projects
None yet
Development

No branches or pull requests

2 participants