kkevsekk1 / auto.js-vscode-extension Goto Github PK
View Code? Open in Web Editor NEWThis project forked from 710850609/auto.js-vscode-extension
A simple development plugin for Auto.js.
License: GNU General Public License v2.0
This project forked from 710850609/auto.js-vscode-extension
A simple development plugin for Auto.js.
License: GNU General Public License v2.0
单个文件保存到所有设备可以使用,但是保存项目到设备没反应,怎么解决?我有多个js和图片文件要打包在一起。
好像是因为语法更新,而插件没有更新
无论是无线网还是adb连接都不行
显示command 'extension.run' not found
版本: 1.76.0 (user setup)
提交: 92da9481c0904c6adfe372c12da3b7748d74bdcb
日期: 2023-03-01T10:22:44.506Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.19045
沙盒化: No
可否新增类似 git 的 .gitignore 文件?
主要项目下的有些其他文件在运行项目时-不需要推送到设备。
最近在基于autojsx 开发脚本,需要同时开几个窗口,如果要同时调试几个项目文件的话,需要频点击连接电脑,挺麻烦的,谢谢
需要修改文件 -----.vscode\extensions\aaroncheng.auto-js-vsce-fixed-1.109.0\out\extension.js
类Extension(98行-135行)中的内容
修改完成之后,需要重启vscode。
class Extension {
constructor() {
this.documentViewPanel = undefined;
this.qrCodeViewPanel = undefined;
this.documentCache = new Map();
}
showServerAddress() {
let servers = server.getIPs().join(":" + server.getPort() + " or ") + ":" + server.getPort();
vscode.window.showInformationMessage(`Auto.js Autox.js \r\n server running on ${servers}`);
}
showQrCode() {
let ips = server.getIPs();
if (ips.length == 1) {
this.showQrcodeWebview(ips[0]);
} else {
vscode.window.showQuickPick(ips).then(ip => {
this.showQrcodeWebview(ip);
});
}
}
showQrcodeWebview(ip) {
let url = `ws://${ip}:${server.getPort()}`;
if (!this.qrCodeViewPanel) {
this.qrCodeViewPanel = vscode.window.createWebviewPanel('Qr code', "Qr code", vscode.ViewColumn.Beside, {
enableScripts: true,
});
this.qrCodeViewPanel.onDidDispose(() => {
this.qrCodeViewPanel = undefined;
}, undefined, exports._context.subscriptions);
}
this.qrCodeViewPanel.webview.html = this.getQrCodeHtml(this.qrCodeViewPanel.webview, url);
}
getQrCodeHtml(webview, text) {
const icon = this.getVscodeResourceUrl(webview, "logo.png");
const qrcodejs = this.getVscodeResourceUrl(webview, "assets/qrcode.js");
return `<!DOCTYPE html>
getVscodeResourceUrl(webview, relativePath) {
const onDiskPath = vscode.Uri.file(path.join(exports._context.extensionPath, relativePath));
return webview.asWebviewUri(onDiskPath);
}
保存图片的话,得到的图片是无效图片,图片打不开。网上搜了一下好像说用fs.readFileSync(filename, 'utf8')这个方式去读图片是会导致数据错误
Can't resolve relative module ID "./utils/util" when require() is used outside of a module (/android_asset/modules/jvm-npm.js#87)
而在apk断直接运行文件的时候。因为require采用的是相对路径。所以,直接就可以运行。但是vscode远程调试时候,根目录,并没有切换指向。
备注:如果出现结构层次复杂的场景。建议 projectPath,参数,以手动输入或者文件配置的方式,这样,更加灵活的,使得运行脚本,配置在apk断的依赖目录
vscode可以灵活的,在运行脚本的功能中,调整依赖文件路径。并且发送给apk,apk同时能够自动调整path。
注意,建立在猜测基础上的建议,如果存在问题,还请海涵。
webpack-autojs
2023-10-08 14:02:15.914 [error] [Extension Host] server error: Error: listen EADDRINUSE: address already in use 0.0.0.0:9317
at Server.setupListenHandle [as _listen2] (node:net:1740:16)
at listenInCluster (node:net:1788:12)
at doListen (node:net:1937:7)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
偶发会出现这个端口被占用 因为我这里查看的话又查询不到具体是什么进程使用了该端口, 想问问能否可以 修改端口号
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.