Git Product home page Git Product logo

tenkawa-php-language-server's Issues

Goto method definition bug when mixed type

when i declare a var with mixed class (A|B or A&B), the method test which exists class A only, can not be intelesense from the call by this var.

<?php
class A
{
    public function test()
    {
    }
}

class B
{
}

/**
 * @var A|B
 */
$x = new A;
$x->test();

and an error occur

2018-12-16T15:45:39+00:00 pid=86702 ERROR Exception during PHPStan analysis: PHPStan\Broker\ClassNotFoundException: Class \A was not found while trying to analyse it - autoloading is probably not configured properly. in /Users/***/.vscode/extensions/tsufeki.tenkawa-php-0.3.3/vendor/tsufeki/tenkawa-php-language-server/src/Tsufeki/Tenkawa/Php/PhpStan/IndexBroker.php:182

But if i declare the var as single type, or just put same method at the class B, it works fine.

Refactoring Issues on windows

Running Windows.

The folders Http and Controllers starts with a capital letter as seen in the Explorer, but it still come up as an 'error'

image

No indexing with LanguageClient-neovim

I'm attempting to use this language server with LanguageClient-neovim. It appears to work for the file/s I have open (I get diagnostics/completion) however it doesn't seem to be award of/indexing any other files in the project (or the phpstorm stubs, as it tells me built in php functions don't exist edit: fixed this with --build-index). The client does send a rootPath and rootUri in the initialize method message. Is there something else that needs to be done to trigger indexing?

Auto import of open bracket on complete

Some options for disable auto import of open bracket on complete?
Problem is: ex function/method: array_merge(
But I should be: ex function/method: array_merge

Sorry for bad English...

Thanks!

Go to definition it doesn't update metadata

I changed the name of a file and then renamed to the original name again, and this happens:

image

The old file still appears as a candidate to go to.

Versions

  • OS: Windows 10.
  • PHP Version: 7.3.7.
  • VSCode: 1.38.1.
  • Tenkawa plugin: 0.4.4.

slow indexing

hi guys, some way to exclude the path from indexing, it is very slow when i have more than 1 repository in my project:

image

PHP 7.4 Exception - ReflextionType::__toString() is deprecated

This is an error I get when I run server with latest PHP version 7.4

2019-12-03T14:20:02+01:00 pid=522980 ERROR Unhandled exception in strand #1: ErrorException (Function ReflectionType::__toString() is deprecated).
    ErrorException: Function ReflectionType::__toString() is deprecated in /tmp/tenkawa-php-language-server/vendor/tsufeki/hmcontainer/src/Tsufeki/HmContainer/Wiring/Wiring.php:92

annotation supports not complete

Hello, there is an awesome php lang server. but i found something not perfect

  • many types combine. eg: * @param FirstInterface|SecondInterface $interface
  • array type define. eg: * @param FirstInterface[]|array $interfaces, it means $interfaces should be an array, and each might be FirstInterface

Allow to change phpstan rule level

Is it possible to analyse codebase with stan using --level argument? In many other editor extensions there is such option, but this awesome ls lacks it.

Problems in loaded and import

It takes a long time to load the basics of vs code study popr example colocon fun should load the normal public function as it does without plugin but it stays loaded...

With the extension lasts more than 10 minutes:
imagen

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.