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

Code completion not working #18

Closed
LukaHorvat opened this issue Feb 27, 2014 · 16 comments
Closed

Code completion not working #18

LukaHorvat opened this issue Feb 27, 2014 · 16 comments

Comments

@LukaHorvat
Copy link

This might be just me not knowing how to operate this thing but I can't seem to get code completion working.

I've added a .brackets-typescript file to my project and it contains this

{
    "sources" : [
        "index.ts"
    ],
    "compileOnSave": false,

    "target": "ES5",
    "module": "commonjs",
    "outDir": "./bin/",
    "noImplicitAny": true
}

I opened the folder of my project in Brackets and I started typing but nothing is happening. For example, I tried

var a: String = "hello";

and when I type

a.

No auto-complete menu jumps out.
Is there something else I need to enable or have installed?

@fdecampredon
Copy link
Owner

Hm I just tried your setup an it seems working for me ^^"
Could you give me a little more detail ? What is your OS? Which brackets version ?
Lastly could you show developer tools (Debug Menu > Show developers tool) and tell me if brackets logged any error ?

@LukaHorvat
Copy link
Author

I'm on Windows using the latest version of Brackets.
The only error in the log is "Error watching project root."

Could that be the problem?

@fdecampredon
Copy link
Owner

Yeah pretty much, how did you install brackets-typescript ? Could you also tell me where this log come from ? (Chrome console should tell you the file and the line)

@LukaHorvat
Copy link
Author

I installed it via the build in extension manager by searching for "typescript". In any case, I think this is a brackets issue and doesn't have anything to do with your extension.

Anyways, the error is on line 977 in the /project/ProjectManager.js file

@fdecampredon
Copy link
Owner

I seriously have no idea where that could come from, you can try to debug a little (put a breakpoint at that line and see where the error stack trace come from) and if you find a little more info paste it here, or wait the 0.2 which should be released in few days and which contains a complete refactoring of the codebase.

@fdecampredon
Copy link
Owner

Another thing please try to test if you get an error without my extension and if there is still an error fill a bug to the brackets core thanks

@LukaHorvat
Copy link
Author

Yeah. Turning the extensions off doesn't fix the issue so I think you don't need to worry about it. I can still let you know if I fix it but it might not be worth it since I'm using XP on this machine and that might as well be the problem.

@fdecampredon
Copy link
Owner

closing the issue so

@LukaHorvat
Copy link
Author

Hey. I'm on my Win8 PC now and the extension isn't working here either. I'm starting to think I'm doing something very wrong because I cloned your project and opened IT'S folder in Brackets, opened index.ts and still no auto-complete. The green tick at the bottom stays green no matter what I type in.

Is there some special way to invoke the extension or do I need to have something else installed? What could be the issue here?

@fdecampredon
Copy link
Owner

Hm what do you mean by 'I cloned your project', do you use brackets-typescript from the github url ?

@LukaHorvat
Copy link
Author

No no. I installed the extension normally. I just mean I cloned this project because it also uses typescript so I thought that maybe something was wrong with the way I set up my project and that's why the extension wasn't working. But it didn't work when I opened your project in Brackets either.

@fdecampredon
Copy link
Owner

strange, I never tried in a windows 8 however, still the same things could you tell me if an error is logged in the console ?

@LukaHorvat
Copy link
Author

Nope. No errors and the same symptome of the green tick always staying green at the bottom no matter what I type is present.

Btw, I know this must be quite frustrating but I really can't tell you any more detail on what might be wrong since I genuinely don't know more.

@fdecampredon
Copy link
Owner

Hm I seriously cannot tell also ...
You have 2 solutions now :

  • wait for 0.2 which should be published when sprint 37 is released ( I just wait for Fix #5137 async linting adobe/brackets#6530 ) it should be a lot more robust than the actual version.
  • debug a little and tell me more about where the problem is (you should try to put some breackpoint in the TypeScriptProjectManager in project.js, especially In the createProjects section and follow what happens)

@danieleds
Copy link

Same problem here (v0.1.0, Ubuntu, brackets sprint 37)

@PaoloCifariello
Copy link

same problem on same version (sprint 37)

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

4 participants