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

Can't get intellisense to work #12

Closed
hmansell opened this issue Apr 22, 2014 · 17 comments
Closed

Can't get intellisense to work #12

hmansell opened this issue Apr 22, 2014 · 17 comments

Comments

@hmansell
Copy link

If I create a new notebook and type open System. I don't get any pop-up. Do I need to do something to work it work?

@prosconi
Copy link
Collaborator

It's hard to determine what is going on without more information. In general intellisense should work if everything is in order. Do you get any Javascript errors when looking in the Javascript console (F12 for Chrome)? Can you execute a cell? Any errors in the console window?

@mndrake
Copy link

mndrake commented Apr 23, 2014

I also had issues with intellisense after upgrading from v1 to v2. I did a full uninstall and had to follow the manual installation instructions to get it to work. I still get intermittent issues getting intellisense to work. Looking at the Javascript console I only see one error.

Remote Address:127.0.0.1:8888
Request URL:http://127.0.0.1:8888/static/components/jquery/jquery-2.0.2.min.map
Request Method:GET
Status Code:404 Not Found

@prosconi
Copy link
Collaborator

Ahhh, yes, after upgrading from v1 to v2 the Javascript client code was changed. The Javascript is served from the users profile directory (which ifsharp.exe automatically creates). If the Javascript file already exists, it won't overwrite it. To force overwrite, ifsharp.exe --install. The directory structure it creates is: <UserDirectory>\.ipython\profile_ifsharp

I think the min.map error is an issue with ipython itself.

Intermittent issues is definitely a problem. There are some edge cases that aren't fully flushed out yet.

@hmansell
Copy link
Author

The ifsharp.exe --install fixed it for me, thanks!

I see this works nicely for built-in references but I tried a nuget reference to Deedle and I don't get member completion on the object, e.g.:

#N "Deedle"
open Deedle

let s = series [ 1 => 1]
s.

I get only the members of System.Object in the on the s..

Also the open Deedle doesn't seem to be having the effect on intellisense that I expect. I can access Deedle.Series. and see the functions, but I can't do just Series. and get them.

Still, it's incredibly impressive that it works at all!

@mndrake
Copy link

mndrake commented Apr 23, 2014

Same here for me -- ifsharp.exe --install fixed it, but I also do not get full intellisense for Deedle.

@prosconi
Copy link
Collaborator

I'm looking into the Deedle problem and the error seems to be:

The module/namespace 'System.Runtime.CompilerServices' from compilation unit 'mscorlib' did not contain the namespace, module or type 'ExtensionAttribute'

Anybody have any idea what this means? Maybe @tpetricek knows?

@hmansell
Copy link
Author

Maybe this helps?

The attribute was moved from one assembly to another from .NET 4.0 to .NET 4.5.

@mndrake
Copy link

mndrake commented Apr 23, 2014

I don't know if this is related to the CompilerServices issue above, but when I am unable to get intellisense in a cell I see the following error in the java console.

Uncaught TypeError: undefined is not a function cell.js:270

@prosconi
Copy link
Collaborator

I think @hmansell has figured it out. I think the problem is because the FSC is automatically referencing .NET framework v4.0 assemblies instead of v4.5. I asked the FSC people for some help, hopefully we can get this DEEDLE intellisense problem resolved.

@tpetricek
Copy link
Member

As a side note - which version of Deedle are you using? The older release was compiled against .NET 4.5, but the most recent one (alpha on NuGet) requires just .NET 4.0. Not sure if that matters here though!

@hmansell
Copy link
Author

I was doing #N "Deedle" which I assume uses the latest non-pre-release version.

@prosconi
Copy link
Collaborator

I get Intellisense when I do #N "Deedle/1.0.0-alpha2/pre". This definitely supports our hypothesis of v4.0 vs v4.5

@mndrake
Copy link

mndrake commented Apr 24, 2014

I also got intellisense with #N "Deedle/1.0.0-alpha2/pre".

@mndrake
Copy link

mndrake commented Apr 24, 2014

The other intellisense issue I was getting seems to be linked to having markdown cells in a notebook. I noticed in the fsharp.js file there is a filter for 'code' cells, but not in 'custom.js'. I do not know javascript or what all is being down within the scripts, I just noticed that the files I don't get intellisense with have markdown cells between F# code blocks and the intellisense works after I remove the markdown cells. I tried altering the javascript files myself, but ended up bricking IFSharp. Thanks for the ifsharp.exe --install tip earlier to help me recover from my follies. 😄

@prosconi
Copy link
Collaborator

That's definitely a bug, only code cells should be sent to the server for evaluation. Made a new issue #13

@hmansell
Copy link
Author

yes, intellisense for Deedle works for me too on alpha2 version.

Is this running against .NET 4.0 somehow?

@sylvanc
Copy link
Collaborator

sylvanc commented Oct 18, 2016

The ExtensionAttribute problem is a FAKE issue. Closing it here, although it's definitely a real problem.

@sylvanc sylvanc closed this as completed Oct 18, 2016
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

5 participants