Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Code Hints Don't work for me any longer (JS only) #12322

Closed
DavidPotesta opened this issue Mar 22, 2016 · 19 comments
Closed

Code Hints Don't work for me any longer (JS only) #12322

DavidPotesta opened this issue Mar 22, 2016 · 19 comments

Comments

@DavidPotesta
Copy link

Everything has worked fine on Release 1.5. I updated to Release 1.6 and now, even when I create a simple html file, JS hints and intellisense doesn't work. It works on another computer with Windows, but not on my Mac. All I do is this:

<body>
     <script type="text/javascript">

     </script>
</body>

When I type within the script tags, document. and I expect to see all of the functions (GetElementById etc..., nothing happens. If I add HTML in the body, code hints and intellisense still work. Its just for JS.

@petetnt
Copy link
Collaborator

petetnt commented Mar 23, 2016

Hi @BorjeoVonDingle,

do you see any errors on the console (Debug -> Show Developer Tools -> Console)

@kenzo44
Copy link

kenzo44 commented Mar 23, 2016

Hi @BorjeoVonDingle,

An extension maybe causing this problem, try Debug > Reload Without Extensions and get back with the results.

@DavidPotesta
Copy link
Author

There were no errors in the console.
I rebooted and that didn't fix the problem.
I then uninstalled Brackets (dragged application to trash on OSX) and reinstalled, rebooted again.
Still the same problem!
I shut down for the night and when I started work again this morning everything seems fine now!

Interesting aside is that even though I reinstalled Brackets, all of my extensions and preferences were still there after the reinstall. Is there a preferences and settings folder/file somewhere that one would need to get rid to completely get rid of Brackets?

@kenzo44
Copy link

kenzo44 commented Mar 23, 2016

What version of OS X are you running?

When you trash any application on OS X, you are just deleting the app and not the source and cache folders.

This should help you unistall Brackets completely - https://github.com/adobe/brackets/wiki/Cache-Folder

@petetnt
Copy link
Collaborator

petetnt commented Mar 23, 2016

@BorjeoVonDingle can you also check that the Node binary used by Brackets is unblocked in the firewall.

I am not on OSX myself, but the steps are:

  1. Choose System Preferences from the Apple menu.
  2. Click Security or Security & Privacy.
  3. Click the Firewall tab.
  4. Unlock the pane by clicking the lock in the lower-left corner and enter the administrator username and password.
  5. Click Advanced to customize the firewall configuration.

The Node executable can be found on the Brackets folder root: On Windows it's C:/Program Files (x86)/Brackets/node.exe so I think it should be something like ~/Applications/Brackets/node

Also on the developer tools, can you check out if there are anything weird going on in the Network tab.

And like @kenzo44 mentioned just now, try to delete (or better yet, rename) the Cache folder under Application Support and launch Brackets again.

@DavidPotesta
Copy link
Author

kenzo44
I'm on 10.10.3 Yosemite. I too read that article, but after following it, I discovered that I do not have a Brackets folder at the specified location at all: Mac: ~/Library/Application Support/Brackets/cef_data

petetnt,
Those 5 steps that you just detailed only lead to the Advanced Firewall configuration page; there are 3 checkboxes for automatic log out preferences, system wide admin login preferences, and disable remote control infrared receiver with a Pair button. I don't see that this has anything to do with uninstalling Brackets. Maybe you pasted the wrong snippet?

@kenzo44
Copy link

kenzo44 commented Mar 23, 2016

@BorjeoVonDingle follow these steps for completely uninstalling Brackets - https://www.youtube.com/watch?v=E6jgAIYr8to

@petetnt
Copy link
Collaborator

petetnt commented Mar 23, 2016

@BorjeoVonDingle Oh right, these steps follow those:

  1. Click the Firewall Options button
  2. Click the Add Application (+) button.
  3. Select the app you want to allow incoming connection privileges for.
  4. Click Add.
  5. Click OK.

More info here: https://support.apple.com/en-us/HT201642

@DavidPotesta
Copy link
Author

kenzo44
Thanks! That's what I needed to learn how to do. user\Library is hidden. I was going to HD Root\Library and its not there. Once I turned on the ability to view hidden files and folders, voila! I am now able to see that folder.

Thanks again!
BVD

@kenzo44
Copy link

kenzo44 commented Mar 23, 2016

No problem. Glad I could help.

@K-Thompson
Copy link

I quickly read through this. Is code hints working now or not? Seems to have turned into "how do I remove Brackets issue".

Personally, I feel code hint issues need to be tracked. I think hinting and auto complete is unreliable.

See Code Hints Unreliable #11570

[Bug with JS autocompletion #12197](Bug with JS autocompletion #12197)

@DavidPotesta
Copy link
Author

K-Thompson,
Code hints are a problem for me still. Sometimes they work and sometimes they don't. It's really unpredictable as far as when they will or when they won't. Hopefully, someone is looking into this.

Thanks for following up to clarify!

BVD

@crash5936
Copy link

crash5936 commented Aug 7, 2016

Hello guys,

I have probably run into the same issue and I'm not able to fix it in any way.

I've tried reinstalling it even with deleting the config/cache, checked my firewall, but I'm simply not getting hints for JS anymore (I've tried HTML and it works fine). I've checked the console and network tabs in developer tools, console seems to return an error that I think is related
brackets_error_log_tern.txt

I was able to get to get the hints running for a while, it wasn't completing automatically, but when I pressed ctrl + space multiple times, it showed hints as expected, but it stopped working since and I was not able to replicate the behaviour.

Let me know if I can provide you with further information!

EDIT: Okay, I've noticed, there is a specific file that breaks JS hinting... after I open the file below, JS hinting doesn't work in any file (uploading it as .txt as github doesn't support .js attachments)

program.js.txt

As I've mentioned earlier, let me know if I can give you further info.

@ficristo
Copy link
Collaborator

Hi @crash5936, could you try the PR #11569 and see if fixes the issue for you?

@crash5936
Copy link

@ficristo Hello, thanks a lot, it actually does fix the issue. I saw the thread before, but because I'm pretty new to git and programming in general, I was discouraged by what seemed to be quite a complicated process. Now that you've pointed me in the direction, I went through the whole process and actually learned quite a few new things, so thanks for that :)

@marcelgerber
Copy link
Contributor

@crash5936 pointed out that #11569 fixed the issue for his copy of Brackets, so I just assume the overall issue is resolved as well. #11569 has been merged and will come to you in Release 1.8.
Please let us know if it still doesn't work for you when the Release ships.

@vvks
Copy link

vvks commented Sep 9, 2016

@marcelgerber hi, i just wanted to point out that i am currently running Brackets from source to try out the fix for #11826 and since then code hints have stopped working for me. i deleted the cef_data folder and i saw no relevant error in the console.

they used to work fine earlier.

@zaggino
Copy link
Contributor

zaggino commented Sep 9, 2016

@vvks please run npm install in the cloned brackets directory and try again

@vvks
Copy link

vvks commented Sep 9, 2016

@zaggino yes, after running npn install it works fine. thank you..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants