Patrick Quist
675b428846
Fix drag source component state creation in compiler pane ( #5000 )
2023-04-27 17:49:07 +02:00
Jeremy Rifkin and mmozeiko
2800d90be8
Set maxOptions for the language select ( #4991 )
...
Fixes #4988 , haven't tested locally as I don't have >50 languages
installed locally
Co-authored-by: mmozeiko <martins.mozeiko@gmail.com >
2023-04-24 16:42:24 -04:00
Patrick Quist
b262531cdd
Offer timetrace json to view somewhere ( #4967 )
2023-04-23 11:29:52 +02:00
Matt Godbolt
362ebf7a57
npm update and bump; run all the formatters and linters ( #4984 )
2023-04-21 18:25:57 -05:00
Patrick Quist
3154327800
Device view diff ( #4973 )
2023-04-19 23:20:31 +02:00
partouf
458f3446be
#4976 do compile when done initializing
2023-04-19 22:41:03 +02:00
Patrick Quist
4f0f64943a
defer compilation by when still loading panes ( #4976 )
2023-04-19 22:06:48 +02:00
Patrick Quist
e57ba99ce7
chart version migration fix ( #4969 )
2023-04-19 22:01:14 +02:00
Patrick Quist
a0e42db400
Basic CMake support for CUDA ( #4286 )
2023-04-18 15:21:17 +02:00
David Hewitt
a7da7e83c4
Add the Vala programming language ( #4955 )
...
See https://gitlab.gnome.org/GNOME/vala/ for the language repository.
> Vala is a programming language that aims to bring modern programming
language features to GNOME developers without imposing any additional
runtime requirements and without using a different ABI compared to
applications and libraries written in C.
>
> `valac`, the Vala compiler, is a self-hosting compiler that translates
Vala source code into C source and header files. It uses the GObject
type system to create classes and interfaces declared in the Vala source
code.
>
> The syntax of Vala is similar to C#, modified to better fit the
GObject type system.
I've also created https://github.com/davidmhewitt/vala-builder based on
https://github.com/compiler-explorer/python-builder and tested that it
can build tarballs of arbitrary versions of Vala. I'd be happy to
transfer the ownership of this repository, or feel free to clone it into
the `compiler-explorer` org.
However, I'm a little unsure of how to join up the pieces and get this
Docker builder integrated with the `infra` repository. Let me know where
to go next and I'd be happy to open the relevant PRs.
2023-04-10 22:47:49 -05:00
Patrick Quist
d9030cf41e
fix url includes for files used in tree ( #4937 )
2023-04-03 23:14:57 +02:00
Jeremy Rifkin
4878402b53
A few pink mode fixes ( #4935 )
...
Fix selection, set a pink selection color, fix executor stdout, and fix
the cursor position indicator.
Resolves #4926 , resolves #4933
2023-04-03 12:25:06 -04:00
Jeremy Rifkin
55b82bb12c
Turn off april fools mode ( #4927 )
...
This PR has the changes to remove the pink banner once we are ready to do so
2023-04-02 19:31:46 -05:00
Matt Godbolt
54a99f6d51
Upgrade all minor versions; format; bump sonar and css minimizer ( #4920 )
2023-04-01 20:29:06 -05:00
Jeremy Rifkin and Matt Godbolt
e93fc860fe
Add a close button for the "Now in pink" banner ( #4919 )
...

---------
Co-authored-by: Matt Godbolt <matt@godbolt.org >
2023-04-01 16:29:28 -04:00
Jeremy
c8b8733f84
Templates and a quick fix
2023-04-01 01:35:51 -04:00
Jeremy Rifkin
5d8d39f136
Pink ( #4916 )
2023-04-01 00:52:27 -04:00
Jeremy Rifkin
01935ecb2a
Ensure a default language is provided for new editor panes ( #4890 )
...
Fixes #4889
2023-03-20 17:03:42 -04:00
Jeremy Rifkin
69568af990
Fix issue with all alert popups being red ( #4891 )
...
All alertSystem.alert popups have a red border at the moment, even when
isError is not set to true
2023-03-20 17:03:13 -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 Rifkin and Matt 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)

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


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.

Demo of the category filtering:

The text filtering highlights results the same as tomselect does:

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:


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 )
...

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 Larsen and Matt 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