Problem when running HelloWorldNode plugin
See original GitHub issueDescribe the bug/issue I have spaces in path to the NodeJS plugin, changed the node.bat to adjust for that. Now the plugin have an issue finding modules.
To Reproduce Steps to reproduce the behavior:
- change node.bat from
node %plugin_dir%/main.js%*
tonode "%plugin_dir%/main.js%*"
(added apostrophes) - run plugin with
hn
command through Flow Launcher
Your System
Microsoft Windows [Version 10.0.19044.1526]
Flow Launcher version: 1.9.2
Flow Launcher Error Log
Flow Launcher version: 1.9.2
OS Version: Microsoft Windows NT 10.0.19044.0
IntPtr Length: 8
x64: True
Python Path:
Date: 02/21/2022 10:58:44
Exception:
System.IO.InvalidDataException: Hello World Node.js|node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'C:\Users\Or Rosman\AppData\Roaming\FlowLauncher\Plugins\Hello World Node.js-1.0.0\main.js{"method":"query","parameters":[""],"settings":null}'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 308
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 308
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 323
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<<QueryForPluginAsync>b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 192
--- End of stack trace from previous location ---
at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 211
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass137_0.<<QueryResults>g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 623
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 624
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
node.js - NodeJS Hello World script not running
NodeJS Hello World script not running · 1. That error usually means the path to program. · And maybe your node.js installation requires...
Read more >Javascript HelloWorld shows error when running the hello ...
When i run the HelloWorld command, the command executes but i get an error: Activating extension `vscode-samples...
Read more >6 reasons your Node.js apps are failing
6 reasons your Node.js apps are failing · 1. Uncaught exceptions or error events in JavaScript code · 2. Excessive memory usage, which...
Read more >TypeScript HelloWorld does not work · Issue #182
I just grabbed the yeoman and followed the Hello World steps. When I go for TypeScript I get the follow error; ( is...
Read more >How to Run Node.js in VS Code From Scratch - YouTube
In this video, we'll explore two different ways to run Node.js in VS ... Then, we'll look at the Quokka extension in VS...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This problem should be addressed already, if not the case please reopen.
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.