In Visual Studio I'm using Gulp to compile Sass, using gulp-sass 4.0.2. When I use map.get() to get a mapped value, I get an error in Task Runner Explorer, but when I use map-get(), it works fine. So apparently it recognizes the latter syntax, but not the former.
Is there any documentation on these 2 different syntaxes, details on which is compatible with what, etc.?
In this documentation there is one mention of the map-get() syntax at the top, with no explanation or details. And in this documentation there's no mention of the map-get() syntax at all.
Related
Wondering if anyone got find all references working for VS Code with Golang.
Using VS Code version: 1.23.1.
Seems like it has all the necessary extensions needed like (go-langserver, guru). Still, find all references returns no results.
I had the same problem with a project with modules (outside GOPATH).
guru does not support modules.
(See: https://github.com/golang/go/issues/24661)
After I installed gopls and enabled it in VS Code via the setting go.useLanguageServer find all references did worked again.
(The VS Code Go extension doesn't use gopls by default.)
See: https://github.com/golang/vscode-go#language-server
When running my project on Visual Studio I get this error. Is annoying. I cannot even compile
It looks like a clash between the Promise definition in the NS modules and the ES6 typings.
As mentioned in answer to similar question here, try building against tns-core-modules.es6.d.ts instead of the usual tns-core-modules.d.ts.
I've just started using PhpStorm (version 10) and I'm now trying to set up some Karma and Jasmine tests on my project.
These tests work as expected but I fail to get rid of errors stating
'Unresolved function or method describe()'.
Same goes for 'it', 'expect' etc.
Seem like PhpStorm doesn't recognize the syntax at all.
What I've done so far is I've installed (with npm) the needed libraries, Karma, Jasmine, Karma-jasmine etc. I've also went to setting->Languages & frameworks->Javascript and tried adding some libraries to my project. I've downloaded and included the ones I'm using: Jasmine, Karma-Jasmine, Karma but the errors remain.
I then added a new library (Libraries->Add...) and included the directories from node_modules (which I've otherwise excluded from my project files) and sure enough I got rid of the errors but only after including a library called 'hoek'. I don't even know where that came from (dependency of something I've installed) but it seems to take care of the errors, unlike jasmine, jasmine-core etc. more likely ones.
Why is this and what could I do to more easily tell PhpStorm to use Jasmine syntax with my test files?
To get Jasmine functions resolved, I'd suggest installing Jasmine typescript stubs (Settings/Languages & Frameworks/JavaScript/Libraries, Download..., choose 'jasmine' from stubs dropdown). I'd also suggest removing other libraries you have configured (Jasmine, Karma-Jasmine, Karma) from JavaScript/Libraries to avoid possible conflicts (of course, you still need to have them installed via npm to make your code work)
I'm using enumerators (experimental) in my project. Pub Build (Generate JS) in my Dart Editor does not work due to the enums. In my console, this command:
dart2js file.dart --enable-enum
does work, but it is inconvinient to do it through the console. Is there any way to add arguments to the default command in Dart Editor (--enable-enums) so it'd allow it to compile into JS?
Running it by default in Dartium works and when copying and pasting the server url (http://localhost:8080/index.html), the dart2js is triggered and it starts working (after average compilation time).
EDIT: Yes, I have enums enabled in my editor.
EDIT2: To enable enums in dart2js, I have this transformer in pubspec.yaml:
transformers:
- $dart2js:
commandLineOptions: [--enable-enum]
However, I get this error in a file, which uses enums:
Directive not allowed here.
part of thing;
^^^^^^^^^^^^^^^^
[Info from Dart2JS]:
It's weird that it works in the console with the same arguments and not in the editor.
I have filled a bug report here.
As of 2016, the enumerators are fully implemented.
I use Visual Studio for development and I am quite used to Intellisense. But when writting CoffeeScript you don't really get any Syntax Checking or Intellisense.
Is there a plugin for VS that would allow this?
Thanks
You can't have more than syntax checking/coloring with coffeescript (on any IDE) AFAIK.
As an alternative, you can use TypeScript to get the full Visual Studio tooling support (and stay close to the javascript), or some transcompilers that transform code to javascript, for C# there is Saltarelle and for CIL (.NET bytecode, so compatible with any .NET language), I just found JSIL but I have no idea how well it works.
Note than the generated code "look" can be important for debugging and using external libraries get a bit of work to be included in Typed languages.
For js code readability I would recommand TypeScript (similar to coffeescript, even easier, but less powerfull as a language).
Saltarelle code looks readable (didn't tried a lot), for JSIL I have no idea.
A list of languages that compiles to JS: https://github.com/jashkenas/coffee-script/wiki/List-of-languages-that-compile-to-JS
Webstorm and all of the JetBrains IDEs recently added some code completion and refactoring support. It knows what methods are in my own classes and will prompt to complete as I type. The red squiggly underline compile as you type is not quite there yet but it is coming. I bet Webstorm is the first to implement CS source map also. They have added so much in the last 11 months.
Check this out: http://visualstudiogallery.msdn.microsoft.com/2b96d16a-c986-4501-8f97-8008f9db141a
Here is another: http://chirpy.codeplex.com/
I think this should do what you want.