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

File paths are too long for Windows dev users #27466

Closed
LeeDr opened this issue Dec 19, 2018 · 4 comments
Closed

File paths are too long for Windows dev users #27466

LeeDr opened this issue Dec 19, 2018 · 4 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Views Data Views code and UI - index patterns before 8.0 loe:medium Medium Level of Effort

Comments

@LeeDr
Copy link
Contributor

LeeDr commented Dec 19, 2018

Kibana version: master

Possibly related to #26858

Elasticsearch version: n/a

Server OS version: Windows 10

Browser version: n/a

Browser OS version: n/a

Original install method (e.g. download page, yum, from source, etc.): git

Describe the bug: I'm hitting Filename too long errors (typically when using the backport utility) on these files;

error: unable to create file src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/loading_indices/__jest__/__snapshots__/loading_indices.test.js.snap: Filename too long
error: unable to create file src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_index_pattern/components/status_message/__jest__/__snapshots__/status_message.test.js.snap: Filename too long
error: unable to create file src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/step_time_field/components/advanced_options/__jest__/__snapshots__/advanced_options.test.js.snap: Filename too long

Steps to reproduce:

  1. I don't know if/why I'm only seeing the errors in the backport tool node scripts/backport.js
  2. I did change a group policy on my Windows machine to enable long paths as described here and rebooted; https://social.technet.microsoft.com/Forums/en-US/535ec156-de98-43ed-8c46-10a9773c8b12/gpo-enable-win32-long-paths?forum=winserverGP
  3. I tried the backport tool in Windows PowerShell, CMD, and git-bash, and get the same error in all 3.

Expected behavior:

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context: My pwd is /c/Users/LeeDr/git/kibana (26 chars)

@tylersmalley thought there was a test for path lengths?

@LeeDr LeeDr added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Data Views Data Views code and UI - index patterns before 8.0 labels Dec 19, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@lukeelmers lukeelmers added :AppArch and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Mar 27, 2019
@alexh97 alexh97 added this to To do in kibana-app-arch Aug 10, 2019
@alexh97 alexh97 added the loe:medium Medium Level of Effort label Feb 19, 2020
@alexh97 alexh97 moved this from To triage to Short Horizon in kibana-app-arch Feb 19, 2020
@marius-dr
Copy link
Member

In the Windows API, the maximum length for a path is MAX_PATH, which is defined as 260 characters.

@mattkime
Copy link
Contributor

This will be addressed by #51322 as a side affect of moving code to a new platform plugin.

@ppisljar ppisljar moved this from Short Horizon to 7.8 in kibana-app-arch Apr 7, 2020
@mattkime mattkime moved this from 7.8 to 7.9 in kibana-app-arch Jun 4, 2020
@mattkime
Copy link
Contributor

mattkime commented Jun 8, 2020

I'm not sure if this is still relevant but - #66781 should have shortened a number of relevant paths.

@mattkime mattkime closed this as completed Jun 8, 2020
kibana-app-arch automation moved this from 7.9 to Done in current release Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Views Data Views code and UI - index patterns before 8.0 loe:medium Medium Level of Effort
Projects
kibana-app-arch
  
Done in current release
Development

No branches or pull requests

6 participants