Comments (16)
Better use PluginContext.Logger.log("message");
as mentioned here.
from hain.
I just insert console.log
π
from hain.
But then where do you see the console log?
from hain.
Press F12 - it'll open devtools.
from hain.
Pressing F12 does nothing.
from hain.
Do you have afaaeed?
from hain.
No was using v0.0.2-rc4, Updated to the latest release which is v0.0.3.
from hain.
I have noticed that using console.log
causes the plugin to break in v0.0.3 but in v0.0.2-rc4 it did not cause any problems
from hain.
I was having this same issue trying to use console.log. Fixed it by including this line just inside module.exports: const logger = pluginContext.logger
And calling it like this: logger.log("Hello world!")
from hain.
Hey everyone.
Sometimes I face an issue when DevTools shows just Object{}
without any properties (except native prototype) for my objects or even null
at all (but properties exist and they're accessible). Can't provide an example for the first case, because it doesn't work on simple code, but here is a simple version of the second case (lodash
should be installed):
let _ = require('lodash');
module.exports = (context) => {
return {
startup() {
context.logger.log(_); // null
context.logger.log(_.identity(2)); // 2
}
};
};
What's the matter?
from hain.
@appetizermonster have ideas? ^^^
from hain.
There is no advanced way to debug plugins for now. we should make it.
not in docs, but you can use console.log
in the plugin if you launch hain on commandline prompt. (but you should remove them in the production)
so it may be helpful for debugging.
from hain.
I have v0.5.2 which should include afaaeed but F12 does not do anything, F5 does however work which I see that commit also had some code in for. Is F12 expected to be working right now?
from hain.
@cpriest I'll take a look at it, thanks for the reporting
from hain.
I had the same issue as @cpriest. I'm on v0.5.2 and F12 does nothing. Not sure if it is pertinent, but I used the pre-built binary.
from hain.
F12 should be fixed now. F12's handler was firing, but the dev tools weren't being opened properly
see #212
from hain.
Related Issues (20)
- I really want to use Hain. ONE feature is lacking for me. Websearch [Feature Request] HOT 1
- Is there anyway to get rid of the button control icons on the search bar? HOT 4
- Folders are opened in Windows Explorer despite having Total Commander set as default shell
- Build for Ubuntu 18.04 is failing HOT 6
- Can't Un-install Hain HOT 1
- New plugin not appears in hpm HOT 2
- How to actually use themes? HOT 25
- Not an actually issue HOT 1
- All .url links (e.g. Steam, Uplay games) have the same icon
- /hpm install: Error occured HOT 5
- Open directories with cmder or cmd
- Bug: Hain window shrinks when two displays have different DPI scaling HOT 1
- "Clear query after window has closed" doesn't work when opened from Toggle Shortcut HOT 1
- MacOS μ file Search κ΄λ ¨ν΄μ μ§λ¬Έλ립λλ€.
- Option for hiding this thing
- Hiding plugins
- Will there be a 0.7.0 release after 0.7.0-beta.1? HOT 1
- Theme styles aren't applied within the result preview pane (iframe)
- Suggestion: change NPM registry search API
- Adding a blank custom query in general preferences stops the window from being closed 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 hain.