2313 Commits
Author SHA1 Message Date
Jeremy 671bdbd3ac Fix issue with all alert popups being red 2023-03-20 10:30:40 -04:00
Jeremy Rifkin 7a105ad0d0 Capture info to help triage an issue #4868 (#4871)
Trying to figure out #4868, unless anyone has an idea how to repro
locally
2023-03-13 12:06:47 -06:00
Jeremy Rifkin 53567c97ce Add a boundary check for the compiler context menu handler (#4870)
Fixes #4415
2023-03-13 12:06:23 -06:00
Jeremy Rifkin ca4ab7148b Give an error when no editor language is specified (#4864)
Following discussion at #4817 and with partouf/matt. An editor's
state.lang being undefined should probably always be an error since
it'll be susceptible to the same default language shenanigans.

Closes #4817
2023-03-12 19:40:12 -04:00
Matt Godbolt 515c130300 Make bracket colourisation configurable. (#4863)
See microsoft/monaco-editor#3013 for ways this can be improved in future
2023-03-12 16:25:34 -05:00
Jeremy Rifkin 6b31ec8baf Address lzstring decompress failure (#4859)
Fixes #4555. Might also address #4817.
2023-03-12 17:09:17 -04:00
Jeremy RifkinandMatt Godbolt 55dc09017e Compiler Picker UI Improvements (#4849)
Alrighty, round 2!

This PR makes the compiler picker dropdown taller (max height is to the
bottom of the screen)

![image](https://user-images.githubusercontent.com/51220084/224517409-17706ba6-fe85-444a-ad3b-f244f66eea5b.png)

I've added a toolbar button for opening the popout as well as a button
when the dropdown is open:


![image](https://user-images.githubusercontent.com/51220084/224517304-6478fca5-7bc1-4f87-b2ae-e9091d7d48bc.png)

![image](https://user-images.githubusercontent.com/51220084/224517317-83468805-1e9d-4bc6-8a4f-8786325f1e7b.png)

Then the modal interface allows text searching, filtering by compiler
category, and filtering by compiler instruction set. In the future I'd
like to replace the instructionSet property with an architecture
property so the filtering here can be a little better.


![image](https://user-images.githubusercontent.com/51220084/224517348-9cf40866-c5af-4274-84ba-21eb640ab2ea.png)

Demo of the category filtering:


![image](https://user-images.githubusercontent.com/51220084/224517529-5370b3f9-9ad3-4340-838a-b2d0a47c7467.png)

The text filtering highlights results the same as tomselect does:


![image](https://user-images.githubusercontent.com/51220084/224517490-d0dfa6d0-9b61-4be4-8cc7-ca4a4729a532.png)

I moved the favorites permanently to their own column so compilers
aren't jarringly shifted around the screen when favoriting /
unfavoriting.

Also added media queries so the modal looks ok on smaller screens:


![image](https://user-images.githubusercontent.com/51220084/224517563-bdf409c1-7e3a-4c73-812b-f02179b55799.png)


![image](https://user-images.githubusercontent.com/51220084/224517574-07fa2c8b-67d2-496d-9174-b1343e22bd62.png)

I think the only other two changes from the first PR are now the active
compiler is highlighted like it is in the tomselect dropdown and I
figured out how to reliably focus the search bar on modal open. (Oh, and
now clicking a compiler actually does something!)

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-03-12 17:07:44 -04:00
Jeremy Rifkin bbabd514a5 Update error alert styling (#4860)
![image](https://user-images.githubusercontent.com/51220084/224565888-e0b98abf-6e1c-4914-8695-b31a2275b364.png)
2023-03-12 17:03:36 -04:00
Matt Godbolt 14eb2b0802 Bump to latest LRU library and use new clear() method (#4852)
Tested locally; read release notes, all seems good.
2023-03-12 12:58:52 -05:00
Matt Godbolt 82b1ca9cce Bump to latest monaco (#4854)
Fixes #4355
2023-03-12 12:58:22 -05:00
Matt Godbolt 3461db6c19 Bump all minor versions - npm update; also bump webpack version speculatively... (#4851)
also npm lint and format to make sure any changes turn up.
2023-03-12 11:29:57 -05:00
Matt Godbolt 231ac3a38d Upgrade LRU-Cache (#4833)
- rephrase a few LRUs in terms of the new API
- add `okToCache` to the `CompilationResult` to make typing more correct
(I _think_)
2023-03-11 14:18:04 -06:00
Patrick Quist 8f118a22c3 Add default cmake arg (#4830) 2023-03-11 14:18:04 -06:00
Jeremy Rifkin 8cb2e22605 More work needed, thanks for the comments Ruben and Matt! :)
Revert "Compiler picker UI improvements (#4789)"

This reverts commit d4a8c2bdb2.
2023-03-11 14:18:03 -06:00
Jeremy Rifkin 46a4d6e0f8 Compiler picker UI improvements (#4789)
Makes the compiler picker dropdown a bit taller, prevents the dropdown from overflowing the page, and also adds a compiler picker popup
2023-03-11 14:18:03 -06:00
wxwisiasdf d4623e907c Duplicate COBOL regex matching fix 2023-03-02 22:33:26 +08:00
wxwisiasdf 0e6158b824 Fix COBOL regex issues 2023-03-02 13:52:31 +08:00
wxwisiasdf c359c75b0f COBOL Literals and single-quote form strings 2023-03-02 03:47:26 +08:00
wxwisiasdf 530257357a COBOL comments 2023-03-02 03:44:10 +08:00
wxwisiasdf 3155ecc93a Ident cases in END-PERFORM and etc 2023-03-02 03:04:13 +08:00
wxwisiasdf c48c170f64 Basic COBOL syntax highlighting 2023-03-02 02:58:32 +08:00
Mats Jun LarsenandMatt Godbolt 633eb82d18 Transition to ECMAScript Modules (#4780)
Makes the Compiler Explorer app, and all the tooling ESM compatible.
Things that have been done:

1. The package.json has `type: module` now
2. All relative imports have a .js ending
3. All directory imports are now directory/index.js to comply with ESM
standards
4. Dependency node-graceful is now imported into tree, because the
package is broken under esm
5. Dependency p-queue has been bumped to 7.x with ESM support
6. Dependency profanities has been bumped to 3.x with ESM support
7. Webpack config is now both ESM and CommonJS compatible
8. Non-ESM compatible imports have been rewritten
9. ESLint configuration has been tweaked to not fail on .js imports
10. Mocha is now hacked together and ran with ts-node-esm
11. Webpack is now hacked together and ran with ts-node-esm
12. Webpack config is now ESM compatible, so that it can be used in the
dev server
13. Cypress code still runs commonjs, and has been excluded from the
tsconfig
14. All sinon mock tests have been commented out, because sinon module
mocks do not work with ESModules (because ESModules are immutable)

A lot of tests are now giving warnings/errors to stdout, yet still pass.
Docenizer codegenerator scripts have been updated, but I did not re-run
them, and instead just changed their code.

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-02-27 18:06:38 -06:00
Jeremy Rifkin 384c297906 Fix trailing comma issue (#4775)
Make trailing commas more consistent throughout the project, fixes
config conflict between eslint and prettier. Resolves an oversight in
#4766.
2023-02-26 12:21:35 -05:00
Marc Poulhiès 73f7d0787f Initial support for Modula-2 language (#4747)
With the upcoming gcc 13 release and its shiny Modula-2 frontend, we
are introducing Modula-2 support in Compiler Explorer :)

Currently, only the gcc-snapshot build supports modula-2.

fixes #4688

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-02-23 20:43:56 +01:00
Patrick Quist 17ac75facd fix for device selection not saved in shared link (#4750)
Fixes #4749
2023-02-20 21:30:43 +01:00
Fábio de Souza Villaça Medeiros 7fe0b694c9 Update hook-mode.ts (#4756) 2023-02-19 22:21:35 +00:00
Ross Brunton ba9fdedc8f Expose autoCloseQuotes and autoSurround editor settings (#4744) 2023-02-19 22:13:37 +00:00
Jeremy Rifkin cf51b2317a Tsify static/tests/_all 2023-02-14 10:46:03 -05:00
Jeremy Rifkin 973ec6dfac Fix tool conversion bugs (#4731)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2023-02-13 16:11:38 -05:00
Fábio de Souza Villaça Medeiros 44db15d697 Update hook-mode.ts (#4705)
`hook-mode.ts` file update due to Hook language update.
The `use` keyword has been replaced by `import`.
2023-02-11 18:05:26 +01:00
+24 fb47642ff7 Convert tool.js to typescript (based off #4166) (#4474)
Signed-off-by: Markus <28785953+MarkusJx@users.noreply.github.com>
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: MarkusJx <28785953+markusjx@users.noreply.github.com>
Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
Co-authored-by: partouf <partouf@gmail.com>
Co-authored-by: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>
Co-authored-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Paul Taylor <paul.e.taylor@me.com>
Co-authored-by: Mats Larsen <me@supergrecko.com>
Co-authored-by: David Spickett <DavidSpickett@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Compiler Explorer Bot <mattgodbolt@users.noreply.github.com>
Co-authored-by: Enrico Seiler <eseiler@users.noreply.github.com>
Co-authored-by: Quinton Miller <nicetas.c@gmail.com>
Co-authored-by: James Murphy <72399781+mCodingLLC@users.noreply.github.com>
Co-authored-by: Miguel Ojeda <ojeda@users.noreply.github.com>
Co-authored-by: Ofek <ofekshilon@gmail.com>
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
Co-authored-by: Sebastian Büttner <mail@bueddl.de>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daniel Thornburgh <mysterymath@gmail.com>
Co-authored-by: Cory Bloor <Cordell.Bloor@amd.com>
Co-authored-by: marcosmartinezfco <marcosmartinezfco@gmail.com>
Co-authored-by: amyspark <amy@amyspark.me>
Co-authored-by: Robert Cohn <robert.s.cohn@intel.com>
Co-authored-by: Steve <hez2010@outlook.com>
Co-authored-by: Ofek <ofek@istraresearch.com>
Co-authored-by: kasperk81 <83082615+kasperk81@users.noreply.github.com>
Co-authored-by: Samuel Bronson <naesten@gmail.com>
Co-authored-by: Alfredo Correa <alfredo.correa+work@gmail.com>
Co-authored-by: Anastasia Stulova <38433336+AnastasiaStulova@users.noreply.github.com>
Co-authored-by: Michael Debertol <michael.debertol@gmail.com>
Co-authored-by: Madhur Chauhan <madhur4127@gmail.com>
Co-authored-by: Jessica Clarke <jrtc27@jrtc27.com>
Co-authored-by: Tobias Hieta <tobias@hieta.se>
2023-02-08 11:22:02 -05:00
Patrick Quist a15c725c4f Move url expansion to files (#4602) 2023-02-02 22:02:32 +01:00
Patrick Quist c022ca8a6c rebased ts/executor (#4605) 2023-02-02 20:46:15 +01:00
Mats Jun Larsen 87203f71cb Tsify lib/handlers/formatting.js (#4656) 2023-01-29 19:21:47 +01:00
Jeremy Rifkin 7e0c7fbd0c Fix some value handling in settings (#4644) 2023-01-26 11:06:45 -05:00
Patrick Quist db69a5e813 automatically fix old gccdump states (#4641) 2023-01-25 22:03:51 +01:00
Matt Godbolt d63e171e57 Update and fix link to MS privacy policy (#4638) 2023-01-24 16:40:45 -06:00
Jeremy Rifkin cde3212b1e Handle super long symbols in the cfg (#4616) 2023-01-24 15:44:56 -05:00
Arc_G 4b8b36ddb4 issue : #4628 , Dark theme arrow property corrected (#4629) 2023-01-21 14:31:47 -05:00
Jeremy Rifkin 41db591c54 Patch highlighting color scheme setting bug (#4622) 2023-01-20 11:12:46 +01:00
Jeremy Rifkin c6a548c765 Fix size computation under display:none (#4612) 2023-01-17 20:48:17 -05:00
Jeremy Rifkin 1ca6525abc Improve graph layout core hack now that types have been fixed upstream (#4610) 2023-01-17 01:41:58 -05:00
Jeremy Rifkin 6e2e98bdca Add dev favicon (#4598) 2023-01-15 20:19:41 -05:00
Jeremy 54227dea8d Little fix to tree.ts 2023-01-14 03:07:15 -05:00
Jeremy Rifkin 7a7a1dd906 Quick fixes for bugs noticed while testing (#4596) 2023-01-14 02:07:43 -05:00
Jeremy Rifkin 3f9813a3bb Rison error handling (#4594) 2023-01-13 23:50:36 -05:00
Jeremy Rifkin 8462cc496a Revert "Revert "Tsify rison.js (#4510)" (#4549)" (#4591) 2023-01-13 21:19:40 -05:00
Jeremy Rifkin 59f8c45246 Update static/modes typing (#4582) 2023-01-13 19:54:26 -05:00
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