Commit graph

91 commits

Author SHA1 Message Date
8e941ba8a0
reorganize proto files a bit (#30)
Some checks are pending
test / test (macos-latest) (push) Waiting to run
test / test (ubuntu-latest) (push) Waiting to run
test / test (windows-latest) (push) Waiting to run
2024-12-14 00:06:06 -06:00
b1b3e6a5ec
fix django block parsing (for now) (#31)
it's clear i need a rethink of parsing django block tags to nodes,
becuase my mental picture of them differs from the actual use of them.
E.g. I tend to think of them the same as HTML tags as either "void" tags
or ones with end tags and children but not that's not the case at all.
Some have intermediate tags (`{% if %}{% else %}{% endif %}`) which is
not a huge lift to support, but the mind blowing realization was that
it's just convention that the closing tag starts with `end`.

for builtin's, yeah that's it's the case that all of the tags that have
opening and closing tags all close with a matching tag that is the
initial tag with `end` prefixed. but given the flexibility of the django
template engine, a third-party could feasibly use *any* closing tag it
wanted. that makes it very hard to build a structured, full-featured AST
for a Django template.

maybe that's not really needed for an LSP. but i'll need to come up with
*something* eventually.
2024-12-13 23:55:32 -06:00
a9fc0824d0 remove unused imports
Some checks are pending
test / test (macos-latest) (push) Waiting to run
test / test (ubuntu-latest) (push) Waiting to run
test / test (windows-latest) (push) Waiting to run
2024-12-13 20:25:11 -06:00
25f2c45f8d remove comment
Some checks are pending
test / test (macos-latest) (push) Waiting to run
test / test (ubuntu-latest) (push) Waiting to run
test / test (windows-latest) (push) Waiting to run
2024-12-13 08:44:49 -06:00
d1cc9f7ca0 specify dependencies to minor version
Some checks are pending
test / test (macos-latest) (push) Waiting to run
test / test (ubuntu-latest) (push) Waiting to run
test / test (windows-latest) (push) Waiting to run
2024-12-13 07:18:08 -06:00
134f3fea54 fix parseing of django tags with potential intermediates 2024-12-13 01:13:04 -06:00
a5e42fe7a4 swap 2024-12-13 00:50:26 -06:00
b0ba264452 parse doctype tag 2024-12-13 00:48:51 -06:00
61b55641cb add test for void html tag 2024-12-13 00:48:24 -06:00
cff90ee869
move GIS check to Python agent (#29) 2024-12-12 23:32:52 -06:00
b993e35460
centralize commands (#28) 2024-12-12 22:51:35 -06:00
b13d19a4bf
remove import check for django in setup (#27)
unneeded now since the agent imports and sets up Django as part of it's
initial serving
2024-12-12 20:03:48 -06:00
0a6e975ca5
Get rid of all transport types and settle on Protobuf (#25)
* Get rid of all transport types and settle on Protobuf

hope i don't regret this

* Update Cargo.toml

* Update agent.py
2024-12-12 16:53:49 -06:00
643a47953e
add protobuf transport and refactor to support (#24) 2024-12-11 20:28:57 -06:00
a135fdc8bb
remove unneeded client and server code (#22) 2024-12-11 16:24:03 -06:00
235bb4419d
switch from runner to ipc and long-running sidecar process (#21) 2024-12-11 16:16:40 -06:00
4c10afb602
create djls-cli and migrate serving LSP to it (#20) 2024-12-11 10:23:35 -06:00
2cbc24b5f0 remove unused socket_path 2024-12-10 22:18:20 -06:00
6f27c5ba9d
remove vestiges of windows traits (#19)
* remove vestiges of windows traits

* remove unused
2024-12-10 22:16:09 -06:00
7573415597 fix 2024-12-10 21:37:54 -06:00
58c5724392
Update client.rs 2024-12-10 21:12:22 -06:00
8636a7f198
add integration tests for retries, fix bugs that surfaced (#18) 2024-12-10 20:27:21 -06:00
a2ebd0dc8f
create djls-ipc crate for communicating with Django process (#17) 2024-12-10 18:49:41 -06:00
fbe3fbd493
move thiserror and async-tract to workspace dependencies (#15) 2024-12-10 14:13:53 -06:00
cb10d0ca1e
move scripts to dedicated module (#13) 2024-12-10 12:09:57 -06:00
5c8157057a remove token from error
reducing the size a bit
2024-12-10 11:57:50 -06:00
7279746f18 add ast to main crate 2024-12-10 11:28:29 -06:00
2f9fdd6ceb add publish diagnostics to notifier trait 2024-12-10 11:26:51 -06:00
810a591420
create djls-tasks crate for easy background work (#12)
* create djls-tasks create for easy background work

* fix notifier
2024-12-10 11:24:31 -06:00
1799355e27
add document store and support for didopen, didchange, and didclose (#11) 2024-12-09 23:34:55 -06:00
5971c23ace
refactor and cleanup parsing logic (#10)
just a little bit
2024-12-09 21:06:32 -06:00
f96b3da951
create djls-ast crate and implement lexer and parser (#8) 2024-12-09 17:48:24 -06:00
81199d1699
add template tags struct (#7) 2024-12-07 21:37:36 -06:00
fce343f44d
add djls-django crate (#6)
* add djls-django crate

* rework

* oops

* add check for GDAL and GeoDjango

* lots of things

* remove unused scripts

* move scripts to dedicated mod and make static consts

* inline gdal check

* rename mod

* rename mod

* move server info to consts

* adjust pyproject

* hide rustfmt config

* simplify django setup

* adjust printing
2024-12-07 16:02:48 -06:00
b7a1de98dd
drop environment abstraction layer over Python interpreter (#5) 2024-12-06 09:45:36 -06:00
39523d1f89
remove PyO3 dep (#4)
* remove PyO3 dep

* swap pyo3 for which
2024-12-06 00:03:23 -06:00
7e899a0778 move getters below constructors 2024-12-05 16:18:54 -06:00
3f0b3bb56b
add runtime paths to PyO3 provided Python (#3) 2024-12-05 15:29:12 -06:00
4c67f6a90d
add packaging module to djls-python (#2) 2024-12-05 12:17:40 -06:00
931c0bc9fb
add djls-python crate (#1)
* add djls-pyenv crate

* add implementation

* remove newline

* rename field

* rename crate
2024-12-05 11:33:54 -06:00
08fd1f27b9 initial commit 2024-12-04 23:04:43 -06:00