Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 15 17:06
    chaffeqa opened #1508
  • Aug 08 16:07
    lierdakil closed #1507
  • Aug 08 16:07
    lierdakil labeled #1507
  • Aug 08 11:43
    rahamin1 opened #1507
  • Aug 07 12:07
    lierdakil labeled #1505
  • Aug 07 12:07
    lierdakil closed #1505
  • Aug 06 21:51
    TheEmrio closed #1506
  • Aug 05 14:22
    TheEmrio opened #1506
  • Jul 15 15:40
    Xapphire13 closed #1496
  • Jul 10 13:23
    akonwi opened #1505
  • Jul 10 04:44
    nelson6e65 edited #1504
  • Jul 10 04:40
    nelson6e65 opened #1504
  • Jul 08 06:40
    sshquack closed #846
  • Jun 17 16:02
    akonwi opened #1503
  • Jun 02 18:18
    tanfonto opened #1502
  • May 28 17:11
    jazzdragon opened #1501
  • Apr 29 01:12
    dyping closed #1500
  • Apr 28 06:56
    dyping edited #1500
  • Apr 28 06:54
    dyping edited #1500
  • Apr 26 11:38
    dyping opened #1500
Gaurav Khanna
@gauravk92
Is anyone tracking the issue with atom-typescript where it gets stuck on a task building or something and never finishes
the little spinner on the right gets stuck and never finishes, you have to restart atom
Why don't they just add a timeout to the task queue, and basically restart it if it's not completing the task items
It's clearly not ready to be relied on 100%
mLaird
@mLaird
The little spinner has a couple more problems. First, it has no label, even with a right click. What the heck is it and what is it doing? Second, I often can't input/edit code while it is spinning. Whatever it is doing, it should be in the background and not affect any other functionality.
kpgarrod
@kpgarrod
I'm trying to build a project with typescript and redux-persist(npm). The import autocomplete doesn't recognise the module that I'm trying to import. Even if I type the full path to the module, I still get an error can't find module. My import statement is: import {persistStore, autoRehydrate} from '../../node_modules/redux-persist' . The library is https://github.com/rt2zz/redux-persist. Any suggestions please?
Oh, and webpack
Sudeepto
@Sudeepto

Hello Guys. I am new to typescript . I am using Atom text editor and installed the atom-typescript package by issuing apm install atom-typescript .

The moment I save the .tsx file ( My company is using the .tsx extension) I am getting TS Emit failed error. What should I do ?

Valentin Robert
@Ptival
Is there an easy way to figure out what command is issued by atom-typescript to tsc? (the actual parameters)
Basarat Ali Syed
@basarat
@Ptival it doesn't use tsc (command line). It uses the language service. A video on the internals : https://github.com/TypeStrong/atom-typescript/blob/master/CONTRIBUTING.md#video :rose:
Valentin Robert
@Ptival
@basarat ah ok, I ask because of this Microsoft/TypeScript#10149 atom-typescript succesfully compiles all the files, while calling tsc directly fails for the reasons explained
jtuu
@jtuu
every time i update atom-typescript to a new version it breaks the installation and i have to reinstall. sometimes it wont even let me uninstall...
Giovanni Lovato
@heruan
Hi! How can I disable issue reporting for a particular file (or directory)? I often have a split view with old TypeScript files open with many errors.
Tom
@goto1
Hello, are "pending requests" in the bottom right corner (the little "star" icon) meaning that Atom is currently compiling TypeScript files? I am trying out Angular 2 and following the sample programs/examples on in the official docs but those "Pending Requests" are really using up lots of my CPU resources
I figured I would try the "compileOnSave": false but that doesn't seem to be the problem
Hernan Rajchert
@hrajchert
Hi, when I'm importing a module, the plugin offers me an autocomplete that its relative to the current file, but I've configured typescript to use paths relative to my src root. How can I make the autocomplete to recomend me names relative to root?
instead of import default from '../../module/something' do import default from 'module/something'
brugh
@brugh
anybody else here see atom hang when typestrong is installed? i get it every 10min or so
brugh
@brugh
costing me too much time, uninstalling
Erkie
@erkie
Does atom-typescript use the nightly version of typescript? How do I get it to use the stable version of typescript (1.8 currently)?
Basarat Ali Syed
@basarat
@brugh would love to know if it is indeed atom-typescript causing the issue. For me atom crashes (especially on windows) even without atom-ts :-/
mLaird
@mLaird
@basarat Interesting. I don't think I've ever had a crash with Windows 10.
kpgarrod
@kpgarrod
How do I make typings available throughout my project without <<<reference? I know atom /typescript does it for some definitions but I don't know how to do it for my own app
Basarat Ali Syed
@basarat

