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

Phpactor Language Server must be initialized with a root URI, NULL provided #120

Open
leocavalcante opened this issue May 8, 2024 · 7 comments

Comments

@leocavalcante
Copy link

Not sure what I'm missing here.

Screenshot 2024-05-08 at 18 01 34
@dantleech
Copy link
Contributor

Does this happen if you open a folder? Does it always happen? Which version of VS code

@leocavalcante
Copy link
Author

I just create New Text file with Cmd + N and Change it's mode to PHP

VSCode 1.89

Screenshot 2024-05-08 at 18 10 13

@dantleech
Copy link
Contributor

Phactor needs a project root, try opening the folder where you want to create the file

@leocavalcante
Copy link
Author

leocavalcante commented May 8, 2024

Thank you. It is working now, opening a folder with an existing PHP file.

May I ask. How to make Phpactor gain priority over the basic suggestions?

Screenshot 2024-05-08 at 18 35 33

I'd like to see bar() and qux() as the first suggestions, for example.

I mean:

If I disable php.suggest.basic I can see only Phpactor suggestions, then it looks nice:
Screenshot 2024-05-08 at 18 39 54
But then I don't have completions of basic function likes the array_* functions.

@dantleech
Copy link
Contributor

IIRC you need to disable VS code's default PHP integration, there will be a setting for it somewhere....

@leocavalcante
Copy link
Author

IIRC you need to disable VS code's default PHP integration, there will be a setting for it somewhere....

Yeah, I can set php.suggest.basic to false, but when I do this, global functions like array_map, for example, isn't suggested... They should come up from Phpactor?

@dantleech
Copy link
Contributor

They should...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants