Commit Graph
68 Commits
Author SHA1 Message Date
Luca Natilla 810cb5ad6f Ability to name panes (#3323) 2022-02-11 15:25:02 +01:00
Rubén Rincón Blanco ed90053a4c Fixes Executor pane for Python (+ possibly more) (#3354)
* Fixes executor pane for Python

It possibly also fixes it for more languages that behave like it.

* Typerrror has .message
2022-02-11 14:57:02 +01:00
Rubén Rincón BlancoandMats Larsen f4315c561b Move static/settings.js to TypeScript (#3297)
* Rename settings.js to ts

* Move Settings to TS

* Remove underscore from settings

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

* Improve Settings implementation

* Move Settings interfaces to same file

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

Co-authored-by: Mats Larsen <me@supergrecko.com>
2022-01-29 02:00:10 +01:00
Rubén Rincón Blanco fc19400855 Move static/libs-widget-ext.js to TypeScript (#3077)
* Rename static/libs-widget-ext.js to static/libs-widget-ext.ts

* Initial Typescript copy&paste

* File now compiles its TS

* First TSfy pass

Types need to still be sorted out, but this now compiles and works
:)

* Further work towards porting libs widget to TS

* Expand the scope of the PR and fix some TS issues elsewhere

Still releated to libs though

* Renames

* Address PR review

* Fixes some minor errors and finishes the tests

* Remove unused interface properties
As suggested by partouf in the PR

* Remove unused this
Noticed by Partouf in the PR review

* Remove more unused options interface properties

* Fixes last issues with the ts libs widget

* Remove console.log
2021-12-12 17:42:44 +01:00
Mats Larsen 025325e6d5 Replace CommonJS default exports with named exports (#3021)
This patch refactors every single CommonJS default export and TypeScript `export =` to use named exports.
2021-10-12 11:30:10 +02:00
Mats Larsen 71af750227 Warn if Execution Only is added for compiler without execution (#2962)
Shows a warning in the alert system and cancels the execution request if the compiler does not support execution.
2021-09-24 02:37:39 +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
RabsRincon fb7fa30403 Make executor spinner spin too 2021-09-04 06:20:28 +02:00
Rubén Rincón Blanco 6a1dbe14f7 Some general UI touches (#2910)
* Touches and changes to the UI to make it more consistent

It fixes some problems, improves the UX of certain actions,
 and clears some code up

* More minor tweaks to the UI

* Fix class typo

* Add compiler picker opt group header background color in default theme

* Fix conformance view

* Removes some &nbsp; in favour of margins

Removes boostrap-slider, there's a built-in html solution
Fixes tab width setting having a wrong input type

* More UI tweaks

* Remove empty CSS rule
2021-09-03 05:51:05 +02:00
Patrick Quist 31050a81ac Cmakeproms (#2906)
* new counters for cmake and bugfix executeCounter

* bugfix execution counter

* bugfix for when switching language
2021-08-31 17:46:21 +02:00
partouf 30a88625b5 grmbl lintfix 2021-08-31 12:56:01 +00:00
partouf 490b7da81c bugfix execution compilation status 2021-08-31 12:50:57 +00:00
partouf df04975cca fix #2902 2021-08-31 08:59:23 +00:00
partouf a0138c6c08 recovery option if tree suddenly disappears 2021-08-27 10:18:10 +00:00
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
RabsRincon aacfdad6d4 Reorder panes names and set what they are first 2021-08-11 06:36:30 +02:00
Mats Larsen 648ebf9ecf Migrate /static/alert.js to TypeScript (#2829)
* Migrate static/alert.js to TypeScript

* Update copyright and extract interfaces

* Implement @partouf's Alert.enterSomething from Multifile UI
2021-08-01 12:02:34 +02:00
RabsRincon e0c5a73f0b Adds toggle for full compiler version output
Thanks to @JohanEngelen for suggesting it, almost a year ago :/

Closes #2298
2021-07-16 00:18:27 +02:00
Rubén Rincón Blanco d3af770eec Simplify timing chart handling (#2749)
* Simplify timing char handling

It also removes some duplicated code concerning the settings
 while at it

* No need to make Timing a "class" anymore

* Address @partouf PR review
2021-06-29 19:16:28 +02:00
RabsRincon 7074739ecf Remove self usages and apply styles 2021-06-28 11:27:09 +02:00
Rubén Rincón Blanco a80b37c34b Adds a way for panes to filter compilers (#2734)
* Adds a way for panes to filter compilers

I don't really like this solution, but I haven't been able to come
 up with a cleaner one, so unless someone finds a better way,
 this will have to do

* Address PR review comments
2021-06-25 17:34:09 +02:00
Matt Godbolt 0214876179 New compiler selectors (#2666)
* Extract a compiler picker and fix up edge cases
* Use it across the three places that let you pick compilers.
* Fix a number of minor UI issues.
* When reloading a page, prefer the 'favorite' compiler selection in the selectize. Thanks @oyejorge

Co-authored-by: RabsRincon <ruben@rinconblanco.es>
Co-authored-by: partouf <partouf@gmail.com>
With huge thanks to @oyejorge
2021-06-21 21:53:44 -05:00
RabsRincon b2308878ea Improve how we handle status icon and output info
This should help a bit in a few issues,
 but there's still work to do on all of them:

Issues #1034 #2674 #2696
2021-06-15 10:25:31 +02:00
Matt Godbolt 52e43774d1 Revert "Compiler Selection Improvements (#2660)"
This reverts commit 9c06156782.
2021-05-15 14:43:01 -05:00
Josh SchmidtandMatt Godbolt 9c06156782 Compiler Selection Improvements (#2660)
* allows favourites to be picked
* replace selectize with tom-select 1.7

Addresses (if not closes) #1917 & #257.

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-05-15 10:35:41 -05:00
Arseniy Zaostrovnykh c0633d087c Highlight individual tokens in the source file and the corresponding nodes in the LLVM AST pane (#2572)
* Enable the editor to highlight spans in the highlighted line
* Parse and send the column numbers for LLVM AST nodes
* Highlight the part of the line corresponding to a node

For nodes that fit on a single line
* Highlight the nodes directly corresponding to symbol hovered over

Also highlight entire tokens in the source, not just their first character

* Fix the squiggly underline for string literals
2021-04-06 14:59:46 -05:00
Patrick Quist 7edd6d40ac Time all the things (#2462)
* time executeDirect in ms

* measure library download and extract time

* time package download

* download timings when using execution checkbox

* proof of concept timing graph implementation

* use vertical bars for graph

* add objdump time

* add timing for asm parsing

* add timing graph to execution pane as well

* download timings on execution pane

* things
2021-03-11 17:37:57 +01:00
partouf eac712651a lintfix 2021-02-20 18:32:40 +00:00
Sam Elliott 3677ad6389 Add Notification to Compiler Info Popup (#2399)
This also adds the same changes to an executor instance.

Signed-off-by: Sam Elliott <sam@lenary.co.uk>
2021-02-20 19:22:50 +01:00
Peter Schussheim a0bcc9b8c2 add text wrapping toggle to executor pane (#2362) 2020-12-22 14:19:36 +01:00
Austin Morton 6400315650 Fix extra blank lines when copying from some panes
Closes #1260
2020-11-03 04:42:16 -05:00
Patrick Quist 4a158e1ff4 Library widget revamp (#2223)
* Use new widget for the ever-expanding library count
2020-09-27 01:59:40 +02:00
Patrick Quist d6a86198b7 Copy compiler arguments for 'Executor from this' (#2191)
* copy compiler args to executor

* disable executor-from-this if no supportsExecute for compiler

* also hide hidden compilers
2020-09-06 16:36:22 +02:00
Patrick Quist 837fc3cd00 Filter compilers in execution panel (#2181)
* basic supportsExecute filter

* dont mess up existing compiler selections

* dont execute if the compiler doesn't support it, do try to build still

* disable execute for clang arm compilers

* require at least 1 supportsExecute before default adding and selecting anything

* gcc 1.27 dont execute

* get rid of -Wl,-rpath error message
2020-09-04 21:28:14 +02:00
Rubén Rincón Blanco 8a05f0098e Add ANSI color code support on executor pane (#2162)
Closes #2143
2020-08-29 21:30:47 +02:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
Rubén Rincón af6889f1f7 Fix compilers forgetting their proper id
Closes #1713

Special thanks to @lunasorcery for the detailed repro steps :)
2019-12-08 23:50:02 +01:00
Partouf 20df44bec5 bugfixes for when diff view opens 2019-11-29 14:50:10 +01:00
Partouf 5352389b2d bugfix when executor is opened for the first time 2019-11-14 17:25:58 +01:00
Partouf 84e3017448 lintfix 2019-11-11 23:17:28 +01:00
Partouf c6a350ca31 allow diffing executor panes 2019-11-11 22:57:02 +01:00
Rubén Rincón 7e0cf5afea Fix page not loading without at least 1 compiler
Closes #1630
2019-10-12 23:39:40 +02:00
Partouf 882d01e7e1 bugfix refresh libraries before saving state 2019-09-23 20:14:52 +02:00
Partouf 912fc1d067 bugfix libs executorpane 2019-09-23 20:03:40 +02:00
Partouf b43412388f allow libraries per compiler 2019-09-18 16:27:44 +02:00
RabsRincon 5d98a8c6d9 Fix conformance view not respecting defaultOptions
Moves shared compiler order selectizer setting to conformance view

Closes #1526
2019-08-09 13:43:05 +02:00
Partouf 3245551ada bugfix compiler groupings in executor 2019-07-29 22:25:01 +02:00
Partouf 9bf41f007b Merge remote-tracking branch 'matt/master' into compilerservicerefacto 2019-07-29 20:47:56 +02:00
Partouf 5ec5b904e6 handle stdin resize events, set resize in template 2019-07-26 13:57:57 +02:00
RabsRincon e1823067a5 Move common compiler logic to compilerservice 2019-07-23 22:23:45 +02:00