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

Use relative path to define "cflint.jarPath" #21

Open
gquittet opened this issue Mar 25, 2020 · 4 comments
Open

Use relative path to define "cflint.jarPath" #21

gquittet opened this issue Mar 25, 2020 · 4 comments

Comments

@gquittet
Copy link

Problem

At the moment, I can't make cflint working with a relative path like this

~/.local/share/cflint/cflint.jar

or

$XDG_DATA_HOME/cflint/cflint.jar

or

$HOME/me/.local/share/cflint/cflint.jar

I need to use this path:

/Users/me/.local/share/cflint/cflint.jar

And the problem is that I've the same config on my MacBook Pro than my ThinkPad with ArchLinux.

If this problem take you too much time I can look at it and make a PR.

@sfeldkamp
Copy link

Supporting variables in the extension might be the best way, if the path is under the workspace root.

https://code.visualstudio.com/docs/editor/variables-reference#_is-variable-substitution-supported-in-user-and-workspace-settings

@chapmandu
Copy link

I've run into this same issue. In my case, the workspaceFolder would be perfect.

"cflint.jarPath": "${workspaceFolder}/CFLint-1.5.0-all.jar"

@psarin
Copy link

psarin commented Feb 19, 2024

Yes, supporting ${workspaceFolder} would be perfect.

@psarin
Copy link

psarin commented Feb 19, 2024

FYI @gquittet @sfeldkamp @chapmandu @KamasamaK , submitted PR #33 to address this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants