Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

starterkit-twig-base/starterkit-twig-demo styleguide files not found #19

@mortona42

Description

@mortona42

Picking either of these options when I install gives me this error when I tried to generate:

configuring pattern lab... your styleguide won't render because i can't find your styleguide files. are you sure they're at .\C:\Users\Andrew\sites\sinceileftyou3\public\wp-content\themes\since ileftyou\pattern-lab\vendor/pattern-lab/styleguidekit-twig-default? you can fix this in ./config/config.yml by editing styleguideKitPath...

Activity

mortona42

mortona42 commented on Jul 30, 2016

@mortona42
Author

in vendor/pattern-lab/styleguidekit-twig-default, there is a views directory, and not much else.

self-assigned this
on Aug 1, 2016
dmolsen

dmolsen commented on Aug 1, 2016

@dmolsen
Member

@mortona42 -

Looks like a path is building incorrectly. I'll double-check that.

simonerlandsen

simonerlandsen commented on Sep 19, 2016

@simonerlandsen

Any solution or workaround on this issue? I would love to use this great project with twig:)

magnition-ci

magnition-ci commented on Sep 21, 2016

@magnition-ci

I'm also getting this error intermittently whilst working with Twig. Any solutions?

coreylafferty

coreylafferty commented on Sep 24, 2016

@coreylafferty

I'm not having a lot of luck tracking down where that path is built, but a temporary workaround is to change the path in /config/config.yml.

For example, on a PC it's setting styleguideKitPath to a path like this:

styleguideKitPath: 'D:\project\pattern-lab\vendor/pattern-lab/styleguidekit-twig-default'

I believe the path should simply be relative to the pattern lab root folder, like this:

styleguideKitPath: 'vendor/pattern-lab/styleguidekit-twig-default'

That fixed the issue for me on PC. It doesn't appear to be an issue on other operating systems as it creates the relative path correctly.

coreylafferty

coreylafferty commented on Jan 30, 2017

@coreylafferty

@dmolsen Just ran into this again -- it's creating an absolute path with mixed slashes and backslashes on Windows. Only fix I've found so far is to manually edit the path and make it relative.

DanielRuf

DanielRuf commented on Feb 22, 2017

@DanielRuf

This comes from https://github.com/pattern-lab/patternlab-php/blob/b5769cc6673a91ce029d146e4aa169594af830ce/core/src/PatternLab/Installer.php#L53.

Also related to Installer::postPackageInstall,Installer::postPackageUpdate and Installer::prePackageUninstall where the code is used.

The code $event->getComposer()->getInstallationManager()->getInstallPath($package) adds the full (absolute) path (on Windows) (in specific cases, it seems Composer uses the full path?) and this is still happening in core 2.7.0.

Possibly related: pattern-lab/patternlab-php-core@283010d and pattern-lab/patternlab-php-core#38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @dmolsen@mortona42@DanielRuf@coreylafferty@simonerlandsen

      Issue actions

        starterkit-twig-base/starterkit-twig-demo styleguide files not found · Issue #19 · pattern-lab/edition-php-twig-standard