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

[Bug] universcript case cannot be executed #3310

Open
2 tasks done
dxj0211 opened this issue Sep 4, 2024 · 1 comment
Open
2 tasks done

[Bug] universcript case cannot be executed #3310

dxj0211 opened this issue Sep 4, 2024 · 1 comment
Assignees
Labels

Comments

@dxj0211
Copy link

dxj0211 commented Sep 4, 2024

在您提交此问题之前,您是否检查了以下内容?

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

v0.2.11

复现链接

const changeFontStyle = const activeSheet1 = univerAPI.getActiveWorkbook().getActiveSheet();
const drawUniverLogo = const activeSheet2 = univerAPI.getActiveWorkbook().getActiveSheet();

univer.value.registerPlugin(UniverUniscriptPlugin, {
getWorkerUrl(moduleID: string, label: string) {
if (label === 'typescript' || label === 'javascript') {
return './vs/language/typescript/ts.worker.js'
}

  return './vs/editor/editor.worker.js'
},
example: [
  {
    value: drawUniverLogo,
    label: 'Draw Univer Logo'
  },
  {
    value: changeFontStyle,
    label: 'Change Font Style'
  }
]

})

univer.value.createUnit(
UniverInstanceType.UNIVER_SHEET,
data
)

univerAPI.value = FUniver.newAPI(univer.value)

预期行为

success

实际行为

error

运行环境

No response

系统信息

No response

@dxj0211 dxj0211 added the bug Something isn't working label Sep 4, 2024
@univer-bot univer-bot bot changed the title [Bug] universcript案例无法执行 [Bug] universcript case cannot be executed Sep 4, 2024
@univer-bot
Copy link

univer-bot bot commented Sep 4, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] universcript案例无法执行

Title: [Bug] universcript case cannot be executed


Before you submitted this question, did you check the following?

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

Affected packages and versions

v0.2.11

Recurrence link

const changeFontStyle = const activeSheet1 = univerAPI.getActiveWorkbook().getActiveSheet();
const drawUniverLogo = const activeSheet2 = univerAPI.getActiveWorkbook().getActiveSheet();

univer.value.registerPlugin(UniverUniscriptPlugin, {
getWorkerUrl(moduleID: string, label: string) {
if (label === 'typescript' || label === 'javascript') {
return './vs/language/typescript/ts.worker.js'
}

  return './vs/editor/editor.worker.js'
},
example: [
  {
    value: drawUniverLogo,
    label: 'Draw Univer Logo'
  },
  {
    value: changeFontStyle,
    label: 'Change Font Style'
  }
]

})

univer.value.createUnit(
UniverInstanceType.UNIVER_SHEET,
data
)

univerAPI.value = FUniver.newAPI(univer.value)

Expected behavior

success

Actual behavior

error

Running environment

No response

System information

No response

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

No branches or pull requests

3 participants