lukehaas
Repos
40
Followers
633
Following
87

A collection of loading spinners animated with CSS

6920
1030

A collection of useful regex patterns

2220
121

An experiment with CSS clip-path and variables

126
13

Shapely - JavaScript canvas library

59
20

A JavaScript playground that auto-evaluates as you type

1715
34

Events

add cursor position

Created at 1 day ago
issue comment
prompting to save only when necessary

The confirm close option is there to help prevent the accidental closing of tabs, regardless of the save status of the tab. Changing it to relate to the save status would reduce its usefulness.

One scenario where it may be good to add a prompt is when closing a tab that has been saved and then updated. So when there are unsaved changes.

Created at 5 days ago
issue comment
prompting to save only when necessary

Thanks, @grok314. My concern with this is that I think promoting to save when the tab contents haven't been saved will essentially cause this prompt to almost always appear when closing a tab as working with files isn't a core part of RunJS.

Created at 6 days ago
closed issue
[Feature Request] Add support for ES Modules

Hi, great work! I really like it :D It would be great to also have the possibility to import native ES Modules. I tried with my javascript-helpers and I got an error. Thanks

Created at 1 week ago
issue comment
[Feature Request] Add support for ES Modules

ES modules are now supported. Just enable bundling via the preferences.

Created at 1 week ago
closed issue
Unable to close 'find' dialogue

Hey firstly amazing app, use it constantly while I'm working.

One issue I keep noticing, is I accidentality open 'find' when I go for a shortcut to format code (my mistake), but when I do, there are a couple of issues:

1 - Unable to close the 'find' search field that opens up. 2 - the search dialogue covers the first line in the editor, which coupled with not being able to discard the search field is where it becomes an irritant.

Created at 1 week ago
closed issue
importing from another file is cumbersome

In file A, I want to import a function from another file B.

In that other file B, I have

import * as R from 'ramda'

When that file is open, I can test the functions defined within it without problems.

Let's say function "fn" is defined in file B and I want to import if into file A.

In that file A, I have "import {fn} from 'B'. It's super annoying that 'B' has to be defined with a full path.

But what is even more annoying is that if fn refers to R, the function that was working when tested in the context of the file B no longer works when imported into file A. We get a 'ramda' not defined error.

The only way that I could make this work is by replacing

import * as R from 'ramda' in file B, with

import * from R from 'full path to ramda'.

This makes no sense and it that's the way the program is intended to work, it's too much trouble to be of any use.

Created at 1 week ago
issue comment
importing from another file is cumbersome

@mmikeyy thanks. Hopefully, those suggestions were helpful. Closing this ticket now.

Created at 1 week ago
issue comment
importing from another file is cumbersome

Thanks, @mmikeyy. In RunJS you can think of each tab as its own sandboxed playground. If you reach a point where you need multiple files, it's best to switch to a more appropriate tool like VS Code. However, for the situation you've described there are a couple of things you can do to avoid the issues you're having. Firstly, to avoid long import paths, you can set a working directory and import files relative to it. You can do this from the action menu: Action -> Set Working Directory. Secondly, the error when importing a file that imports ramda, you can avoid this by enabling bundling. This is an option in the advanced preferences.

Created at 1 week ago
issue comment
it's simple loop, but it can't

@dembee111 without any detail I can't be sure what the issue is here, but my guess would be it relates to the order of the output.

If you want to display the output in its natural order of execution, disable the match lines option. Screenshot 2022-09-17 at 13 13 21

Screenshot 2022-09-17 at 13 13 46

Created at 1 week ago
issue comment
Unable to close 'find' dialogue

@danirons you can close find by pressing the Escape key.

Created at 1 week ago
issue comment
Spread Operators do not work

@jonniedarko could you provide a little more detail about how the spread operator is not working for you. This is what I'm seeing:

Screenshot 2022-09-15 at 08 24 15

Created at 2 weeks ago
closed issue
Unable to open fresh new tab or Save As behind paywall

As of update, I am unable to open a new file. Because Save As is behind the paywall, and closing the only open tab will close the program, there is no way to now access a blank file for saving.

