# Juno for JuliaPro conflicts with boost on Windows

**URL:** https://discourse.julialang.org/t/juno-for-juliapro-conflicts-with-boost-on-windows/3453
**Category:** General Usage
**Tags:** question, juno, windows
**Created:** [May 1, 2017, 6:59am UTC](https://discourse.julialang.org/t/juno-for-juliapro-conflicts-with-boost-on-windows/3453 "2017-05-01T06:59:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)
#### Post date: [May 1, 2017, 6:59am UTC](https://discourse.julialang.org/t/juno-for-juliapro-conflicts-with-boost-on-windows/3453/1 "2017-05-01T06:59:38Z")

</div>

I’m running Juno for JuliaPro 0.5.1.1 on Windows 7 with boost C++ library installed. I’m getting this message when I run the first program from IDE, but the program seems to run fine:

> Add-Type : (0) : Warning as Error: Invalid search path ‘C:\boost\stage\lib’ specified in ‘LIB environment variable’ –  
> 'The system cannot find the path specified. ’  
> (1) : using System;  
> At C:\JuliaPro-0.5.1.1.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], Except  
> ion
> - FullyQualifiedErrorId : SOURCE\_CODE\_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
> 
> Add-Type : Cannot add type. Compilation errors occurred.  
> At C:\JuliaPro-0.5.1.1.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:\JuliaPro-0.5.1.1.atom\packages\julia-client\script\spawnInterruptible.ps1:21 char:1
> 
> - $status = $Kernel32::SetConsoleCtrlHandler($null, $true)
> - 
> 
> ```julia
> + CategoryInfo : InvalidOperation: (:) [], RuntimeException
> + FullyQualifiedErrorId : InvokeMethodOnNull
> ```

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [May 1, 2017, 8:30am UTC](https://discourse.julialang.org/t/juno-for-juliapro-conflicts-with-boost-on-windows/3453/2 "2017-05-01T08:30:39Z")

</div>

As a workaround you can disable the powershell wrapper that handles interrupts via `Settings > Packages > julia-client > Enable Powershell Wrapper`.

I’m not sure why you’re getting that error, but then I don’t have any idea what the prebuild boost installer does… Can you check `PATH` for anything suspicious? In particular, does `C:\boost\stage\lib` exist and is it on your `PATH`? Removing it might fix the error as well.

---

<div class="post-metadata">

### Author: ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)
#### Post date: [May 1, 2017, 8:39am UTC](https://discourse.julialang.org/t/juno-for-juliapro-conflicts-with-boost-on-windows/3453/3 "2017-05-01T08:39:27Z")

</div>

‘C:\boost\stage\lib’ specified in ‘LIB environment variable’ didn’t exist, so I deleted LIB. The question is: what Juno was looking for inside LIB?

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [May 1, 2017, 8:50am UTC](https://discourse.julialang.org/t/juno-for-juliapro-conflicts-with-boost-on-windows/3453/4 "2017-05-01T08:50:43Z")

</div>

It wasn’t – the powershell wrapper needs to import some kernel functions from `Kernel32.dll` and `DllImport` apparently tries to look at `PATH` or `LIB` while doing that or something. Not sure if we could work around that somehow…

---

<div class="post-metadata">

### Author: ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)
#### Post date: [May 1, 2017, 6:33pm UTC](https://discourse.julialang.org/t/juno-for-juliapro-conflicts-with-boost-on-windows/3453/5 "2017-05-01T18:33:54Z")

</div>

No problem, I just needed to clean up my Windows environment variables. Thank you for pointing me in the right direction.
