question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[feature request] VCS friendly custom tokens

See original GitHub issue

I’m sharing most of my .idea files on git, so if anyone runs the same IDE he has everything set up once he clones and opens IDEs (mostly I’ve added that to share complex run configurations).

I’ve noticed that file conventionalCommit.xml always uses full path to the file, so this won’t work on another computer, where user stores his project in a different directory.

I’ve tried to change the XML manually with

<option name="customFilePath" value="$PROJECT_DIR$/cc_defaults.json"/>

…which seems to work, plugin settings view gets the correct path (which is full path, c:.…, event after IDE restart), but after a while I notice that (I guess plugin) updates this XML back with the full path instead of using $PROJECT_DIR$. I’ve also tried by just entering cc_defaults.json and $PROJECT_DIR$/cc_defaults.json but the plugin doesn’t recognize this syntax.

Would be really nice if this could be solved. I guess the simplest solution would just be to check if full path contains $PROJECT_DIR$'s value, if so, that part of the full path should be replaced with string “$PROJECT_DIR$”, so that the output is the same as in XML code snippet above. Or I guess IDE fw for plugins may already have a helper for this?

EDIT: After going back to my IDE and committing these files to my repo, I was thinking, maybe it would make more sense to store cc_defaults.json content in conventionalCommit.xml since it’s both plugin configuration kind of (maybe this wouldn’t work in case one would want to store this outside the project or in another project folder, so I guess current solution is the most flexible one).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tad3jcommented, Feb 21, 2020

You are right, unchecking Custom default tokens and renaming the file to conventionalcommit.json solves it.

1reaction
lppeddcommented, Feb 21, 2020

But you don’t need to set a custom file like that if it’s in project root and it’s called conventionalcommit.json

Thanks!

Il ven 21 feb 2020, 18:19 tad3j notifications@github.com ha scritto:

When I save plugin setup on setting screen, my conventionalCommits.xml still gets full local path added c:\Users\Tad3j.… instead of $PROJECT_DIR$/cc_defaults.json. It’s not a huge issue since I’m not configuring plugin often, more like nice to have.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/lppedd/idea-conventional-commit/issues/10?email_source=notifications&email_token=AEXTPINMELA2CBVY3BLYK5DREAEL7A5CNFSM4KSYEPYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMTN4GQ#issuecomment-589749786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXTPILSHZ6DORY2Y33ZCV3REAEL7ANCNFSM4KSYEPYA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request thread : r/OwlbearRodeo - Reddit
I like making lots of custom minis and a way to get them on the game board without having to scroll through all...
Read more >
API | CircleCI Ideas
Realted feature requests, both about exposing GitHub webhooks / custom status messages generally, and about merge actions specifically are pretty numerouse ...
Read more >
[FEATURE REQ]Azure.Identity should handle token caching ...
I was reading this documentation and getting ready to migrate from AppAuthentication to Azure.Identity. While the new library surely works amazingly well ...
Read more >
Tokens | Foundry Virtual Tabletop
A Token is a placed object which visually represents Actors on the game Canvas. The Token displays the Actor's position, appearance, rotation, ...
Read more >
Enhanced VCS Integrations - Submit feature requests & ideas for ...
Custom export for Android XML and Strings file formats can be used via API ... With async operations, the speed is much approved...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found