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 install syntax highlighting #2841

Closed
nrbrook opened this issue Feb 13, 2018 · 6 comments
Closed

Can't install syntax highlighting #2841

nrbrook opened this issue Feb 13, 2018 · 6 comments

Comments

@nrbrook
Copy link

nrbrook commented Feb 13, 2018

Trying to double click objc-syntax-highlighting as instructed to do to install syntax highlighting gives the error
screen shot 2018-02-13 at 11 33 37
VSIXInstaller_65cc708c-4a5b-4d8c-a77f-ab718bb19c74.log

Latest visual studio installed (15.5.6), all windows updates installed (Windows 10 1709), winobjc-tools at latest version on chocolatey (v0.2.171219)

@DHowett-MSFT
Copy link

It looks like the objc-syntax-highlighting VSIX you're installing is targeted to VS 2015. Installing winobjc-tools via chocolatey should automatically install the appropriate extension for your version of VS.

It does, however, look like we never changed the version number on the VS2017 VSIX, so it's hard to say precisely which package you were trying to install. Sorry!

@nrbrook
Copy link
Author

nrbrook commented Feb 13, 2018

So what can I do?

@DHowett-MSFT
Copy link

The correct VSIX should have been installed by the winobjc-tools chocolatey package. Can you check "Extensions and Updated" (Tools menu) for Objective-C Language Service? Here's mine:

image

@nrbrook
Copy link
Author

nrbrook commented Feb 14, 2018

Yes, that is installed. However, Objective-C code looks like this.
screen shot 2018-02-14 at 11 40 45

Is that full syntax highlighting? Also I'm not getting any code completion.

@DHowett-MSFT
Copy link

Alas, that's the level of syntax highlighting (and Intellisense: #40) Visual Studio 2017 supports for Objective-C. At best it can color strings, indent per your indenting settings, and smart-complete "", (), {}, and [].

There's an alternative mode available if you uninstall the Objective-C language service that will offer completion for words that are already present in the file you're editing. It's got a few other pitfalls, though, like not properly completing matched pairs and perhaps indenting.

@nrbrook
Copy link
Author

nrbrook commented Feb 14, 2018

Ok, thanks. I would use Xcode for most editing anyway, but I wasn’t sure if I was missing something.

@nrbrook nrbrook closed this as completed Feb 14, 2018
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

2 participants