Is this intentional, or unintentional?

Thanks,

Created at 2 weeks ago
issue comment
Unable to fix "cannot use import statement outside a module" error with Babel transpilation

@moracabanas hope that's all good. Closing now.

Created at 2 weeks ago
closed issue
Unable to fix "cannot use import statement outside a module" error with Babel transpilation

When I import a module I get cannot use import statement outside a module error.

I tested the purposed Babel configuration and still getting this error

image

image

Created at 2 weeks ago
issue comment
Unable to open fresh new tab or Save As behind paywall

Thanks, @davidallanturner. Opening a file opens a new tab, this has been the case since tabs were introduced in version 2.0. Tabs are a premium feature so opening a file will require activation.

Created at 2 weeks ago
issue comment
Unable to fix "cannot use import statement outside a module" error with Babel transpilation

It looks like the pizzly-js library has import statements in its distributed output js. To use this library, you will either need to enable bundling from the advanced preferences or switch to the Node version of the library pizzly-node.

Created at 3 weeks ago
issue comment
Annoying Time To Renew pop-up

In the latest release, this message appears as soon as you open the app. Hopefully, this should be more convenient.

Created at 3 weeks ago
issue comment
Feature Request: Custom Key bindings

@Braian85 the shortcut for moving lines up/down are Cmd+Ctrl+Up and Cmd+Ctrl+Down. Duplicating a line is Cmd+Shift+D.

Shortcuts are documented here: https://runjs.app/docs#shortcuts

Created at 3 weeks ago
closed issue
I accidentally pasted a large SVG symbol into a tab, which then froze all tabs and then made JSRun unusable

I accidentally pasted a large SVG symbol into a tab, which then froze all tabs and then made JSRun unusable.

I managed to gain access by quitting and then re-opening and quickly selecting a new tab but only after quite a few tries.

In the the comment panel : "<" unrecognised character

Suggest preventing the pasting of large clipboard content of the wrong type or more elegant recovery method.

Created at 3 weeks ago
issue comment
I accidentally pasted a large SVG symbol into a tab, which then froze all tabs and then made JSRun unusable

The latest release has a guard against pasting large files.

Created at 3 weeks ago
closed issue
Buying Options on Website are not responding

Hi there! Dunno how many clients have attempted to buy your products, but when one tries to click on any of the save 5%, save 10%, etc buttons, one is not able to get any response from this event. if one goes to the Buy option on the main menu, this redirects to https://runjs.app/buy, however, when you click on Buy RunJS, this thing does not work either, are you guys aware of this already?

Created at 1 month ago
issue comment
Buying Options on Website are not responding

@AlvisonHunterArnuero thanks. You're right about the UX, I'll improve the error handling.

Created at 1 month ago
issue comment
Buying Options on Website are not responding

@AlvisonHunterArnuero @Jean-Cairoli I have now heard back from Paddle. It looks like the issue is due to your location being in one of Paddle's sanctioned countries. You can see this list here: https://www.paddle.com/help/start/intro-to-paddle/which-countries-are-supported-by-paddle

I'm Very sorry to say this means you won't be able to Purchase RunJS while you're connected to a Network in your current location.

Created at 1 month ago
closed issue
Unable to buy it!
Created at 1 month ago
issue comment
Buying Options on Website are not responding

@AlvisonHunterArnuero sure, I understand.

Created at 1 month ago
started
Created at 1 month ago
issue comment
Buying Options on Website are not responding

@AlvisonHunterArnuero @Jean-Cairoli Paddle are investigating the issue and have asked if you could provide your IP addresses. You can find your IP address on this site: https://whatismyipaddress.com/ If you'd prefer not to post this publicly here, please email mail@runjs.app

Created at 1 month ago
closed issue
Ayu theme support

Would be fantastic to have my favorite theme, ayu, available for RunJS!

https://github.com/dempfi/ayu

Created at 1 month ago
issue comment
Ayu theme support

@michaeljaggers the Ayu theme is now included in RunJS version 2.6.0. Thanks again for raising this.

Created at 1 month ago