Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启用模块会导致 raycast 插件运行错误 #50

Open
rien7 opened this issue Sep 25, 2024 · 1 comment
Open

启用模块会导致 raycast 插件运行错误 #50

rien7 opened this issue Sep 25, 2024 · 1 comment

Comments

@rien7
Copy link

rien7 commented Sep 25, 2024

启用模块后会导致 raycast api 的 Action.OpenAction.OpenWithonOpen 回调函数跳过执行。

在官方人员的指引下使用 log stream --predicate "subsystem == 'com.raycast.macos'" --level debug --style compact >> ~/Desktop/ray.$(date +%Y%m%d).log 命令依然无法观察到相关的错误

@rien7
Copy link
Author

rien7 commented Sep 25, 2024

测试代码:

export default function Command() {
  console.log("test");
  return (
    <List>
      {ITEMS.map((item) => (
        <List.Item
          key={item.id}
          icon={item.icon}
          title={item.title}
          subtitle={item.subtitle}
          accessories={[{ icon: Icon.Text, text: item.accessory }]}
          actions={
            <ActionPanel>
              <Action.CopyToClipboard
                content={item.title}
                onCopy={() => {
                  console.log("Test copy");
                }}
              />
              <Action.Open
                target="/tmp"
                title="Open Test"
                onOpen={() => {
                  console.log("Test onOpen");
                }}
              />
            </ActionPanel>
          }
        />
      ))}
    </List>
  );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant