GithubHelp home page GithubHelp logo

assistant-alfred's People

Contributors

antonreshetov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fairhopeweb

assistant-alfred's Issues

SyntaxError: Unexpected identifier

Hello all,

I encountered a problem when finish typing the keyword masscode in the alfred input bar, the Search snippets option disappears. I checked the log and see the following error.

Screen Recording 2023-01-18 at 12 55 23 2023-01-18 12_57_16

[12:51:55.413] massCode assistant[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.CBFBCF26-1FC2-48A1-A472-5D1C789179B5%3E177039CF-0717-4E00-9FE3-69F90DD802A6)] Queuing argument '(null)'
[12:51:55.779] massCode assistant[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.CBFBCF26-1FC2-48A1-A472-5D1C789179B5%3E177039CF-0717-4E00-9FE3-69F90DD802A6)] Script with argv '(null)' finished
[12:51:55.781] ERROR: massCode assistant[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.CBFBCF26-1FC2-48A1-A472-5D1C789179B5%3E177039CF-0717-4E00-9FE3-69F90DD802A6)] Code 1: /Users/bunnyxt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.CBFBCF26-1FC2-48A1-A472-5D1C789179B5/index.js:1
(function (exports, require, module, __filename, __dirname) { import alfy from 'alfy'
                                                                     ^^^^

SyntaxError: Unexpected identifier
    at new Script (vm.js:79:7)
    at createScript (vm.js:251:10)
    at Object.runInThisContext (vm.js:303:10)
    at Module._compile (internal/modules/cjs/loader.js:657:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:283:19)

I have tried npm install in the folder but not works. I even upgraded my node version to v16.13.2 but the error remains the same.

Any idea? Thanks!

遇到两个问题,并解决.

  1. This script must be called from Alfred, $alfred_workflow_cache is missing. Make sure a Bundle ID is set.
    解决: mkdir -p /tmp/alfred && export alfred_workflow_cache=/tmp/alfred

  2. internal/process/esm_loader.js:74
    internalBinding('errors').triggerUncaughtException(
    解决: cd /Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A634A520-FB18-426E-8EA5-B3A3EF02A620 && npm install

请求增加两个功能.

  1. 当多个子片段,vscode 插件与alfred请增加选择命令
  2. 在现在代码片段中加入动态变量,例如: console.log($1)

Search from Alfred4 returns no result and promt error

Hi, I installed the v1.0.1 alfred workflow and it didn't work. Upon checking the debug log in Alfred, I found this:

[17:24:41.389] ERROR: massCode assistant[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.24F03A81-51F1-4536-9238-725411581965%3E177039CF-0717-4E00-9FE3-69F90DD802A6)] Code 1: node:internal/errors:465
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'conf' imported from /Users/x/Preferences/Alfred/Alfred.alfredpreferences/workflows/user.workflow.24F03A81-51F1-4536-9238-725411581965/node_modules/alfy/index.js
    at new NodeError (node:internal/errors:372:5)
    at packageResolve (node:internal/modules/esm/resolve:954:9)
    at moduleResolve (node:internal/modules/esm/resolve:1003:20)
    at defaultResolve (node:internal/modules/esm/resolve:1218:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
    at link (node:internal/modules/esm/module_job:78:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

I am not quite familiar with js, and I am new to Alfred, I am not sure if I messed anything up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.