Commit Graph

179 Commits (62bfc7830a34e3320bbb0a8ae6a1829498abbc9f)
 

Author SHA1 Message Date
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
Hugo Thunnissen b102e037a8 Add copyright headers to benchmark files to fix(?) ELPA tarball build
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen a99f73b83d Use rear pointer instead of nconc to append to end of list
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 16aa30d04f Add ELPA generated files to .gitignore
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 8cfc48348f Run relint and fix detected regexp issues
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen ad4b1f25a6 Update copyright statements and apply some code style improvements
ci/woodpecker/push/woodpecker Pipeline failed Details
As suggested by Stefan Monniers patch:
 - https://mail.gnu.org/archive/html/emacs-devel/2023-08/msg00367.html
1 year ago
Hugo Thunnissen daf070a083 Add missing struct definition
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen 9d697550f7 Fix oopsie in compile script 1 year ago
Hugo Thunnissen 84ddaf1dc2 Fix all byte compilation warnings and errors (for real this time (probably))
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen f1e4a5be7d Remove debug statement for company backend
ci/woodpecker/push/woodpecker Pipeline failed Details
1 year ago
Hugo Thunnissen f6cc199886 When debugging, forward worker errors to main thread 1 year ago
Hugo Thunnissen f9f12590e8 Handle cases where declarations do not contain a name 1 year ago
Hugo Thunnissen 71531b7996 Define free variables + use condition-case-unless-debug 1 year ago
Hugo Thunnissen 2ff9919e44 Add debug statements + use condition-case-unless-debug for token indexation 1 year ago
Hugo Thunnissen 6e5e2e3a07 Exclude comments from eldoc statement 1 year ago
Hugo Thunnissen 633b08809e Only retrieve/update class when a name has been declared for it 1 year ago