jamesdiacono / replete Goto Github PK
View Code? Open in Web Editor NEWInteractive JavaScript
Home Page: https://repletejs.org/play/
Interactive JavaScript
Home Page: https://repletejs.org/play/
I'd like to be able to evaluate TS files without manually removing type annotations.
The README for the VSCode plugin says:
Restart VSCode. The extension must now be configured by navigating to
Settings -> User -> Extensions -> Replete
and providing the required paths. Make sure you point to an installation of
Node.js that is version 18.6.0 or higher.
What does "providing the required paths" mean? I don't see anything related to that on the extension page or the extension settings.
I tried several different options to set the path to replete.js but none worked. Starting Replete from VS Code throws an error that it can't find C:\C:\path\to\replete. If I try relative path it tries to find it under C:\Program Files\Microsoft VS Code\ directory. I move the directory there but it also didn't work. I tried to set the path using file:///C:/ but didn't work also.
How should I specify the absolute path to replete.js on windows? Assume it is in C:\Replete for example.
I can't wait to try this plugin, thanks for working on it James.
Would be great if https://bun.sh would be supported as alternative to Node/Deno.
I'm curious about why did you took your own approach to creating a plugabble REPL for node instead of implementing client/server for nREPL protocol? which is well tested, battle hardened, and stable protocol for this purpose
This is a place where people can share their plugins.
Generally, a plugin has these responsibilities:
Here are the plugins I have made:
Text editor | Written in | Link | Licence | Updated |
---|---|---|---|---|
VSCode | JavaScript | Marketplace | Public domain | 2024-06-16 |
Sublime Text 4 | Python | sublime_replete.zip | Public domain | 2024-06-16 |
Emacs | Lisp | replete.el | GPL v3.0 | 2024-06-16 |
Neovim | Lua | neovim_replete.zip | MIT | 2024-06-16 |
If you download a plugin, unzip it and follow the instructions within. These plugins should work on any operating system. Please let me know if you experience problems.
Hi :),
First of all, thank you for this gem.
I'm playing with REPLETE and I have found an issue with this simple code while using Openlayers library:
/*jslint browser */
import Map from "ol/Map.js";
import View from "ol/View.js";
import TileLayer from "ol/layer/Tile.js";
import XYZ from "ol/source/XYZ.js";
const map = new Map({
layers: [
new TileLayer({
source: new XYZ({
url: "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
})
})
],
view: new View({
center: [0, 0],
zoom: 2
})
});
export default Object.freeze(map);
after evaluating this code I'm getting:
Waiting for WEBL: http://localhost:3000
WEBL found.
WEBL found.
WEBL found.
error: Uncaught Error: Too many open files (os error 24)
at new FsWatcher (ext:runtime/40_fs_events.js:24:17)
at Object.watchFs (ext:runtime/40_fs_events.js:86:10)
at ext:deno_node/_fs/_fs_watch.ts:57:21
at eventLoopTick (ext:core/01_core.js:203:13)
I suppose this is a file descriptor problem related to node/deno.
Thank you in advance for your help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.