Skip to content
New issue

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

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

Already on GitHub? # to your account

ICU-related Errors For Operations On Text #1560

Closed
mwu-tow opened this issue Mar 9, 2021 · 0 comments · Fixed by #1574
Closed

ICU-related Errors For Operations On Text #1560

mwu-tow opened this issue Mar 9, 2021 · 0 comments · Fixed by #1574
Assignees
Labels
p-highest Should be completed ASAP

Comments

@mwu-tow
Copy link
Contributor

mwu-tow commented Mar 9, 2021

General Summary

Calling length method (and possible others) on text leads to ICU-related Java errors.

There might be some race involved, as I can reproduce this with IDE package but not from slow debug builds.

Steps to Reproduce

Take IDE package. Start a new, default project.
Add node "foo bar baz".
While having the text node selected, open searcher and commit length method call.
Toggle visualization on text1.length.

Note that saving project and opening it again makes the issue go away.

Expected Result

Visualization gets an update with the value.

Actual Result

Visualization gets no updates.

Execution status reports error:

{
    "jsonrpc": "2.0",
    "method": "executionContext/executionStatus",
    "params": {
        "contextId": "c17352d1-b8df-43a2-8525-976204f6d380",
        "diagnostics": [
            {
                "kind": "Error",
                "message": "Could not initialize class com.ibm.icu.text.BreakIterator",
                "path": null,
                "location": null,
                "expressionId": null,
                "stack": [
                    {
                        "functionName": "Text.length",
                        "path": null,
                        "location": {
                            "start": {
                                "line": 21,
                                "character": 8
                            },
                            "end": {
                                "line": 22,
                                "character": 27
                            }
                        },
                        "expressionId": null
                    },
                    {
                        "functionName": "Main.main",
                        "path": {
                            "rootId": "2b4fd875-c115-46a3-abc6-fffcce50426a",
                            "segments": [
                                "src",
                                "Main.enso"
                            ]
                        },
                        "location": {
                            "start": {
                                "line": 7,
                                "character": 16
                            },
                            "end": {
                                "line": 7,
                                "character": 28
                            }
                        },
                        "expressionId": "b7df80fc-041a-4d44-ae35-ab7de4a52fb2"
                    }
                ]
            }
        ]
    }
}

Enso Version

Frontend:
    Version:  1.0.0
    Build:    6a3845e3
    Electron: 11.1.1
    Chrome:   87.0.4280.88

Backend:
    Enso Project Manager
    Version:    0.2.6
    Built with: scala-2.13.5 for GraalVM 21.0.0.2
    Built from: enso-0.2.6 @ aec61292c467c3c52e2259ac9e8cd03670c77f15
    Built on:   Windows 10 (amd64)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
p-highest Should be completed ASAP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants