Error on starting julia 1.3.1 from juno julia-client 0.11.3 (but it still starts)

I get the following when I start julia from the repl window in Juno. I do not get the error when I start julia without juno:

Add-Type : (0) : Source file ‘C:\Windows\TEMP\jmrvm0rd.0.cs’ could not be found
(1) : using System;
At C:\Users\larry.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

WARNING: (0) : No source files specified

(1) : using System;
Add-Type : Cannot add type. Compilation errors occurred.
At C:\Users\larry.atom\packages\julia-client\script\spawnInterruptible.ps1:18 char:13

  • $Kernel32 = Add-Type -MemberDefinition $MethodDefinition -Name 'Kerne …
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:slight_smile: [Add-Type], InvalidOperationException
    • FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand

Starting Julia…
You cannot call a method on a null-valued expression.
At C:\Users\larry.atom\packages\julia-client\script\spawnInterruptible.ps1:21 char:1

  • $status = $Kernel32::SetConsoleCtrlHandler($null, $true)
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
                 _
     _       _ _(_)_     |  Documentation: https://docs.julialang.org
    (_)     | (_) (_)    |
     _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
    | | | | | | |/ _` |  |
    | | |_| | | | (_| |  |  Version 1.3.1 (2019-12-30)
    

/ |_|||_’_| | Official https://julialang.org/ release
|__/ |

julia>

Weird. What Windows version are you running?

Disabling the powershell wrapper in julia-client’s settings should work around the error though.

Sorry for the delay…

Win 10 Pro Version 1903 Build 18362.592 installed 7/19/2019

So, the problem was:

Source file 'C:\Windows\TEMP\fjxbgjrb.0.cs could not be found

The reason was C:\Windows\Temp was read only for some reason. I made it r/w and the problem goes away