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

Comment framework.ide setting #148

Closed
wants to merge 1 commit into from
Closed

Comment framework.ide setting #148

wants to merge 1 commit into from

Conversation

nicolas-grekas
Copy link
Member

This setting takes priority over any locally configured one, and thus prevents using source links with the demo app.

@javiereguiluz
Copy link
Member

If what you say is true ... then Symfony docs are wrong in this explanation:

This can be done by setting the xdebug.file_link_format in the php.ini configuration to the url string. If this configuration value is set, then the ide option will be ignored.

By the way, this demo application is mostly targeted at newcomers. Most of them don't have Xdebug installed and/or enabled, so I think it makes sense to enable this option by default. Let's see what others think about this.

@nicolas-grekas
Copy link
Member Author

You're right that there is something suspicious. Looking quickly (too quickly?) at the code, the doc looks wrong (or the code).
The demo app is not only for newcomers. Trainers use it a lot also. I do use it for demoing.
And "sublime" is wrong for many (even newcomers) that use e.g. phpstorm.

@javiereguiluz
Copy link
Member

Taking a look at this code:

public function __construct($fileLinkFormat, $rootDir, $charset)
{
    $this->fileLinkFormat = $fileLinkFormat
        ?: ini_get('xdebug.file_link_format')
        ?: get_cfg_var('xdebug.file_link_format');

    // ...
}

It seems that the explanation is wrong ... although the described behavior seems better than the current one.

@bocharsky-bw
Copy link
Contributor

Yes, it's true. framework.ide override xdebug.file_link_format value.

I think we shoud change this code and keep explanation in docs as is, right?

@javiereguiluz
Copy link
Member

@bocharsky-bw I agree that it makes sense that your local settings override anything else. The code should be changed. I don't know if that could be considered a BC break.

@javiereguiluz
Copy link
Member

I'm closing this issue as "won't fix" because Nicolas did something even better: he fixed an issue in Symfony that prevented you local settings from overriding the application settings. See symfony/symfony#15549.

fabpot added a commit to symfony/symfony that referenced this pull request Aug 23, 2015
…t (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle] Fix precedence of xdebug.file_link_format

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | symfony/symfony-docs#5625

See symfony/demo#148 (comment)

Commits
-------

adb5327 [FrameworkBundle] Fix precedence of xdebug.file_link_format
fabpot added a commit to symfony/framework-bundle that referenced this pull request Aug 23, 2015
…t (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle] Fix precedence of xdebug.file_link_format

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | symfony/symfony-docs#5625

See symfony/demo#148 (comment)

Commits
-------

adb5327 [FrameworkBundle] Fix precedence of xdebug.file_link_format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants