Git Product home page Git Product logo

Comments (6)

felixfbecker avatar felixfbecker commented on September 4, 2024

Please notice the big Work in progress notice in the README. This extension is not published yet, but in a public repository to enable collaboration.
This extension is only a thin wrapper that spawns the https://github.com/felixfbecker/php-language-server, so bugs need to be fixed there

Feel free to contribute.

from vscode-php-intellisense.

mniewrzal avatar mniewrzal commented on September 4, 2024

Yes, contribution is my goal :)

For now I'm trying to understand if my initial steps were correct and I didn't missed anything important. After I will have working version I will be able to start playing with implementation of https://github.com/felixfbecker/php-language-server

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on September 4, 2024

Yes I basically created this extension already because I needed some way to test the language server. That being said though, I got initialize already working. I think you were missing some steps:

  • run composer install to install the language server as a dependency (you need composer installed)
  • run npm run compile to compile
    This should be highlighted more in the README, I build the 3 packages in just two days and published them on GitHub as quickly as possible without writing extensible documentation :D

My next step is implementing documentSymbols because it is trivial with an AST. But I couldnt debug it properly, the server crashed and I couldn't get STDERR output, so I asked the VS Code folks how to do it, and got help here: microsoft/vscode-languageserver-node#82. I couldn't find the time to implement it yet, but that way we can get STDERR output with stacktraces. But ultimately I want all features of the language server to be verified through unit tests, because it is designed to run with many IDEs, not just VS Code. Tracking test coverage is on my todo list aswell.

I also used my own debug adapter https://github.com/felixfbecker/vscode-php-debug to debug the language server with success.

I am also open to adding more maintainers, would be nice if this could become a community project.

from vscode-php-intellisense.

mniewrzal avatar mniewrzal commented on September 4, 2024

Thanks for clarification. It looks that I was able to reach initialization step. I just thought something else should work ;) I will try add simple description to README to summarize what I did.

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on September 4, 2024

microsoft/vscode-languageserver-node#86

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on September 4, 2024

I added a solution to the problem in felixfbecker/php-advanced-json-rpc@53808d3

documentSymbols is working now! 🎉

from vscode-php-intellisense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.