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

[Bug]: "[error] Translation namespaces" #212

Open
Jipem opened this issue Jan 18, 2025 · 8 comments · May be fixed by #223
Open

[Bug]: "[error] Translation namespaces" #212

Jipem opened this issue Jan 18, 2025 · 8 comments · May be fixed by #223
Assignees
Labels

Comments

@Jipem
Copy link

Jipem commented Jan 18, 2025

Extension Version

0.1.18

PHP Binary

Local PHP

Operating System

Windows

What happened?

On start of Visual Studio Code :

2025-01-18 20:03:35.974 [info] Checking herd PHP installation: herd which-php
2025-01-18 20:03:35.975 [info] Checking valet PHP installation: valet which-php
2025-01-18 20:03:35.975 [info] Checking local PHP installation: php -r 'echo PHP_BINARY;'
2025-01-18 20:03:35.975 [info] Checking sail PHP installation: ./vendor/bin/sail ps
2025-01-18 20:03:35.975 [info] Falling back to system PHP installation
2025-01-18 20:03:35.975 [error] Translation namespaces

Error: __VSCODE_LARAVEL_START_OUTPUT__
   BadMethodCallException 

  Method Illuminate\Filesystem\Filesystem::json does not exist.

  at D:\jipem\Sites\laragon\www\laravel\vendor\laravel\framework\src\Illuminate\Macroable\Traits\Macroable.php:113
    109▕      */
    110▕     public function __call($method, $parameters)
    111▕     {
    112▕         if (! static::hasMacro($method)) {
  ➜ 113▕             throw new BadMethodCallException(sprintf(
    114▕                 'Method %s::%s does not exist.', static::class, $method
    115▕             ));
    116▕         }
    117▕

  i   Bad Method Call: Did you mean Illuminate\Filesystem\Filesystem::extension() ? 

  1   D:\jipem\Sites\laragon\www\laravel\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:338
      Illuminate\Filesystem\Filesystem::__call("json")

  2   D:\jipem\Sites\laragon\www\laravel\vendor\_laravel_ide\discover-9bf70685f88c341f6dfa31892eff8be2.php:94
      Illuminate\Support\Facades\Facade::__callStatic("json")

2025-01-18 20:03:35.978 [info] Activating Laravel Extension...
2025-01-18 20:03:35.978 [info] Started

Mimimal Code Sample

@HassanZahirnia
Copy link

I'm also getting a similar error on WSL2 (Ubuntu)

Image

Version number is 0.1.18

@patimio66
Copy link

Got similar error, Windows 11, latest.
Image

Version number is 0.1.18

@LukaszJaro
Copy link

Same error as @patimio66 running on windows 10. Just installed the extension today.

@slaanish
Copy link

Same issue as the others, Windows 11 WSL, Right clicking the extension and selecting 1.17 no longer errors.

Image

@slaanish
Copy link

Taking a look between 1.17 and 1.18, I do see there was a merge that did target language. I do not even pretend to know what is going on, but it does touch language processing and happened between working version and now. All of us appear to be on Windows... A pathing issue? \ vs /

d0f299c

@otavio-araujo
Copy link

Yep, it works!

@andreg
Copy link

andreg commented Jan 28, 2025

I'm getting the same error as @patimio66, running on MacOS. Downgrading to 1.17 does apparently fix the issue though.

@Braunson
Copy link

Braunson commented Jan 28, 2025

Same issue on Windows (Sail via WSL) in version 0.1.18

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 a pull request may close this issue.

10 participants