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

Activating extension 'Julia' failed: Cannot read properties of undefined (reading 'indexOf') #14759

Open
ASaragga opened this issue Jan 22, 2025 · 1 comment
Labels
vscode issues related to VSCode compatibility

Comments

@ASaragga
Copy link

Bug Description:

Installed the Julia extension. When I open Theia IDE I get the following notification: Activating extension 'Julia' failed: Cannot read properties of undefined (reading 'indexOf'). I have correctly defined the executable path in the Julia extension. Perhaps consequence of that I am unable to "Julia: Run File in New Process", "Julia: Debug File in New Process" or "Julia: Execute active File in the REPL". All the Julia extension commands I tried appear to be totally ignored.

Steps to Reproduce:

  1. Install Julia
  2. Install the Julia Extension
  3. Define the executable path in the Julia extension
  4. Write a short Julia script and save it, e.g: println("Hello Theia")
  5. In the Command Palette try a command to run the script, e.g: "Julia: Execute active File in the REPL".

Additional Information

  • Operating System: macOS: 15.2
  • Theia IDE Version: 1.57.100 (1.57.100.190)
@rschnekenbu
Copy link
Contributor

rschnekenbu commented Jan 23, 2025

Thanks for reporting, @ASaragga! I can indeed reproduce the issue with the Julia extension.
Here is a detailed log on activating the extension:

2025-01-23T07:59:59.858Z root ERROR [hosted-plugin: 3437856] Activating extension 'Julia' failed: TypeError: Cannot read properties of undefined (reading 'indexOf')
    at Object.activate (/home/remi/.theia-ide/deployedPlugins/julialang.language-julia-1.127.2/extension/src/interactive/repl.ts:1326:27)
    at /home/remi/.theia-ide/deployedPlugins/julialang.language-julia-1.127.2/extension/src/extension.ts:84:14
    at Generator.next (<anonymous>)
    at s (/home/remi/.theia-ide/deployedPlugins/julialang.language-julia-1.127.2/extension/src/docbrowser/documentation.ts:315:5)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

From what I could read from https://github.com/julia-vscode/julia-vscode/blob/2ed90c228422854b4748fa3963c76fa9e4125bb9/src/interactive/repl.ts#L1325, it looks like Theia does not have the preference commandsToSkipShell defined as it is in vscode. (see https://github.com/microsoft/vscode/blob/3920366966c2649d3022c205b52dfb6410016a23/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts#L390).
I moved this issue to Theia framework, where these preferences are defined.

@rschnekenbu rschnekenbu transferred this issue from eclipse-theia/theia-ide Jan 23, 2025
@rschnekenbu rschnekenbu added the vscode issues related to VSCode compatibility label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

2 participants