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

Configuring framework.ide when xdebug.file_link_format is set causes exception. #31119

Closed
j4nr6n opened this issue Apr 15, 2019 · 2 comments
Closed

Comments

@j4nr6n
Copy link
Contributor

j4nr6n commented Apr 15, 2019

Symfony version(s) affected: 4.2

Description
I did this:

framework:
    ide: '%env(IDE_PATH)%'

and this:

xdebug.file_link_format = "phpstorm://open?url=file://%f&line=%l"

and got this:
image

I'm not sure what I expected to happen. I didn't expect an exception by overriding an environment variable though.

How to reproduce
The good news is, there's a reproducer app.
The bad news is you have to set xdebug.file_link_format to get the error.

Possible Solution
¯\_(ツ)_/¯

@nicolas-grekas
Copy link
Member

you can work around this by either adding IDE_PATH= in your .env file or defining a parameter named env(IDE_PATH) in you services.yaml file.

Otherwise, the behavior is consistent with the behavior of env vars, no bug here.

@nicolas-grekas
Copy link
Member

Got it, see #31302

fabpot added a commit that referenced this issue Apr 29, 2019
…g as used (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[FramworkBundle] mark any env vars found in the ide setting as used

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #31119
| License       | MIT
| Doc PR        | -

Commits
-------

e461d36 [FramworkBundle] mark any env vars found in the ide setting as used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants