-
Notifications
You must be signed in to change notification settings - Fork 202
TrueCrypt : tsconfig creation and behavior when it's not there #217
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
Comments
Thanks. Can you delete the tsconfig file and see if there is an error in the console : https://raw.githubusercontent.com/TypeStrong/atom-typescript-examples/master/screens/debugPromises.gif |
hmm strange, you are right when I use a folder with a single ts file I get the message and the tsconfig is created. But when I open a file from a folder containing many ts file it doesn't seem to work I will investigate some more... later: it doesn't have any thing to do with the size of the folder. |
...now it looks like it has something to do with the drive the folder is on, I have many projects on truecrypt volumes: when I open a ts file from windows explorer into atom, and the file is on a truecrypt (ntfs format) volume the tsconfig does not get created, when I copy the project to a "real" ntfs volume the creation works. |
@hansrwindhoff on that and see if |
yes it gets created |
@hansrwindhoff run atom-typescript with |
I am sorry I dont get what I have to do? tried to edit the parent.js file in the package folder and started atom but dont get any new messages? |
so here is some log info: D:\temp\LIFOFIFO> now the same project but on a truecrypt vol: U:\code\LIFOFIFO> atom --dev -f lifofifo.ts U:\code\LIFOFIFO> |
So I did some searching for tsconfig in the lib folder of the plugin and then put some break points into the projectService.js file, but I am not hitting the function calls. you could tell me what to look for? Or we could do a team viewer session? |
Basically a call to I can't use teamviewer at the moment. |
I guess the break points are not being hit because the code executes in a worker thread/process? Even if I load the file from the real volume they are not being hit although the tsconfig is created... |
Yes. If you have |
So I have in parent.js : ///ts:ref=globals I am not sure how to otherwise do this? Could you explain? |
@hansrwindhoff you should have in ///ts:ref=globals
/// <reference path="../globals.ts"/> ///ts:ref:generated
var debug = true; // HERE!
var childprocess = require('child_process');
var exec = childprocess.exec;
var spawn = childprocess.spawn;
var workerLib = require('./lib/workerLib');
var parent = new workerLib.Parent();
if (debug) {
parent.sendToIpc = function (x) {
return x;
};
} TIP: for later : if you open |
OK great, now the break points are being hit. U:\code\LIFOFIFO> atom --dev -f lifofifo.ts |
You could start disabling code paths in atom-typescript till the hanging stops. In any case I'm blaming truecrypt 😛 |
I am. Its a pleasure to see your analysis and that you are enjoying this tool. So lots of ❤️. Looking at that error it seems that perhaps it isn't related. That error is potentially the worker simply running out of memory (project too large ... or open for a long time perhaps). |
well the project has only 4 files, out of which one is a ts file with ~10 lines, no subfolders, no node_modules folder, I was distracted for about 10-15min after opening atom... and it is totally reproducible :) |
moving it off of truecrypt fixes it? |
Ok, I copied the four files over to a normal drive and have by now been waiting for ~15min, break point has not been hit and the plugin works...so I think moving it off fixes it. |
I think it might be worthwhile investigating a truecrypt alternative :) |
I finally figured out what the problem was/is: Turns out it has nothing to do with truecrypt or bitlocker to which I had moved. export function getProjectSync(pathOrSrcFile: string): TypeScriptProjectFileDetails { and it works for small folders, but when the tsconfig.json is found in my large code folder atom isn't ready yet (UI thread not running I guess) and so the message never gets displayed. |
its fixed :), thanks Bas! |
I seem to remember that a couple of weeks ago the plugin would behave differently, the tsconfig was created automatically...
However, now when I open a .ts file from a folder that has no tsconfig, for the most part the plugin doesn't work, does not compile and is mostly inactive except for syntax coloring. It took me a long time to figure out that the missing tsconfig was the problem. The plugin does not show a message (that I could find) or indicate what is missing.
When I add a tsconfig to the folder I have to restart atom to get it recognized. After that every thing is fine. Is this intended behavior?
Otherwise the plugin is really great!
The text was updated successfully, but these errors were encountered: