1937 Commits
Author SHA1 Message Date
Jeremy Rifkin 33167a3024 Tsify main (#4520) 2023-01-13 19:52:00 -05:00
Jeremy Rifkin 07f37abe76 The War of The Types (#4490) 2023-01-13 19:22:25 -05:00
Ofek a360a3fbfd Fix #4585 (#4586) 2023-01-13 16:14:26 -05:00
Jeremy Rifkin ae133c2a02 Re-generated asm docs 2023-01-13 12:32:01 -05:00
Fábio de Souza Villaça Medeiros b94325e3d2 Add Line Mapping Support to Hook (#4580) 2023-01-13 17:25:35 +01:00
Jeremy Rifkin 3e606d3282 Fix the cuda and microsoft compilation from /noscript (#4524) 2023-01-12 11:04:28 -05:00
Marc Poulhiès 6d0d81d2c6 fix: pahole wrongly refuses to do anything (#4581)
Condition was badly changed in #3232 (compiling to binary objects)
2023-01-12 15:37:07 +01:00
Patrick Quist 092ce12e8e move emulation related fields to artifact system (#4567) 2023-01-11 21:07:38 +01:00
Patrick Quist 509075d1e4 Cmake build with ninja (#4287) 2023-01-11 21:02:29 +01:00
Marc Poulhiès 69055681d9 Support for compiling to binary object (#3232) 2023-01-11 19:39:25 +01:00
Matt Godbolt e463458a5c Port pe32-support to ts; replace some optional fields with T|undefined (#4438)
* Port pe32-support to ts; replace some optional fields with T|undefined
2023-01-10 20:46:47 -06:00
Fábio de Souza Villaça Medeiros 69550eb811 add Hook's icon and update lexicon (#4552) 2023-01-06 14:20:00 -06:00
Partouf fd09bacf6b formatting 2023-01-06 17:11:35 +01:00
Marc Poulhiès 8503ed60fa fix: empty exclude value in option file badly handled (#4546) 2023-01-06 16:57:43 +01:00
Patrick Quist f7d221d937 Revert "Tsify rison.js (#4510)" (#4549)
This reverts commit e1cc30941d.
2023-01-06 16:13:40 +01:00
partouf daba0c2fe2 change check order and add error logging 2023-01-05 01:08:06 +01:00
Patrick Quist ee82d72364 Update ceconan.ts (#4534) 2023-01-05 00:59:17 +01:00
kasperk81 d13574d178 display crossgen2 version in asm output (#4526)
dotnet 6 and 7 will also show the version once there is a new deployment. for now they are showing 7.0.0-dev and <unknown version> respectively
2023-01-03 18:18:07 -06:00
Matt Godbolt c1a0ef17b4 Handle zero-sized files (#4530)
* Handle zero-sized files

It appears that having a zero-sized file won't call our `next()` handler which means we wedge forever and eventually time out.

This is a workaround. Upstream issue filed as https://github.com/mafintosh/tar-stream/issues/145
2023-01-03 18:18:07 -06:00
Matt Godbolt 64d68dafef Handle non-200s from conan (#4529)
* Handle non-200s from conan
2023-01-03 18:18:07 -06:00
Patrick Quist 96e7f1d7ec dont query conan if library is autodetect (#4528) 2023-01-03 18:18:07 -06:00
Jeremy Rifkin e1cc30941d Tsify rison.js (#4510)
* Tsify rison.js

* Turn eslint back on

* Improve typing, cleanup code

* Matt comments

* Prettier-ignore a type declaration

* A couple small type tweaks
2023-01-03 18:18:07 -06:00
Jeremy Rifkin 6a35640b5b Quick fix for #4519 2023-01-03 18:18:07 -06:00
Jeremy Rifkin c2bc8c728e Try to address an unhandled exception that's crashing instances (#4519)
* Try to address an unhandled exception that's crashing instances

* Quick amendment
2023-01-03 18:18:07 -06:00
Patrick Quist 8fcc108873 Fixcrashissue (#4518)
* await for conan downloads
* await later

This fixes #4512 - essentially any exceptions thrown before the `await` of the build environment would leave a "task" that was trying to write to the temp dir. the temp dir would then be deleted, and the untar would fail, and as nobody was await-ing its return (as the awaits used to be _after_ the throwing code) then we'd get an uncaught exception.
2023-01-03 18:18:07 -06:00
Matt Godbolt dc71e7ac7f More catching 2023-01-03 18:18:07 -06:00
Matt Godbolt 184a6073fd Catch exceptions in tar handling (#4515)
- adds error handlers for all streams
- catches exceptions raised in the non-trivial `entry` handler
- rejects in all cases

Partially addresses #4512
2023-01-03 18:18:07 -06:00
Matt Godbolt c2780113b4 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
2023-01-03 18:18:06 -06:00
Jeremy Rifkin e7f726c332 Tsify lib/storage (#4499)
* Tsify lib/storage

* Add @types/request

* Fix get/post types

* Better type solution
2023-01-03 18:18:06 -06:00
Jeremy Rifkin de670d4a44 Tsify lib/shorteners (#4504)
* Convert lib/shorteners to ts

* Improved types
2023-01-03 18:18:06 -06:00
Steve 61aad90f94 Various enhancements for dotnet (#4362) 2023-01-03 18:18:06 -06:00
Rubén Rincón Blanco 26b027a8b2 Mark Assembly compilers cfg-able (#4461) 2023-01-03 18:18:06 -06:00
Patrick Quist 1d7e3c9594 minimal ts conv of llvm-ir (#4477) 2023-01-03 18:18:06 -06:00
Jonathan Reichelt Gjertsen e361a9b2f6 Working CL430 compiler 2022-12-22 01:01:26 +01:00
Jonathan Reichelt Gjertsen 920565bc99 Update optionsForFilter 2022-12-21 23:39:25 +01:00
Jonathan Reichelt Gjertsen 6e715b2ab1 Add to start working on issue #4480 2022-12-21 22:17:43 +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