Giter VIP home page Giter VIP logo

Comments (3)

hugopeek avatar hugopeek commented on July 18, 2024

Hi @DLSamson, what does your config for this table look like, in .gitify?

In my case, the tmplvarid and templateid values are separated by a . in the file name, with the following config:

    template_variables_access:
        class: modTemplateVarTemplate
        primary:
            - tmplvarid
            - templateid

from gitify.

DLSamson avatar DLSamson commented on July 18, 2024

It looks like this:

template_variables_access:
        class: modTemplateVarTemplate
        primary:
            - tmplvarid
            - templateid

Also gitify in my composer.lock file:

"name": "modmore/gitify",
"version": "2.0.1-pl"

I installed gitify locally in the project, so I use vendor/bin/gitify

from gitify.

DLSamson avatar DLSamson commented on July 18, 2024

Hello again, I found out what was the problem.

How to fix this:

  1. Open your system_settings
  2. Find friendly_alias_restrict_chars and friendly_alias_restrict_chars_pattern
  3. Check if it has \. in it
  4. Choose a different value for friendly_alias_restrict_chars or Remove \. from friendly_alias_restrict_chars_pattern

Explanation:

In method modmore\Gitify\Command\ExtractCommand::extractObjects when making a file name, it passes it through
modmore\Gitify\Command\ExtractCommand::filterPathSegment method

Which is

Uses the modResource::filterPathSegment method if available for cleaning a file path.
* When it is not available (pre MODX 2.3) it uses a fake resource to call its cleanAlias method

modResource::filterPathSegment method checks friendly_alias_restrict_chars and friendly_alias_restrict_chars_pattern config values

In my case, pattern had \. character, so it has been cleaning it as well from file name. I removed it.
Now it's okay, files are genereting with a dot in its name.

from gitify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.