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
Argon is a programming language for writing constraint-based integrated circuit layout generators.
@@ -34,7 +33,7 @@ Future versions of Argon will hopefully support:
34
33
35
34
To use Argon, you will need:
36
35
-[Rust (tested on 1.90.0)](https://www.rust-lang.org/tools/install)
37
-
- One of [Neovim](https://github.com/neovim/neovim/blob/master/INSTALL.md) or [VS Code](https://code.visualstudio.com/download)
36
+
- One of [Neovim (version 0.11.0 or above)](https://github.com/neovim/neovim/blob/master/INSTALL.md) or [VS Code (version 1.100.0 or above)](https://code.visualstudio.com/download)
38
37
39
38
Begin by cloning and compiling the Argon source code:
40
39
@@ -81,6 +80,15 @@ Add the following key:
81
80
}
82
81
```
83
82
83
+
Compile the VS Code extension by running the following from the root directory of your Argon clone:
84
+
85
+
```bash
86
+
cd plugins/vscode
87
+
npm install
88
+
npm run compile
89
+
cd ../..
90
+
```
91
+
84
92
To open an example Argon workspace, run the following from the root directory of your Argon clone:
85
93
86
94
```bash
@@ -91,11 +99,19 @@ We recommend defining an alias in your shell configuration to simplify future co
91
99
92
100
```bash
93
101
alias codear="code --extensionDevelopmentPath=<absolute_path_to_argon_repo>/plugins/vscode"
102
+
```
103
+
104
+
With this alias defined, you can now run:
105
+
106
+
```bash
94
107
codear core/compiler/examples/argon_workspace
95
108
```
96
109
97
110
Open the `lib.ar` file within the workspace. You can then start the GUI by running Command Palette > Argon LSP: Start GUI.
98
111
112
+
> [!WARNING]
113
+
> If you cannot find the command for starting the GUI but did not notice any obvious errors, you may be on an old version of VS Code.
114
+
99
115
From within the GUI, type `:openCell test()` to open the `test` cell. You should now be able to edit layouts
100
116
in both VS Code and the GUI.
101
117
@@ -133,10 +149,11 @@ Hit `d` to use the Dimension tool and click on the top edge of each rectangle. C
133
149
The dimension should now be highlighted yellow, indicating that you are editing that dimension. Type `5.` and hit enter to set the value
134
150
of the dimension (the decimal point is important, since just `5` is considered an integer literal rather than a float).
135
151
136
-
Double check that there are no errors in your code editor, or the GUI will not be able to
137
-
display the updated cell. If you make a mistake,
138
-
you can undo and redo changes from the GUI using `u` and `Ctrl + r`,
139
-
respectively, or manually modify the code in the text editor if needed.
152
+
> [!WARNING]
153
+
> Double check that there are no errors in your code editor, or the GUI will not be able to
154
+
> display the updated cell. If you make a mistake,
155
+
> you can undo and redo changes from the GUI using `u` and `Ctrl + r`,
156
+
> respectively, or manually modify the code in the text editor if needed.
0 commit comments