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]: Vendor packages not found #247

Closed
1 task done
adrien-zenchef opened this issue Apr 13, 2023 · 15 comments
Closed
1 task done

[Bug]: Vendor packages not found #247

adrien-zenchef opened this issue Apr 13, 2023 · 15 comments
Labels
bug Something isn't working

Comments

@adrien-zenchef
Copy link

adrien-zenchef commented Apr 13, 2023

Short bug description

The plugin does not resolve any vendor import.

Extended bug description

Since new PHPStorm + plugin update nothing is working anymore :(

Your project is not the problem

  • I tried using a fresh laravel install - I'm fairly certain it has nothing to do with my project.

How to reproduce?

use Illuminate\Support\Facades\Request;

$request = Request::create(
    '/api/v1/endpoint',
    'GET',
    ['param' => 'value']
);

Expected behavior

Show request object

Screenshots

image

IDE & Version

PHPStorm 2023.1

PHP Version

8.0.28

OS and version

Mac OS (M1 PRO)

Laravel Tinker plugin version

2.5.1

Interpreter type

Local

Laravel Version

7.30.6

Tinker version

2.8.1

Psysh version

0.11.13

Additional Context

Thanks you, your plugin is amazing!

@adrien-zenchef adrien-zenchef added the bug Something isn't working label Apr 13, 2023
@adrien-zenchef adrien-zenchef changed the title [Bug]: [Bug]: Vendor package not resolve Apr 13, 2023
@adrien-zenchef adrien-zenchef changed the title [Bug]: Vendor package not resolve [Bug]: Vendor packages not found Apr 13, 2023
@Roboroads
Copy link
Owner

This is strange. Is the output displayed in the tinker toolwindow? How are you executing the code?

It feels like the tinker plugin is not handling your code here, but something else is.

@adrien-zenchef
Copy link
Author

This is strange. Is the output displayed in the tinker toolwindow? How are you executing the code?

It feels like the tinker plugin is not handling your code here, but something else is.

Yes the output is displayed in the tinker toolwindow. I click on the green right arrow.
But I think it's not using my local php interpreter (like before) but a remote from 3v4l.org

Output https://3v4l.org/jjukv

Yes exactly, I have the same impression....

@adrien-zenchef
Copy link
Author

When I ran something like

<?php 
echo 'hello world';

it's working, but as soon as I import something from my project it doesn't work anymore. It just seems that the code is running in remote and not in local as I would like

@Roboroads
Copy link
Owner

So, the issue is, that the interpreter you are using should also have all the files - like a synched folder or something. Check your PHP settings to see which interpreter you are using currently, the plugin just uses that.

@adrien-zenchef
Copy link
Author

adrien-zenchef commented Apr 17, 2023

My interpreter is well configured, I use it for tests and with the tools line command of the IDE for example. I don't understand why instead of using my interpreter it uses a remote interpreter...

There is a way to use local interpreter instead of remote ?

image

@Roboroads
Copy link
Owner

Note that's just the name of the interpreter. Check under the three dots next to the interpreter if it';s actually the local interptreter and that you didn't change the name on accident.

@adrien-zenchef
Copy link
Author

adrien-zenchef commented Apr 17, 2023

The PHP interpreter is dected, as I said I use it for tests/command line tools shortcut. On ... it's well detected. But IDK why your package force me to use remote interpreter since the update

@Roboroads
Copy link
Owner

Roboroads commented Apr 17, 2023

I don't know how I can help you any more than this. As per this line it's just picking the prject interpreter.

Maybe reinstall Tinker?

@Roboroads
Copy link
Owner

I forgot to mention 1 thing. In the settings of the laravel plugin, you can also change the path of your laravel folder within the interpreter. You can find those in your settings as well.

@Roboroads
Copy link
Owner

I've added all the info into #250

@adrien-zenchef
Copy link
Author

adrien-zenchef commented Apr 19, 2023

Unfortunately I have tried everything but nothing...
What I tried :

  • setup other php interpreter (different version)
  • reinstall phpstorm and all plugin
  • clear cache
  • change laravel tinker settings path (but I watch the file config and it's look good)

When I run a request is using an interpreter from nowhere, I can see Waiting responses for 3v4l.org response
Like I said before PHPStorm update + plugin update everything work well before...

On my Windows everything works perfectly, on Mac nothing works.
Thanks for your help, we can close the ticket I guess

@Roboroads
Copy link
Owner

Is 3v4l.org maybe a plugin that is messing with the interpreter settings? I'm not sure if it's a plugin ;)

I'm willing to take a look with you to see if we can figure out what's going wrong - my discord is Roboroads#1337 if you want to do that :)

@Roboroads
Copy link
Owner

Roboroads commented Apr 21, 2023

Hi! I just got this 3v4l.org thing in my PHPStorm as well. But I still got tinker to keep working. Make sure you press the right button:

image

Or use the shortcut, ctrl+shift+t

@Jelle-SamsonIT
Copy link

Oh my lord.
That play button should be removed or have another icon. I just wasted useless time on this.
WHY would you change the default behavior over time?

Also: It sent code to that site even though I said not to and said 'never ask again' apparently.

this is outright misleading behavior by this plugin.

@Roboroads
Copy link
Owner

Roboroads commented May 30, 2023

@Jelle-SamsonIT I did not change anything. It's JB that added this new 3vl4 interpreter stuff in the last major update, that's entirely out of my reach I'm afraid.

If I've spent countless hours on figuring out to just have the syntax highlighting and none of the other stuff that comes with PHP for the tinker consoles. However the PHP plugin (from JB) is not documented at all so it's extremely hard to figure things out.

So, sorry you wasted so much time.

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

3 participants