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

NAG installation interferes with Juno REPL? #652

Open
aromemusa opened this issue Oct 29, 2019 · 1 comment
Open

NAG installation interferes with Juno REPL? #652

aromemusa opened this issue Oct 29, 2019 · 1 comment

Comments

@aromemusa
Copy link

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

@pfitzseb
Copy link
Member

Disabling the powershell wrapper might work around the issue.

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

2 participants