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

Laravel Pint does not work properly in environment with DevContainer. #66

Open
jun-takagi-sddgrp opened this issue Oct 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jun-takagi-sddgrp
Copy link

jun-takagi-sddgrp commented Oct 11, 2024

Describe the bug

When saving a file or . /vendor/bin/pint command, the terminal displays that the file has been successfully formatted with Laravel Pint, but the formatting is not reflected until the actual file is reopened.

Expected behavior

I want the formatting to be reflected in real time on the IDE.

Screenshots

image
image

Environment:

  • Operating system: Windows11
  • IDE / version: VSCode 1.94.2
  • Extension version 1.2.1

Additional context

This is my devcontainer.json

{
  "name": "Laravel App",
  "dockerComposeFile": ["compose.yaml"],
  "service": "app",
  "workspaceFolder": "/var/www/laravel-app",
  "customizations": {
    "vscode": {
      "extensions": [
        "esbenp.prettier-vscode",
        "open-southeners.laravel-pint",
        "ecmel.vscode-html-css",
        "formulahendry.auto-complete-tag",
        "onecentlin.laravel-extension-pack",
        "xabikos.JavaScriptSnippets"
      ],
      "settings": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "esbenp.prettier-vscode",
        "laravel-pint.enable": true,
        "bladeFormatter.format.enabled": true,
        "[php]": {
          "editor.defaultFormatter": "open-southeners.laravel-pint"
        },
        "[blade]": {
          "editor.defaultFormatter": "shufo.vscode-blade-formatter"
        }
      }
    }
  }
}
@jun-takagi-sddgrp jun-takagi-sddgrp added the bug Something isn't working label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant