Commit Graph
1907 Commits
Author SHA1 Message Date
Matt Godbolt 749319f791 Slightly more controversial bumpings (#4503)
- latest sentry, tar-stream, which, some yamljs versions
- latest eslint-* stuff
- latest webpack manifest
- Applies all the automatic fixes for newer lint rules
- Bump the webpack version

applies new tslint stuff
2022-12-28 11:42:14 -06:00
Jeremy Rifkin 993c363126 Tsify lib/storage (#4499)
* Tsify lib/storage

* Add @types/request

* Fix get/post types

* Better type solution
2022-12-28 10:19:04 -07:00
Jeremy Rifkin 92b17d203d Tsify lib/shorteners (#4504)
* Convert lib/shorteners to ts

* Improved types
2022-12-28 10:18:37 -07:00
Steve f05b4b6f07 Various enhancements for dotnet (#4362) 2022-12-27 13:38:19 -06:00
Rubén Rincón Blanco b5ba2c0d7d Mark Assembly compilers cfg-able (#4461) 2022-12-24 19:46:04 +01:00
Patrick Quist 07236628bb minimal ts conv of llvm-ir (#4477) 2022-12-24 19:45:47 +01:00
Matt Godbolt d94eb203c1 Add lint rule for unused imports, and fix (#4476) 2022-12-20 15:51:39 -06:00
Rubén Rincón Blanco fe5f5e11cd Add .hword and .octa to datadef regex (#4460)
Closes #4434
2022-12-20 18:31:26 +01:00
Matt Godbolt 57a647b8a3 Add the result inside the CompilationResult (#4475) 2022-12-20 08:15:39 -06:00
Matt Godbolt 9f2954359f Fix #4469 (#4473)
* Fix #4469

Errors now look like:

```
Internal Compiler Explorer error: Error: Internal error running asm parser:
./dump-and-parse.sh: line 4: /usr/local/bin/asm-parser: No such file or directory

    at CEAsmParser.parseAsmExecResult (/home/matthew/dev/ce/compiler-explorer/lib/external-parsers/base.ts:77:19)
    at CEAsmParser.objdumpAndParseAssembly (/home/matthew/dev/ce/compiler-explorer/lib/external-parsers/base.ts:101:21)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async DefaultCompiler.objdump (/home/matthew/dev/ce/compiler-explorer/lib/base-compiler.ts:414:31)
    at async Promise.all (index 0)
    at async DefaultCompiler.checkOutputFileAndDoPostProcess (/home/matthew/dev/ce/compiler-explorer/lib/base-compiler.ts:1356:16)
    at async /home/matthew/dev/ce/compiler-explorer/lib/base-compiler.ts:2236:41
    at async run (/home/matthew/dev/ce/compiler-explorer/node_modules/p-queue/dist/index.js:163:29)
Compiler returned: -1
```

which at least gives context on why the parsing failed. And per discussion with @partouf we'll blow up at construction time if the file isn't there, which means the above is more to cover "what if the tool dies".
2022-12-19 22:41:04 -06:00
Matt Godbolt 6348917e15 Separate shareable tool type from server ITool (#4472)
* Separate shareable tool type from server ITool

I realised we were using the "Tool" on both client and server, but the client only has the JSON-able data of Tool, not the interface/object Tool (now renamed to `ITool`).

* Fix tests
2022-12-19 22:40:27 -06:00
Tobias Hieta 96aa4bea0f Add support for clang-cl and llvm-undname (#4371)
* Added llvm demangler code

* Added clang-cl compiler class
2022-12-18 21:10:04 +01:00
Jeremy Rifkin 7a56ee84f7 Assert and unwrap utilities (#4437)
* Add assert and unwrap utilities

* Playing around with diagnostics

* lib/assert diagnostic implementation

* Remove temporary testing stuff

* Reset package-lock.json to before I messed with it

* Further refinements and integration

* Added licence and removed an obsolete eslint directive
2022-12-18 10:30:17 -05:00
Matt Godbolt 00158d1ba1 TS-ify logger (#4431)
* TS-ify logger

Also redoes some pretty nasty morgan workarounds in favour of an actual real stream.

* Fix tests. and actually write some

* Formatting

* Add clarifying comment
2022-12-18 10:29:56 -05:00
Matt Godbolt 3556033026 Moving compilation queue to ts (#4440)
* Moving compilation queue to ts
2022-12-16 07:37:12 -06:00
Matt Godbolt 1536523c53 Port csp.js to ts, remove _ dep (#4439) 2022-12-14 20:44:26 -06:00
Matt Godbolt cad5227756 Don't try and hack the compilation results (#4429)
* Don't try and hack the compilation results

Carbon tried to synthesize "having run" by overriding and hacking a result routine...but did so _after_ it had been cached. So cached results were broken, but live results not.

This "fixes" by adding a post-compilation, but pre-cache hook and uses that instead. Naming is terrible.

I also took the time to fix the `CompilationResult`'s `buildResult`

Closes #4426
2022-12-12 21:38:22 -06:00
Patrick Quist 9de0b70af3 min effort ts conv dropintool (#4412) 2022-12-12 20:11:05 -06:00
partouf 2d28398c9b demangling fix 2022-12-10 19:11:45 +01:00
Patrick Quist 67f71f2b51 Support patched clang for faster opt-view (#4416) 2022-12-10 18:17:51 +01:00
Patrick Quist f598cf8aaf fix interpreting with multiple files (#4407) 2022-12-07 20:03:48 +01:00
Jeremy Rifkin e1fb48714c Updated CompilerProps.get typing (#4397)
* Updated CompilerProps.get typing

* Get rid of two any casts in options-handler.ts

* Fixed mistaken types
2022-12-06 19:56:58 -05:00
Jeremy Rifkin 81ed9f285d First pass ts conversion for lib/mapfiles (#4386) 2022-12-05 20:29:24 -05:00
Jeremy Rifkin e7b10519f7 Tsify options-handler (#4396)
* First pass conversion of options-handler to ts

* Small tweaks

* Fix tests
2022-12-03 19:37:57 -05:00
Jeremy Rifkin 973c9427f0 Ts-ify objdumpers (#4385)
* Ts conversion for objdumpers

* Updated copyright years
2022-12-03 11:41:43 -05:00
Jeremy Rifkin 527729f897 Tsify compiler finder (#4390)
* Convert compiler-finder to ts

* Updated CompilerProps getter typings to be way more awesome

* A couple small tweaks

* Address review comments
2022-12-03 11:28:10 -05:00
Jeremy Rifkin 40e17145a8 Make the linter happy (#4393) 2022-12-03 17:03:59 +01:00
Jeremy Rifkin 7e9b5cb241 Converted argument-parsers to ts (#4389) 2022-12-02 14:36:23 -05:00
Jeremy Rifkin 836a2d7005 Tsify generated asm docs (#4388)
* Converted amd64 docs to ts

* 6502

* 6502 part 2

* arm

* avr

* evm

* java

* llvm

* python

* Fix bug with only getting the first paragraph

* Updated help messages
2022-12-02 14:36:10 -05:00
Matt Godbolt 85da9e784b Ts-ify carbon (#4384) 2022-12-02 10:58:23 -06:00
Patrick Quist ae0fee1095 first bits of compiler interface (#4378) 2022-12-02 13:42:47 +01:00
Matt Godbolt 648dd89477 AsmParser implements IAsmParser (#4382) 2022-12-02 13:37:03 +01:00
Matt Godbolt 2b5de93c6a Port fortran.js to typescript (#4381)
* Port fortran.js to typescript
* @jeremy-rifkin suggestions
2022-12-01 21:32:08 -06:00
Jeremy Rifkin 1294c3f949 Control flow graph tool rework (#3899)
* Removed old code

* Base functionality

* Work on edge offsets

* Setup interval trees for edges

* linter things

* Formatting

* Added syntax highlighting

* Cleanup and simplification. Improved handling of direct dropdown edges.

* Basic zoom/pan

* Remove old blocks from output

* Fix distance calculation

* Added function selector

* Improved zoom behavior

* figue 8 logic

* Canvas scaling / repainting, updated colors

* Don't truncate output, also removed some console.logs

* Tweak to zoom system

* Replaced canvas stuff with svg

* Experimenting with adding shadows to edges

* Removed shadows, was causing problems. Improved how blocks with lots of incident edges are handled.

* Slightly improved edge system

* some work on implementing segment priority system from cutter

* Optimization to rendering process. I was worried the graph layout algorithm was causing the page to hang but it turns out it was adding elements to the page with +=

* Removed need for storing the previous segment

* refactor, splitting up some logic

* Cleaned up logic and got horizontal edges working better

* Remove vis-network dependency

* Updated package-lock, removed @import vis-network css stuff, added a todo for myself

* Cleaned up notes and error messages. Added comments. Clear the pane if there's no function to display

* Added layout time information, implemented .resize

* Light theme

* State work and bug fix for dragiing

* Re-dading lost dark theme changes

* Added jquery import

* Cleaned up console.logs

* Added basic block count

* Incorporated PR review comments; Fixed cypress (hopefully), added documentation, improved the dropdown, and fixed dropdown items not being cleared with an empty result.cfg

* Ran format
2022-11-29 22:28:10 -05:00
partouf 2455e412fa obsolete vars 2022-11-29 00:54:37 +01:00
partouf b6d459c9af format and lint 2022-11-28 23:29:38 +01:00
Patrick Quist 4f1bbcf526 .net - compileToBinary fix (#4353) 2022-11-28 23:13:01 +01:00
kasperk81 df607d5f6b dynamically set targetFramework (#4354) 2022-11-28 23:09:48 +01:00
Marc Poulhiès 2fa2bbb16a refactor: renames the CompilerFilters type (#4346)
The type which probably started as a real enum of possible post filtering
options now also includes options used for compilers' invocations.

The type was already split, but the naming was not reflecting this in the other
part of the code.

This changes tries to apply a simple renaming to the type only (corresponding
variables are left as 'filters').

While doing so, some typing error were discovered around the GccDump feature.
A fix for this will follow in a different PR.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-11-28 21:37:15 +01:00
Steve 75b9d30485 Support trunk and execution for .NET (#4351)
* Support trunk and execution for .NET
* Adjust compilers order
* Support stdin
* Update samples
2022-11-27 10:14:35 -06:00
Jeremy RifkinandMatt Godbolt e13fe4a2f9 Mg/props ts (#4340)
* WIP

* Type changes to the property getter

* Finish getting types working for properties.ts

* Reduce type casts in exec.ts

* Format files

* Remove old comment

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2022-11-26 13:56:04 -05:00
Ofek 21cb6f0fe5 Fix4312 (#4338)
* Fix #4312
2022-11-26 10:42:43 -06:00
Matt Godbolt e38d248aeb Fixes for .NET 7 (#4347)
- check return code of restore
- set env vars to prevent file size blowout
2022-11-26 10:42:24 -06:00
Steve 959822a74c Fix F# build failure (#4344)
* Fix FSharp compilation
2022-11-26 09:46:01 -06:00
Steve 0961116011 Fix crossgen2 arguments (#4342)
* Fix crossgen2 arguments
2022-11-25 17:48:26 -06:00
Matt Godbolt 065a166616 Work in progress on net .NET
- uses new installs
- works around issue where empty output would crash runCrossgen2

Not working yet (at least locally).
2022-11-25 08:03:30 -06:00
Steve 201f848b50 Update dotnet script (#4337)
* Uses new way to invoke compilers
* adds new
2022-11-25 07:39:10 -06:00
Matt Godbolt ee54aa914e Don't try and set up buildenv or external parser if remote (#4332)
* Don't try and set up buildenv or external parser if remote
2022-11-23 08:27:15 -06:00
Matt Godbolt f371b10324 Fail if compiler discovery fails (#4331)
* Fail if compiler discovery fails
2022-11-23 08:25:21 -06:00
Rubén Rincón Blanco f4d30924cd Fix error with null stderr (#4322)
* Fix error with null stderr

* Fix test
2022-11-22 15:05:37 +01:00