Comments (11)
看一下 preload.ts 和 preload.js 的内容
from utools.
preload.ts
import { InitPlugins } from "utools-helper";
import { SearchApi } from "./search-api";
InitPlugins([new SearchApi()]);
preload.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utools_helper_1 = require("utools-helper");
const search_api_1 = require("./search-api");
utools_helper_1.InitPlugins([new search_api_1.SearchApi()]);
from utools.
utools-helper
的 plugin.ts
文件中有个错误信息,不知道这个有没有影响
from utools.
应该和这个没有关系,大概率你这个 SearchApi
对象初始化的时候会抛异常导致的,导致 window.exports 这行代码没执行到
from utools.
@mohuishou
utools-helper
的plugin.ts
文件中有个错误信息,不知道这个有没有影响
应该和这个没有关系,大概率你这个
SearchApi
对象初始化的时候会抛异常导致的,导致 window.exports 这行代码没执行到
有什么办法能捕捉到这个异常吗?
from utools.
我这边已经尝试捕获了,但是由于 utools 的机制问题导致错误还没有弹出插件就退出了,这个后面我看一下能不能输出到一个日志文件里面去,现在临时解决方案,你可以尝试改一下 node_modules 的 dist 里面的文件,尝试加一些 alert 之类的
from utools.
我这边已经尝试捕获了,但是由于 utools 的机制问题导致错误还没有弹出插件就退出了,这个后面我看一下能不能输出到一个日志文件里面去,现在临时解决方案,你可以尝试改一下 node_modules 的 dist 里面的文件,尝试加一些 alert 之类的
写了个test case,发现是少安装了一个库,感谢!
from utools.
utools没法看到运行日志,真难受。。
from utools.
utools没法看到运行日志,真难受。。
是的,调试起来比较麻烦
from utools.
在 preload.ts
这么写就可以捕获错误了
try {
InitPlugins([new VSCode(), new CMD(), new Setting(), new Storage()]);
} catch (error) {
alert(error.stack ? error.stack : error);
}
from utools.
在
preload.ts
这么写就可以捕获错误了try { InitPlugins([new VSCode(), new CMD(), new Setting(), new Storage()]); } catch (error) { alert(error.stack ? error.stack : error); }
多谢
from utools.
Related Issues (20)
- 打开文件报错 HOT 4
- 提个小建议,希望可以增添多选,比如一次选择三条历史记录恢复 HOT 1
- 希望 vscode 历史项目插件能置顶项目 HOT 3
- process:TypeError: Cannot read property 'configs of undefined HOT 1
- iconfont setting ‘是否精选 / 图标类型 ’ 不能选回 '所有图标 / 全部',提示必填项不能为空 HOT 2
- Error: Command failed: zsh -1-c "code --folder-uri "file://Users/caoqingda/study/code2" HOT 1
- otp添加多个后,能自定义排序吗? HOT 1
- edge关键字
- 语雀搜索找不到了。 HOT 2
- 老哥,语雀搜索呢 HOT 2
- Bug: vscode remote open failed HOT 7
- vscode 1.64.0 的 json 文件修改了,导致无法查到历史了 HOT 4
- vscode 插件 3.4.1 还是没有历史记录 HOT 11
- vscode 更新版本后,vsc历史浏览不能用了 HOT 3
- 插件怎么打包
- 无法正确打开对应的项目 HOT 1
- 插件是最新版本,突然发现vsc插件无法正常打开最近历史项目
- vscode历史搜索每次打开项目都打开cli.js
- Bug: 路径包含`\`无法打开项目 HOT 2
- vscode项目搜索报错 HOT 6
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 utools.