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

#nowarn "211" in loaded script files is ignored #1126

Closed
tpetricek opened this issue Apr 27, 2016 · 2 comments
Closed

#nowarn "211" in loaded script files is ignored #1126

tpetricek opened this issue Apr 27, 2016 · 2 comments
Labels
Area-FSI Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.

Comments

@tpetricek
Copy link
Contributor

When you have a script with #I that points at a non-existing folder, but you also have #nowarn "211" to hide the warning, you still get a warning.

To reproduce, create a file, say C:\temp\nada.fsx containing

#nowarn "211"
#I "totally-non-existing-folder"

And then run the following in F# Interactive:

Microsoft (R) F# Interactive version 14.0.23020.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
For help type #help;;

> #load @"C:\temp\nada.fsx";;

[Loading C:\temp\nada.fsx]
C:\temp\nada.fsx(2,1): warning FS0211: The search directory 
    'C:\temp\totally-non-existing-folder' could not be found
namespace FSI_0002

Is this supposed to be this way, or is it a bug? /cc @dsyme

@dsyme dsyme added Bug Area-FSI Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. labels May 26, 2016
taylorwood added a commit to taylorwood/visualfsharp that referenced this issue Jun 3, 2016
@forki
Copy link
Contributor

forki commented Jun 25, 2016

this is fixed in #1239, right? can we close it?

@dsyme
Copy link
Contributor

dsyme commented Jun 26, 2016

Yes, thanks

@dsyme dsyme closed this as completed Jun 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-FSI Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Projects
None yet
Development

No branches or pull requests

3 participants