Commit Graph

194 Commits (31c6e069343eb63ed519b8de67089c841c86113a)
 

Author SHA1 Message Date
Hugo Thunnissen 31c6e06934 Reparse buffer when fixing import (+ add comment explaining why) 1 month ago
Hugo Thunnissen d141f8a6db Infer namespace token within import manipulation loop 1 month ago
Hugo Thunnissen 8296641ba9 Implement removal of unused imports in `phpinspect-fix-imports' 1 month ago
Hugo Thunnissen 6a175c9e44 Update a few doc strings in phpinspect-index.el 1 month ago
Hugo Thunnissen f2f1ac9b84 Add property types and anonymous function argument types to used-types index 1 month ago
Hugo Thunnissen d3f100388e Resolve property types using other methods when resolving from constructor fails
Property types of classes in live buffers are now resolved from assignments in
other methods when resolving from the __construct method fails.
1 month ago
Hugo Thunnissen 3fff772d8a Fix phpinspect-buffer-index-functions test 1 month ago
Hugo Thunnissen 2520c89680 Account for tokens after @method annotation when indexing
- Add :rest keyword to  `phpinspect--match-sequence'
- Use :rest keyword in  `phpinspect--index-method-annotations'
1 month ago
Hugo Thunnissen 5528aff2a2 Handle cases where the filepath of a type cannot be determined 1 month ago
Hugo Thunnissen 3887bc58d4 Implement indexation of readonly variables + allow invalid keywords
readonly variables no longer result in a failed indexation.

When we fail matching the scope keywords + variable patterns, only the variable
name is indexed instead of throwing an error.
1 month ago
Hugo Thunnissen 2fcb326747 Add log groups for completion and resolve 1 month ago
Hugo Thunnissen e9ffa3a0ad Fully reindex buffer after save 1 month ago
Hugo Thunnissen 9877166986 Fix reference to free variable 2 months ago
Hugo Thunnissen 9a317473b7 Synchronously index classes when fetching for eldoc hints 2 months ago
Hugo Thunnissen f7f43332b2 Synchronously index classes when listing methods/properties for completion 2 months ago
Hugo Thunnissen 62bfc7830a Fix namespace resolution bug in phpinspect-fix-imports
Incorrect use of phpinspect-namespace-name caused phpinspect-fix-imports to
incorrectly determine the current namespace. This resulted in imports being
suggested/added for types that already were available in the current
namespace. It did not make the PHP code invalid, but it did cause unnecessary
use statements for types in the same namespace.

This bug has now been fixed.
2 months ago
Hugo Thunnissen 3d68374fd0 Add some documentation for phpinspect-meta objects 2 months ago
Hugo Thunnissen dfdef3e382 Implement support for PHP8.1 property typehints 2 months ago
Hugo Thunnissen 8569553981 Use inhibit-quit to prevent interruption of index updates 2 months ago
Hugo Thunnissen 2aac7a273e Support @method annotations for static methods 2 months ago
Hugo Thunnissen 4d9907fedc Strip partially typed attributes from resolvecontext when suggesting attributes
ci/woodpecker/push/woodpecker Pipeline failed Details
6 months ago
Hugo Thunnissen 797efe9530 Only attempt to return completion kind when it can be found
When completions aren't found this is probably the result of a bug, but errors
in corfu's hooks are a pain for users so it is better to handle them gracefully
6 months ago
Hugo Thunnissen 18bc2e83ad Convert names to alist for use as completing-read collection
ci/woodpecker/push/woodpecker Pipeline failed Details
Fixes bug in `phpinspect-fix-imports'
6 months ago
Hugo Thunnissen 712268e4ec Fix bug in autoloader that caused registration of only one FQN per type
ci/woodpecker/push/woodpecker Pipeline failed Details
6 months ago
Hugo Thunnissen 42c7bd2715 Handle unsupported annotation styles gracefully
ci/woodpecker/push/woodpecker Pipeline failed Details
6 months ago
Hugo Thunnissen 0509d8c669 Ignore nil-value completions
ci/woodpecker/push/woodpecker Pipeline failed Details
There is probably a bug in an undedlying completion strategy that is causing
these nil-values. But this function should be able to deal with that regardless
as completion-strategies may not always be stable. Especially if user-defined
strategies ever become a thing.
6 months ago
Hugo Thunnissen ea133c2044 Fix bug in `phpinspect-splayt-find-all-between' that impacted import indexation
ci/woodpecker/push/woodpecker Pipeline failed Details
6 months ago
Hugo Thunnissen e436b3fae0 Ignore non-existant directories in psr4 autoload config
ci/woodpecker/push/woodpecker Pipeline failed Details
7 months ago
Hugo Thunnissen 7f2baf2c68 Make phpinspect--match-sequence return nil unless entire sequence matches
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 8c23a3fc2d Use phpinspect--class-name, as index can be unset for live edited classes
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen d3eec5c0bd Temporary fix for error upon indexation of anonymous functions 1 year ago
Hugo Thunnissen a40731aa3d Catch `phpinspect-parse-interrupted' in function `phpinspect-complete-at-point' 1 year ago
Hugo Thunnissen 44e109a5ac Add #'phpinspect-fix-imports to mode keymap 1 year ago
Hugo Thunnissen 77ea6ae9e6 Add headers to new .el files + delete compile script
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 6b832b521b Prefix unused lexical variable in test with _
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen b1085763df Use `defvar' instead of `defconst' for variables that are actually changed during runtime 1 year ago
Hugo Thunnissen 3e28231d03 Remove unnecessary macros + use `let' to set PLACE in iterative macros 1 year ago
Hugo Thunnissen da2570d355 Update README with install/build instructions
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 1031cd929d Handle quitting more gracefully in worker and pipeline threads
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 54679b616f Use `phpinspect-message' in stead of `message' 1 year ago
Hugo Thunnissen 81919175ca Implement stub index for builtin functions and types
Misc:
- Removed Cask in favor of dependency install script
- Rework makefile to provide simple build/install process
1 year ago
Hugo Thunnissen 9f7026455a Generate builtin stubs (+ add script to do so)
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 5eae689f09 Add separate interactive function to refresh project autoloader
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen e9d547af07 Add compilation/benchmarks section to README
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 52e1254001 Use compile scripts in makefile + add bytecomp step to native comp script
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 4a75cd350c Insert closing parenthesis when function does not take any arguments
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen d806c4ef4a Use class-keyword handler regexp when extracting class name from declaration
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen b82c786346 Fix native compilation warnings
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 2d29bce498 Apply overall code quality improvements
ci/woodpecker/push/woodpecker Pipeline failed Details
Even benchmarks and tests now compile without warnings or errors :)

This includes patches from Stefan Monnier:
- https://lists.gnu.org/archive/html/emacs-devel/2023-08/msg00548.html
1 year ago
Hugo Thunnissen 20ec37481a Fix compilation of benchmarks and tests
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago