Skip to content

Commit 52851ab

Browse files
committed
Merge branch 'topic/github_ci_fix' into 'edge'
Use `vss_text`, `vss_extra` to build ALS on GitHub See merge request eng/ide/ada_language_server!2096
2 parents 151a6fc + 2e670bf commit 52851ab

File tree

9 files changed

+77
-33
lines changed

9 files changed

+77
-33
lines changed

gnat/lsp_server.gpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ with "libgnatdoc.gpr";
1313
with "spawn.gpr";
1414
with "gnatformat.gpr";
1515
with "vss_os.gpr";
16-
with "ada_xdiff.gpr";
16+
with "xdiff.gpr";
1717

1818
with "lsp_3_17";
1919
with "lsp_common";

scripts/build_als.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ libgpr2
4242
markdown
4343
prettier_ada
4444
spawn
45-
vss
45+
vss_text
46+
vss_extra
47+
xdiff
4648
"
4749

4850
# Pins repo names (crate name by default)
@@ -54,7 +56,9 @@ repo_libadalang_tools=libadalang-tools
5456
repo_libgpr=gprbuild
5557
repo_libgpr2=gpr
5658
repo_prettier_ada=prettier-ada
57-
repo_vss=VSS
59+
repo_vss_text=vss-text
60+
repo_vss_extra=vss-extra
61+
repo_xdiff=xdiff
5862

5963
# Pins branches (master by default)
6064

@@ -63,6 +67,9 @@ branch_lal_refactor=edge
6367
branch_gnatformat=edge
6468
branch_libgpr2=main
6569
branch_prettier_ada=main
70+
branch_vss_text=main
71+
branch_vss_extra=main
72+
branch_xdiff=main
6673

6774
# Repository URLs can be overriden (e.g. to personal forks for experimentation)
6875
# url_langkit_support=https://github.com/<my-github-login>/langkit.git
@@ -136,7 +143,10 @@ function pin_crates() {
136143
# remote. So let's do that update.
137144
git -C "subprojects/$crate" pull origin "${branch:-master}"
138145
fi
139-
cp -v "subprojects/$crate".toml "subprojects/$crate/alire.toml"
146+
147+
if [ -f "subprojects/$crate.toml" ]; then
148+
cp -v "subprojects/$crate".toml "subprojects/$crate/alire.toml"
149+
fi
140150

141151
# Instead of calling `alr pin` for each crate, it's more efficient to
142152
# append the necessary text in alire.toml and call `alr update` once at

subprojects/als.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ LSP_OS = "Windows_NT"
2323
gnatcoll = "^24.0.0"
2424
libadalang = "^24.0.0"
2525
libgpr2 = "^24.0.0"
26-
vss = "^24.0.0"
26+
vss_text = "^24.0.0"
27+
vss_extra = "^24.0.0"
2728
libadalang_tools = "^24.0.0"
2829
lal_refactor = "25.0.0-20240625"
2930
gnatformat = "25.0.0-20240625"
3031
gnatdoc = "^24.0.0"
3132
spawn = "^24.0.0"
33+
xdiff = "^25.0.0"
3234

subprojects/gnatdoc.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ command = [
2525
disabled = true
2626

2727
[[depends-on]]
28-
vss = "^24"
28+
vss_text = "^24"
2929
libgpr2 = "^24"
3030
libadalang = "^24"
3131
markdown = "^24"

subprojects/libadalang_tools.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ executables = ["gnatmetric", "gnatpp", "gnatstub", "gnattest"]
1414
[[depends-on]]
1515
libadalang = "^24.0.0"
1616
templates_parser = "^24.0.0"
17-
vss = "^24.0.0"
17+
vss_text = "^24.0.0"

subprojects/markdown.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ command = [
2525
disabled = true
2626

2727
[[depends-on]]
28-
vss = "~24.0.0"
28+
vss_text = "~24.0.0"
2929

subprojects/prettier_ada.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ append = "${CRATE_ROOT}/lib/relocatable/prod"
1717

1818
[[depends-on]]
1919
gnatcoll = "*"
20-
vss = "*"
20+
vss_text = "*"

subprojects/vss.toml

Lines changed: 0 additions & 24 deletions
This file was deleted.

subprojects/vss_text.toml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name = "vss_text"
2+
description = "A high level Unicode text processing library"
3+
4+
long-description = """
5+
## Warning - Work in Progress
6+
7+
This crate is based on [`VSS`](https://github.com/AdaCore/VSS) (Virtual
8+
String System). VSS has been split into two crates:
9+
10+
* [`vss_text`](https://alire.ada.dev/crates/vss_text) (this crate): a library
11+
for Unicode text processing.
12+
* [`vss_extra`](https://alire.ada.dev/crates/vss_extra): libraries for handling
13+
JSON, Regexp, XML and other features based on `vss_text`.
14+
15+
Significant changes are planned in `vss_text` with the goal to make it a
16+
high-quality, high-performance library suitable for a wide range of
17+
applications.
18+
19+
The changes include the following (non-exhaustive list):
20+
21+
* API Changes
22+
* Introduce an immutable string type.
23+
* Repurpose the mutable `Virtual_String` type to a string builder type.
24+
* Possibly rename the root package `VSS` to a new more appropriate name. Alire crate,
25+
GPR project and repository names might change accordingly.
26+
* (done) Drop the support of multiple internal encodings in favor of a single internal
27+
encoding (likely UTF-8) for improved performance.
28+
"""
29+
30+
version = "25.0.0-dev"
31+
tags = ["unicode", "string", "text"]
32+
33+
authors = ["AdaCore"]
34+
maintainers = ["Vadim Godunko <[email protected]>", "Maxim Reznik <[email protected]>"]
35+
maintainers-logins = ["godunko", "reznikmm"]
36+
licenses = "Apache-2.0"
37+
website = "https://github.com/AdaCore/vss-text"
38+
39+
project-files = ["gnat/vss_text.gpr"]
40+
41+
[configuration]
42+
generate_ada = false
43+
generate_c = false
44+
45+
[configuration.variables]
46+
Max_Supported_Integer_Size = {type = "Enum", values = ["128", "64"], default = "128"}
47+
48+
[build-switches]
49+
"*".ada_version = "Ada2022"
50+
51+
[environment.'case(os)'.macos.DYLD_LIBRARY_PATH]
52+
append = "${CRATE_ROOT}/.libs/release/relocatable"
53+
54+
[environment.'case(os)'.windows.PATH]
55+
append = "${CRATE_ROOT}/.libs/release/relocatable"
56+

0 commit comments

Comments
 (0)