Comments (16)
There's a plan to make it work with application launched directly as node file_name.js
.
from console-ninja.
Yes, i am looking for the same.
from console-ninja.
There's a plan to make it work with application launched directly as
node file_name.js
.
this would be great. having it all centrally integrated with the editor is a cool unified experience.
from console-ninja.
@patroza We are working on it, however no ETA to share yet.
from console-ninja.
Hi guys,
Today, we are happy to announce the release of support for node app.js
-like workflows. Please refer to Universal Node applications section of our docs for more information.
from console-ninja.
Thanks for the response! Updating the docs would help!
I don't like tools to touch my .profile without permission. Plus I am using fishshell, so it wouldn't have helped. I switched to bash for troubleshooting purposes. It would be nice if this were a setting, or something (even if it were defaulted to true). Perhaps instead of a setting, a command? I'll let y'all worry about that. Just wanted to weigh in.
Love you guys!
from console-ninja.
Same for me!
from console-ninja.
Yes, this would be great feature too :)
from console-ninja.
There's a plan to make it work with application launched directly as node file_name.js.
how's that going @ArtemGovorov ? we could really use this atm.
from console-ninja.
Adding a comment here so the team knows that there's a lot of demand for this feature!
from console-ninja.
Apologies for the necro, but I tried using this a little last week, and couldn't get it to work.
❯ console-ninja node test.js
fish: Unknown command: console-ninja
bash-3.2$ console-ninja node test.js
bash: console-ninja: command not found
I've tried
- Running as a task
- Running as a shell command
- Running
console-ninja
- Running
/Users/.../.vscode/extensions/wallabyjs.console-ninja-0.0.91/out/shell/console-ninja
- Uninstalling and reinstalling
- Resetting all settings
Can't figure out how this is supposed to be working.
node: 14.21.2
Operating System:
darwin: 22.3.0
arch: x64
from console-ninja.
@tarwich
so the extension in vscode has installed console-ninja
to my bin:
~/.local/bin/console-ninja
don't know if you need a more recent node.
from console-ninja.
Thanks @patroza that's definitely what I suspected. I don't have that file.
❯ ls -la1 ~/.local
./
../
share/
state/
I've uninstalled, rebooted, installed the extension. Will continue to google. If you're comfortable sharing, what's the contents of your ~/.localbin/console-ninja
file? I have this:
❯ cat ~/.vscode/extensions/wallabyjs.console-ninja-0.0.91/out/shell/console-ninja
#!/bin/sh
export NODE_OPTIONS='--no-warnings --loader "<REPLACE>"';
$@
❯ ls -l1 ~/.vscode/**/console-ninja
~/.vscode/extensions/wallabyjs.console-ninja-0.0.91/out/shell/console-ninja
from console-ninja.
Found something useful in the log...
info host creating /Users/.../.console-ninja/.bin
info host installing /Users/.../.console-ninja/.bin/loader.js
info host installing /Users/.../.console-ninja/.bin/console-ninja
info host installing /usr/local/bin/console-ninja
ERR! host failed to create symbolic link EACCES: permission denied, symlink '/Users/.../.console-ninja/.bin/console-ninja' -> '/usr/local/bin/console-ninja'
Continuing looking for data...
❯ ls -la1 ~/.console-ninja/.bin
./
../
console-ninja*
loader.js
Experiment 1 (fail)
Trying this:
~/.console-ninja/.bin/console-ninja npm run dev
didn't work.
Let console ninja make the .local/bin stuff...
mkdir -p ~/.local/bin
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.profile
Restart vscode...
❯ ls -la1 ~/.local/bin
./
../
console-ninja@
Ok... better...
Experiment 2 (fail)
test.js
console.log('test');
new Promise(resolve => { setTimeout(resolve, 5000); })
.then(() => console.log('done'));
❯ console-ninja node test.js
test
done
Still not working, but progress was made
from console-ninja.
Ok. Updated my node to @16 and it connected.
from console-ninja.
Thanks for sharing the details, we'll change the installation process to include shell profile scripts change (prepending to PATH variables) and mention the min version of nodejs in our docs.
from console-ninja.
Related Issues (20)
- [Bug]: doesn't work with ms live preview HOT 1
- [Bug]: Doesn't work when script tag is before body HOT 1
- [Feature]: Rspack support for Console Ninja
- [Bug]: Breaks Next.js build HOT 5
- [Bug]: EISDIR Errors and Webpack issues occuring with NextJS 14.0.4 HOT 4
- [Bug]: remote-ssh vscode does not display logs (nextjs) HOT 1
- [Bug]: console ninja not working on my nextjs 14 Project HOT 2
- [Bug]: Console ninja is not working on vercel/ai-chatbot repository HOT 1
- [Feature]: Support for Waku React Framework
- [Feature]: Hide Ads in code editor HOT 2
- [Bug]: Console Ninja doesn't work after Next.js v14 HOT 6
- [Bug]: Console Ninja makes the VSCode extension host crash repeatedly HOT 3
- [Bug]: The body of an 'if' statement cannot be the empty statement. HOT 1
- [Bug]: Stop adding console-ninja bin at the bottom on the file HOT 2
- [Bug]: Ignores files when working in symlinked folder HOT 3
- License activate load infinity on MAC mini M1 HOT 11
- [Bug]: Storybook needs approx. 3 minutes to start HOT 2
- [Bug]: Does not work with Electron Forge Vite template HOT 5
- [Bug]: After update version 1.0.288, console-ninja don't show log in Nestjs HOT 3
- [Bug]: vscode extension not working with nestjs 10.3.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from console-ninja.