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

Dev2Main #4

Merged
merged 28 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ce5f217
setup for client server communication testing and analyser test for l…
hangyav May 27, 2023
141ff28
better shutdown handling
hangyav May 28, 2023
888d1d6
initial steps to rework diagnostics and code action handling
hangyav May 28, 2023
30cb86e
fixing a bug related to updating positions in PositionDict
hangyav May 29, 2023
87feb9a
updating code_action handling
hangyav May 29, 2023
4d2fb6c
updating diganostics and code_action shift handling
hangyav May 29, 2023
316bbd5
implementing TreeSitter tree editing for faster text cleaning
hangyav Jul 9, 2023
1efcd94
fix: 2 issues in ChangeTracker; 1 issue in TreeSitterDocument edit
hangyav Jul 9, 2023
4388c01
fix: fixing a set of bugs related to TreeSitter change handling and d…
hangyav Jul 16, 2023
9682f77
fix: adding missing requirement
hangyav Jul 18, 2023
fecc161
bugfix: small change to correctly handle edits of md coarse-grained T…
hangyav Sep 16, 2023
b321b2e
handling empty TS tree
hangyav Sep 26, 2023
e4b0482
bugfix: removing reference to a TS node that can change in the backgr…
hangyav Nov 3, 2023
c6163bf
bugfix: in non-strict interval search
hangyav Nov 4, 2023
0b99b36
bugfix: handling multiple edits per change event when removing diagno…
hangyav Nov 4, 2023
6c25777
bugfix: inline diagnostic/action shift
hangyav Nov 4, 2023
7c5c46e
bugfix: incorrect search for edited paragraphs in analysers
hangyav Nov 4, 2023
2e2163c
bugfix: handling edits which are empty parsed trees
hangyav Nov 5, 2023
c5a6d84
bugfix: incorrect addition of OffsetPositionInterval in OffsetPositio…
hangyav Nov 5, 2023
9e1602b
bugfix: still issues with dummy newlines, these should be refactored
hangyav Nov 5, 2023
c61e1b6
bugfix: handling empty file
hangyav Nov 11, 2023
3f3b77a
bugfix: handling merged subtrees in TS edit
hangyav Nov 12, 2023
4106baa
bugfix: handling issues related to edits resulting in merges TS subtrees
hangyav Nov 13, 2023
93f8ced
bit of refactoring
hangyav Nov 13, 2023
9bc4ad0
updateing dependency versions
hangyav Nov 15, 2023
84b2302
further cleanup and some small bugfixes
hangyav Nov 16, 2023
73a8156
handling out of bounds offset search
hangyav Nov 25, 2023
1c1a85d
adding test workflow
hangyav Nov 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install pypa/setuptools
run: >-
python -m
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will install Python dependencies and run tests with a single version of Python.

name: Test main branch

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Test with pytest
run: |
pytest
24 changes: 13 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import sys
from setuptools import setup, find_packages

if sys.version_info >= (3, 11, 0):
if sys.version_info >= (3, 12, 0):
# due to current pytorch limitations
print('Required python version <= 3.11.0')
print('Required python version <= 3.12.0')
sys.exit(-1)


Expand All @@ -29,23 +29,25 @@ def read(fname):
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
entry_points = {
entry_points={
'console_scripts': ['textlsp=textLSP.cli:main'],
},
install_requires=[
'pygls==1.0.0',
'lsprotocol==2022.0.0a9',
'pygls==1.1.2',
'lsprotocol==2023.0.0b1',
'language-tool-python==2.7.1',
'tree_sitter==0.20.1',
'gitpython==3.1.29',
'tree_sitter==0.20.4',
'gitpython==3.1.40',
'appdirs==1.4.4',
'torch==1.13.1',
'openai==0.26.4',
'transformers==4.25.1',
'torch==2.1.0',
'openai==1.2.4',
'transformers==4.35.1',
'sortedcontainers==2.4.0',
],
extras_require={
'dev': [
'pytest',
'pytest==7.4.3',
'python-lsp-jsonrpc==1.1.2',
]
},
)
Empty file added tests/__init__.py
Empty file.
Loading