waf / CSharpRepl

A command line C# REPL with syntax highlighting – explore the language, libraries and nuget packages interactively.

Home Page:https://fuqua.io/CSharpRepl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IntelliSense ignores .csx

Emik03 opened this issue · comments

commented

Version

0.5.1

What happened?

Expected:

When you manually add code, IntelliSense works.

image

Actual:

When you pass a .csx file containing functions or classes, IntelliSense ignores its existence.

image

Despite that, it can still be successfully called.

image

This worked in v0.3.5, but broke in v0.4, and was apparently not covered by tests.

It was broken as part of the fix to #140.

Possibly a fix is to pass #load myFile.csx to the script runner (which executes the script), but actually read the file and pass the contents to the roslyn workspace (which controls intellisense). This wouldn't handle a CSX file that then contained a #load statement, but that might be OK.

commented

Unfortunately, that workaround doesn't appear to work, unless I misunderstood you.

image

Once again though, the function can be called just fine as this only affects IntelliSense.

image

Hey @Emik03, sorry, my comment was referring to a technical fix. You're right that this is broken in 0.5.1 and will require a bugfix. Thanks for reporting it!

commented

Ah alright, my bad. No problem!

This is now available in v0.6 -- run dotnet tool update --global csharprepl to update to the newest version. Thanks again!

commented

Works beautifully, thank you so much for such an awesome tool!

image