JunoLab / atom-julia-client

Juno a good IDE?

Home Page:http://junolab.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NAG installation interferes with Juno REPL?

aromemusa opened this issue · comments

This is @ChrisRackauckas on a computer at a workshop. The issue on this computer seems to be coming from clashing with an installation of NAG on Windows. Trace:

Add-Type : (0) : Warning as Error: Invalid search path 'C:\Program Files\NAG\NL27\nlw6i27del\lib' 
specified in 'LIB environment variable' -- 'The system cannot find the path specified. '
(1) : using System;
At C:\Users\Owner1\.atom\packages\julia-client\script\spawnInterruptible.ps1:18 char:13
+ $Kernel32 = Add-Type -MemberDefinition $MethodDefinition -Name 'Kerne ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError 
   ) [Add-Type], Exception
    + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
 
Add-Type : (0) : Warning as Error: Invalid search path 'C:\Program 
Files\NAG\NL27\nlw6i27del\mkl\lib' specified in 'LIB environment variable' -- 'The system cannot 
find the path specified. '
(1) : using System;
At C:\Users\Owner1\.atom\packages\julia-client\script\spawnInterruptible.ps1:18 char:13
+ $Kernel32 = Add-Type -MemberDefinition $MethodDefinition -Name 'Kerne ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError 
   ) [Add-Type], Exception
    + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
 
Add-Type : (0) : Warning as Error: Invalid search path 'C:\Program 
Files\NAG\NL27\nlw6i27del\rtl\lib' specified in 'LIB environment variable' -- 'The system cannot 
find the path specified. '
(1) : using System;
At C:\Users\Owner1\.atom\packages\julia-client\script\spawnInterruptible.ps1:18 char:13
+ $Kernel32 = Add-Type -MemberDefinition $MethodDefinition -Name 'Kerne ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError 
   ) [Add-Type], Exception
    + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
 
Add-Type : Cannot add type. Compilation errors occurred.
At C:\Users\Owner1\.atom\packages\julia-client\script\spawnInterruptible.ps1:18 char:13
+ $Kernel32 = Add-Type -MemberDefinition $MethodDefinition -Name 'Kerne ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Add-Type], InvalidOperationException
    + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
 
You cannot call a method on a null-valued expression.
At C:\Users\Owner1\.atom\packages\julia-client\script\spawnInterruptible.ps1:21 char:1
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError
   ) [Add-Type], Exception
    + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand

Add-Type : Cannot add type. Compilation errors occurred.
At C:\Users\Owner1\.atom\packages\julia-client\script\spawnInterruptible.ps1:18 char:13
+ $Kernel32 = Add-Type -MemberDefinition $MethodDefinition -Name 'Kerne ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Add-Type], InvalidOperationException
    + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand

You cannot call a method on a null-valued expression.
At C:\Users\Owner1\.atom\packages\julia-client\script\spawnInterruptible.ps1:21 char:1
+ $status = $Kernel32::SetConsoleCtrlHandler($null, $true)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

using the REPL on its own seems fine, so I'm not sure what this is. sometimes the REPL still starts up, sometimes it throws something like this and crashes Atom

Disabling the powershell wrapper might work around the issue.