Skip to content

VS2015 "Error executing script" when typing import statement #11462

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

Closed
nippur72 opened this issue Oct 8, 2016 · 9 comments
Closed

VS2015 "Error executing script" when typing import statement #11462

nippur72 opened this issue Oct 8, 2016 · 9 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Needs More Info The issue still hasn't been fully clarified

Comments

@nippur72
Copy link

nippur72 commented Oct 8, 2016

TypeScript Version: typescript@2.1.0-dev.20161008
Visual Studio: VS2015CE Update 3

Code

import { Store } from ".    <--- caret is placed here

Actual behavior:
When typing the dot . at line 1, the following error window appears in visual studio:
error executing script

@mhegazy
Copy link
Contributor

mhegazy commented Oct 10, 2016

Thanks for reporting this. the error window is shown because you have enabled devMode at some point. if you feel these errors are in your way, you can disable it and the errors will be reported silently without the popup.

@mhegazy mhegazy added the Bug A bug in TypeScript label Oct 10, 2016
@mhegazy mhegazy added this to the TypeScript 2.1 milestone Oct 10, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Oct 10, 2016

looks related to completion in imports recent changes. @aozgaa can you take a look.

@aozgaa
Copy link
Contributor

aozgaa commented Oct 11, 2016

Hey @nippur72 , I'm having trouble reproducing this issue. Can you post a more detailed repro? In particular, what does the directory structure look like?

@nippur72
Copy link
Author

@aozgaa opening the project on a different machine (same OS, VS and TS) does not give the error, so it must be something related to that particular machine, but I have no clue where to look for. Do you want me to try a fresh install of VS ?

Regarding the directory structure, the only strange thing is that node_modules is in the parent folder respect where the .sln / .csproj is:

project
+ node_modules
+ src
   + myproject.sln
   + mytsfiles.ts   

@aozgaa
Copy link
Contributor

aozgaa commented Oct 13, 2016

I wasn't able to reproduce the issue using commit 31a55e6 of TypeScript on VS 2015 Update 3 with TypeScript 2.0 Beta installed (I enabled dev mode and pointed VS towards my local build of TypeScript).

If the problem persists on the same machine after pulling the latest version of TS off master and building, let me know an I will look into this further.

@aozgaa aozgaa added the Needs More Info The issue still hasn't been fully clarified label Oct 13, 2016
@nippur72
Copy link
Author

@aozgaa more clues:

If I use TS 2.0.3

npm install typescript@latest 
powershell .\VSDevMode.ps1 14 -tsScript node_modules/typescript/lib

there is no error.

But if I switch to nightly drops:

npm install typescript@next
powershell .\VSDevMode.ps1 14 -tsScript node_modules/typescript/lib

the error is back.

(The powershell command is from here).

@mhegazy mhegazy modified the milestones: TypeScript 2.1, TypeScript 2.1.2 Oct 27, 2016
@Methodician
Copy link

So just to clarify for those of us that want to develop without that error popping up every time we write an import statement, which is the appropriate course of action?

remove the latest version of TS for Visual and install v2.0.3 (worked)
(OR)
edit the registry to disable devMode (which I didn't knowingly enable at any time) (didn't try)

I did the easy one and switched back to version 2.0.3 which seems to have stopped the issue for now but I worry that I'll be missing out on some important update that occurred since then... and there's no guarantee that I'll be able to update upon the next versioning

@mhegazy
Copy link
Contributor

mhegazy commented Nov 1, 2016

So just to clarify for those of us that want to develop without that error popping up every time we write an import statement, which is the appropriate course of action?

Switching off DevMod as noted earlier should make the pop up go away.

@aozgaa
Copy link
Contributor

aozgaa commented Nov 10, 2016

Still unable to repro. Would be happy to look into again this if you could link to a (minimal) reproducing project.

@aozgaa aozgaa closed this as completed Nov 10, 2016
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Nov 19, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Needs More Info The issue still hasn't been fully clarified
Projects
None yet
Development

No branches or pull requests

4 participants