504 Commits
Author SHA1 Message Date
Jeremy Rifkin 3d2b895e02 Support 24-bit rgb ansi sequences (#3664)
* Add 24-bit rgb color support

* Added test case for 24-bit ansi sequences
2022-05-15 01:12:43 -04:00
Jeremy Rifkin 371e8e6241 Reset stream styles between outputs (#3662) 2022-05-14 15:19:08 -04:00
Rubén Rincón Blanco 0c2070aa85 Renable license checks (#3619)
* Renable license checks

* Set correct copyright date for unfurl-tests

* Fix small typo

* Fix license check line spacing

* Disable license check

* Go to old format for gcc dump view
2022-05-12 03:18:42 +02:00
Matt Godbolt f2c1e0bd31 The Grand Reformat (#3643)
* The Grand Reformat

- everything made prettier...literally
- some tweaks to include a few more files, including documentation
- minor changes to format style
- some tiny `// prettier-ignore` changes to keep a few things the way we like them
- a couple of super minor tweaks to embedded document types to ensure they format correctly
2022-05-09 23:13:50 -05:00
Matt Godbolt 19ddc3384e Port cache code to Typescript (#3605)
* Port cache subsystem to typescript
* Extract an interface class
* Use async for s3 cache; add tests for failure case
2022-05-02 15:19:13 -05:00
Patrick Quist 5969633862 handle vt100 reverse video escape code (#3598) 2022-04-29 14:14:03 -05:00
Rubén Rincón Blanco 4965bd6c81 All semver comparisons now ensure it's safe to do so (#3562)
* All semver comparisons now ensure it's safe to do so

* Oops, use correct class

* Remove leftover import

* Leave the Zig fixes for another PR

* Fix linter

* Fix test issues

* Make linter happy, yet again

* What?

* Address PR review
2022-04-26 15:24:40 +02:00
RabsRincon 40fe769459 Set comma-dangle to always in server code and es5 in client code 2022-04-26 05:26:48 +02:00
Matt Godbolt 21b764f392 Unify comma configuration; and apply format to some files. (#3559) 2022-04-25 18:22:11 -05:00
Jeremy Rifkin 16b071b9f0 Updated x86 docenizer to read adjacent tables (#3541)
* Updated x86 docenizer to read adjacent tables

* Added regression test
2022-04-23 22:04:09 +02:00
Matt Godbolt 074549fea4 Introducing Backtrace.io as a sponsor (#3342)
* Introducing Backtrace.io as a sponsor
2022-03-16 21:39:10 -05:00
Jeremy Rifkin 419d386bd9 Added keyword-spacing eslint rule and fixed instances of inconsistent spacing (#3428) 2022-03-07 22:38:58 -06:00
Matt Godbolt dc06a85242 Handle lines with no opcodes (#3416)
Fixes #3276
2022-03-01 05:55:45 -06:00
Jeremy Rifkin af4a55ed5e Fix preprocessor filtering with url #includes (#3398) 2022-02-26 13:34:54 -06:00
Rubén Rincón Blanco 48eee26d2c Group some files to their own folders (#3384)
* Group some files to their own folders

In etc/scripts/, added disasms/, docenizers/, and util/ folders
In lib/, added mapfiles/, and parsers/ folders (+moved google.js to
shortener)
In static/, added widgets/ folder

Added cypress folder to .gitignore

* Address Matt's PR reviews

* Move new Pane renaming to folder
2022-02-22 00:18:21 +01:00
partouf 3a885634e8 lintfix 2022-02-11 15:43:41 +01:00
Jeremy Rifkin 74efcfa754 Preprocessor output panel (#3330) 2022-02-11 15:42:41 +01:00
partouf a894faf1eb lintfixes 2022-02-11 00:19:16 +01:00
Yusuf Bham 41853b4a8c Fixes check for empty request body (#3350)
Check `req.body` being empty in addition to `source` being `undefined`.

Closes #3349
2022-02-10 23:43:16 +01:00
Matt Godbolt 5f0a3a7f23 Re-enable ansi tests. CC @matsjla 2022-01-31 22:17:30 -06:00
Mats Larsen 9b890b1656 Refactor handling of Assembly Documentation Providers (#3247) 2022-01-31 14:05:21 +01:00
Mats Larsen 1406669452 Move BaseFormatter into /lib/formatters (#3250) 2022-01-24 21:07:52 -06:00
Elektron72 bf9d2334b9 Add AVR assembly documentation (#3218) 2022-01-07 16:30:56 +01:00
partouf 7e294e7473 fix unittest 2021-12-28 14:50:40 +00:00
Elektron72 5a350691bb Add assembly documentation for 6502 (#3210)
This PR adds assembly documentation for the MOS 6502 and WDC 65C02 instruction sets, which are output by cc65.
2021-12-23 16:34:08 +01:00
Mats Larsen 810a1d0918 Describe which opcode and arch was not found (#3175) 2021-12-15 19:10:50 +01:00
Matt Godbolt eb002af78f Update prettier, reformat json files 2021-12-13 23:12:25 -06:00
Matt Godbolt 73c758671a Update eslint et al 2021-12-13 22:40:03 -06:00
Mats Larsen d7c4eecbf7 Refactor and return 404 from AsmDocs APIs (#3143)
Refactors the handler for the AsmDocs API to reduce code duplication.

**Breaking changes proposed**

- API will now return 404. This used to return 200 with "Unknown opcode" which is what led to issue #3117. Following cases has been changed:
  1. archiecture was not found
  2. instruction opcode was not found
- API will now return 406 not acceptable when the accepted content type is not text or json
- There is no longer a `result` field on a 200 request, instead the assembly documentation object is returned.
- There is no longer a `found` field on any request, the HTTP codes indicate whether it was found or not (200 means found)

**New features**

- The frontend will only request the opcode for an instruction set at most once, caching every single outgoing request.
- The "There was an error fetching the documentation for this opcode" has been adjusted to contain what went wrong.

Relevant tests have been added and updated.
2021-12-07 11:43:08 +01:00
Rubén Rincón Blanco f7d77bd07e Modify the path include guard to fix some false-positives (#3083)
Closes #3045
2021-11-21 13:45:50 +01:00
Matt Godbolt cf7d70402e Await for things (#3086)
* Await for things

We had a number of things that aren't await()ing their promises.
That led to non-deterministic compiler settings like Intel support.
I used the IDE to find them all and fix the ones that I thought looked
important.

More generally we should use tslint (once we're all typescript) to
ensure this more generally. I tried the eslint equivalent but it
either overreacted or didn't catch anything.

Closes #3085
2021-10-31 15:31:45 -05:00
Patrick Quist 379a89f41f skip demangling (c++filt) tests when not on linux to allow more people to run the unittests (#3013) 2021-10-06 20:15:52 +02:00
MarkusandMats Larsen 511236c8ec Convert ansi-to-html.js to typescript (#2988)
* Convert ansi-to-html.js to typescript

Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com>
Co-authored-by: Mats Larsen <me@supergrecko.com>
2021-10-04 22:29:41 -05:00
Mats Larsen 66e5734da3 Create test case for #2995 (#3002)
Adds a Java assembly test case for issue #2995 which was resolved in #2996
2021-10-05 01:45:05 +02:00
Austin Morton dc49b67741 Fix sinon lint warnings in tests 2021-10-03 14:16:57 -04:00
Mats Larsen e7b9cbda91 Respect tab width and tabs/spaces settings for format APIs (#2957)
Site settings for tab width and tabs vs spaces are now being used when sent to the /api/format APIs.

This patch also includes some tiny internal refactoring on the bits related to the formatting API.
2021-09-26 23:56:39 +02:00
Patrick QuistandRabsRincon c3a72742b3 Remove user-agent dependencies and add some extra metadata stuff (#2943)
* lintfix

* dont look at user agent to escape things

* Clean my old code a tad

* Fix lint error

* some more metadata options and tests for it

* refactor underscore calls

Co-authored-by: RabsRincon <ruben@rinconblanco.es>
2021-09-17 20:14:53 +02:00
Patrick Quist e24f724e47 Options cleanup (#2924)
* getting rid of compiler.libs

* old widget no longer needed

* move supportedLibraries code to base-compiler

* bugfix

* oops

* grmbl

* bugfix remote msvc compilers
2021-09-13 20:22:39 +02:00
bc6757ae94 Pascalchanges (#2881)
* Changes to allow Program (vs Unit) in Object Pascal

* add possibility of dpr

* more flexibility with pascal filenames

* lintfixes

* i have no idea what im doing

* apply changes to pascal-win

* pascal fixes

* pascal projectfile changes

* work in progress

* bugfixes

* bla

* bugfixes

* mostly working

Co-authored-by: paul mcgee <paul.mcgee.8@bigpond.com>
Co-authored-by: Paul McGee <paulmcgee1969@gmail.com>
2021-09-13 20:22:27 +02:00
Patrick Quist b744d6ad9e Asm-parser binary bugfix (#2904)
* unittests

* extra label definition screws up logic

* fix test
2021-08-31 14:07:23 +02:00
partouf 9d382eb03e bugfix mainsource detection 2021-08-29 13:11:15 +00:00
Rubén Rincón Blanco b87f8569e3 Make linter happy 2021-08-28 20:10:51 +02:00
RabsRincon d562ae0376 Add test for forcedVersion flag 2021-08-28 19:28:03 +02:00
RabsRincon 854fdf7127 Some more semver tests 2021-08-28 02:43:44 +02:00
RabsRincon 0b75857df3 Only focus on the first word of semver for ordering
Helps with #2860
2021-08-28 02:40:05 +02:00
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
Mats LarsenandMatt Godbolt 53b9e0ac59 Support multiple formatter types for /api/format (#2818)
* Make /api/format handle multiple formatter types
* Ignore preferred style if the formatter is a 'one true style' formatter
* Add tests for base formatter
* Document /api/formats and /api/format/<formatter> usage
* Document adding a new formatter
* Update amazon config

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-08-24 18:46:38 -05:00
Mats Larsen b6c2380c56 Assembly API documentation for Java Bytecode (#2817)
* Add assembly documentation endpoint for Java bytecode
* Upstream asm docenizer for Java
* Remove jvms.html from gitattributes as it is never checked into vcs
* EOF line for docenizer-java.js
* Use find-node to locate nodejs
* Format code according to style guide
2021-08-14 12:56:33 -05:00
ca017bac31 Add support for heterogeneous compute (#2836)
* Extract device code from assembly files.

This commit by itself does not actually add any viewing panes for the
extracted device code, nor does it provide any means to provide
device-specific postprocessing steps.

* Add a rudimentary device view.

This doesn't handle multiple device outputs correctly at the moment, and
it provides no opportunity to view device code differently from
non-device code for now.

* Lint issues

* Some more WIP getting it working.

* Add device extraction code

* More fixes, and keep state

Co-authored-by: Joshua Cranmer <joshua.cranmer@intel.com>
Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-08-14 12:53:22 -05:00
RabsRincon 565a4f7b48 Actually fix Windows options-handler tests for realsies now 2021-08-13 06:11:32 +02:00