File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 33
33
# Explore foundry support in windows
34
34
- os : windows-2022
35
35
type : foundry
36
- # Deprecation alerts in vyper with newer python, which trip tests
37
- - python : 3.12
38
- type : vyper
39
36
# brownie does not install correctly with Python 3.12
40
37
- python : 3.12
41
38
type : brownie
59
56
python-version : ${{ matrix.python }}
60
57
- name : Install dependencies
61
58
run : |
62
- pip install "solc-select>=v1.0.0b1"
63
- solc-select use 0.5.7 --always-install
64
59
pip install .
60
+ solc-select use 0.5.7 --always-install
65
61
- name : Set up nix
66
62
if : matrix.type == 'dapp'
67
63
uses : cachix/install-nix-action@v23
Original file line number Diff line number Diff line change @@ -206,9 +206,21 @@ def _run_vyper_standard_json(
206
206
) # convert bytestrings to unicode strings
207
207
208
208
vyper_standard_output = json .loads (stdout )
209
+
209
210
if "errors" in vyper_standard_output :
210
- # TODO format errors
211
- raise InvalidCompilation (vyper_standard_output ["errors" ])
211
+
212
+ has_errors = False
213
+ for diagnostic in vyper_standard_output ["errors" ]:
214
+
215
+ if diagnostic ["severity" ] == "warning" :
216
+ continue
217
+
218
+ msg = diagnostic .get ("formattedMessage" , diagnostic ["message" ])
219
+ LOGGER .error (msg )
220
+ has_errors = True
221
+
222
+ if has_errors :
223
+ raise InvalidCompilation ("Vyper compilation errored" )
212
224
213
225
return vyper_standard_output
214
226
You can’t perform that action at this time.
0 commit comments