You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-19Lines changed: 17 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,27 +8,21 @@ For more information about LiquidJava, visit our [website](https://catarinagambo
8
8
9
9
## Development Environment Setup
10
10
🚀 Check the following video on the setup:
11
-

11
+

12
12
13
13
### Setup Instructions
14
14
15
-
#### Option 1: Using Codespaces or Dev Containers (Recommended)
15
+
#### Option 1: Using Codespaces (Recommended)
16
16
17
-
1. Open the repository in GitHub Codespaces or use VS Code's "Remote-Containers: Open Folder in Container" command.
18
-
2. Install the extension: View → Extensions → Click on the "..." (More Actions) button → Install from VSIX → `/workspaces/liquidjava-examples/extension/liquid-java-0.0.15.vsix`.
19
-
3. After the information that the extension is activated, do `Ctrl + Shift + P` and write `Developer: Reload Window `
20
-
5. Open examples: File → Open Folder → `examples/demo/src/`.
21
-
6. You can try changing the example to see an error appear.
22
-
7. If needed, reload window again using `Developer: Reload Window `.
17
+
- To use Codespaces, make sure you’re logged in to GitHub, click the button below, select `4-core`, and then press `Create codespace`. The codespace will open in your browser and will automatically install the LiquidJava extension shortly after.
23
18
19
+
[](https://codespaces.new/CatarinaGamboa/liquidjava-examples)
24
20
25
-
#### Extension Activation
21
+
#### Option 2: Using Dev Containers
26
22
27
-
- The extension may take some time to be activated. While a small wheel in the bottom right of VS Code window is spinning, the extension is being loaded.
28
-
- The extension will only activate when opening a Java project with the liquidjava-api.jar present.
29
-
23
+
- If you prefer to test it locally, you can use VS Code's Dev Containers. Make sure you have Docker and the Dev Containers extension installed in VS Code and use the "Remote-Containers: Open Folder in Container" command. Then, run the `setup.sh` script to install the extension.
30
24
31
-
#### Option 2: Manual Setup
25
+
#### Option 3: Manual Setup
32
26
33
27
If the automatic setup didn't work correctly, follow these manual steps:
34
28
@@ -55,17 +49,22 @@ If the automatic setup didn't work correctly, follow these manual steps:
4. Ensure the redhat extension for [Language Support for Java™](https://marketplace.visualstudio.com/items?itemName=redhat.java) is installed and enabled.
52
+
4. Ensure the Red Hat extension for [Language Support for Java™](https://marketplace.visualstudio.com/items?itemName=redhat.java) is installed and enabled.
59
53
60
-
5. Open examples:
61
-
- Go to File → Open Folder → examples/demo/src/
54
+
5. Open the examples:
55
+
- Go to File → Open Folder → examples/demo
62
56
- Or use the terminal:
63
57
```bash
64
58
code examples/demo/src/
65
59
```
66
60
67
61
### Troubleshooting
68
62
63
+
#### Extension Activation
64
+
65
+
- The extension will only activate when opening a Java project with the `liquidjava-api.jar` present in the workspace.
66
+
- If the extension doesn't activate properly, do `Ctrl + Shift + P` and run `Developer: Reload Window`.
67
+
69
68
#### VSIX File Issues
70
69
71
70
If you see "End of central directory record signature not found" or similar errors:
@@ -80,17 +79,16 @@ If you see "End of central directory record signature not found" or similar erro
80
79
cat ./extension/liquid-java-0.0.15.vsix | head
81
80
```
82
81
83
-
84
82
## Working with the Extension
85
83
86
84
1. Ensure your project is correctly set up with the `liquidjava-api.jar`.
87
85
2. When opening a Java file, the extension will automatically verify your LiquidJava annotations.
88
86
3. Errors will be highlighted directly in your code editor.
87
+
4. An item in the status bar at the bottom left of the editor indicates the extension's current state. You can check the extension logs by clicking on it.
89
88
90
89
## Download JARs
91
90
92
-
`examples/demo/lib` folder contains the api jar that you can use in your projects.
93
-
91
+
`examples/demo/lib` folder contains the API jar necessary to run LiquidJava.
0 commit comments