I know atom /typescript does it for some definition

@kpgarrod Those defintions are defined in a global namespace. i.e. no export at the root level and no export module "foo" :rose:

brugh
@brugh
@basarat well, atom worked fine for me and hardly crashed until I installed atom-typescript after which it crashed every 10 minutes. I now uninstalled it and have no more crashes.
Zohaib Khan
@Zee-Khan
Why does atom-ts autocomplete a module and then when selected say cannot find name?
Screen Shot 2016-08-25 at 1.03.52 PM.png
Screen Shot 2016-08-25 at 1.04.22 PM.png
Basarat Ali Syed
@basarat
@Zee-Khan Good autocomplete tip : Its difficult to know what statement will cause an error before autocompleting. E.g. foo might be wrong but foo.bar might be right :rose:
Yousef Shanawany
@AskYous
Is there anything like a Map in TypeScript? Like Map<string, number>?
Renke Grunwald
@renke
Hi there. Does anyone know a good way to a src and test directory, but not include the test directory in the output? – That is src should be the rootDir, but atom-typescript should still be able to handle tests written in TypeScript.
kpgarrod
@kpgarrod
@basarat: belated thanks!
Valentin Robert
@Ptival
@basarat is there a way to control the frequency or when .js files are emitted? Many times, I open my .js file and see that I got a transient version, something like:
  • I type "background-color: red" and then I hit Ctrl+S
  • I switch to my browser and the .js file contains the string "back"
I'm not even sure how that happens really...
sometimes it's just very sluggish...
Valentin Robert
@Ptival
it takes more than 20 seconds between when I stop typing and when it's done checking, whereas the whole project takes 10 seconds to type-check :(
I feel like it gets stucked checking a bunch of transient edits that are not relevant anymore
Dominic Watson
@intellix
is there any known issue with performance when dealing with angular-cli generated projects in particular? I'm not certain it's to do with particular projects, but there's more information here: https://github.com/TypeStrong/atom-typescript/issues/969#issuecomment-246270518
@Ptival this is exactly my issue. VSCode gives me instant autocomplete suggestions for imports and method usage etc, yet atom-typescript queues up requests and sometimes just stops working entirely. I don't understand what VSCode is doing so differently to make a world of a difference
atom-typescript for me so far has never been usable but I never read about any particular issue for it. Is it largely known about? What am I doing wrong :D
Dominic Watson
@intellix
if I have errors in my code it pretty much just stops giving me autocomplete info. I don't think it's to do with TS 2.0.0 either, as I had the same issues with TS 1.8.x as well
Valentin Robert
@Ptival
@intellix do you get to use vscode-tslint with tsc >= 2?
Dominic Watson
@intellix
aye, you get a warning saying something like: "the CLI is 1.8.0 and this project uses 2.0.2, would you like to use 2.0.2?" - Yes/No
you click yes, and it's using 2.0.2, works perfectly :D
Valentin Robert
@Ptival
wow really!?
Valentin Robert
@Ptival
for me it just used 1.8 and started complaining about "readonly" and other 2.0 features
Dominic Watson
@intellix
VS Code now checks if the workspace folder contains a custom TypeScript version (typically installed via npm install typescript@x.x.x). If this is the case and the typescript.tsdk setting isn't used, then VS Code informs the user about the local version and ask whether the local version should be used.
and it still works super fast, which is why it's confusing as to how VSCode can be so much faster