drupal-console icon indicating copy to clipboard operation
drupal-console copied to clipboard

[config:export] Path is broken on windows

Open sylvainar opened this issue 4 years ago • 1 comments

Problem/Motivation

I can't export my config because of broken path. That's a big issue since config:export / config:import are two of my most used commands.

In Filesystem.php line 104:

  Failed to create "D:\Profiles\myname\PhpstormProjects\myproject/D:\Profiles\myname\PhpstormProjects\myproject/../sync": mkdir(): No such file or directory.

How to reproduce

Install module, then export config.

  • OS: Windows 10
  • Drupal version: 8.7.10
  • Console version: 1.9.4
  • Console Launcher version: 1.9.4
  • Steps to reproduce: drupal config:export

image

image

Solution

Dunno but it seems related to this issue: https://github.com/hechoendrupal/drupal-console/pull/4154

Quick fix for now has been to rollback to 1.9.2.

sylvainar avatar Nov 14 '19 12:11 sylvainar

I've looked into it (had the same issue) and fixed it in a small patch.

timotheemoulin avatar Dec 27 '19 12:12 timotheemoulin

Thank you for your contribution

LOBsTerr avatar Sep 16 '22 14:09 LOBsTerr