Can't open .js files in projects

Hi- I'm (under-)using VC++ Express as an editor and organiser for some JavaScript files, as well as some C files. All files are on network drives.

I have no problem with the C (.c, .h) files, but with the JavaScript (.js) files, I can add them to my project, but when I attempt to open them (double-click or right-click, open), I just get (for example):

x:\scripts\gaia\harikiri\omt\include\Idle_Tests.js Cannot open file

I get the same error if I copy the file onto my local disk ie. it appears to be the extension (.js) which is causing the problem.

I've just moved from MSVC++ 6 which I was using for the same purpose, and no doubt I'm just making an Express beginner's mistake. Please can someone tell me what it is

Regards

John



Answer this question

Can't open .js files in projects

  • N Adams

    More info- it seems to be a filename case issue, but specific to ClearCase, which we use for configuration management.

    In the VC++ "can't open..." error message, all letters in the path are lower case, but in fact at least some should be upper case (it's on a Unix system, where case is significant). The files which do open ok have paths with no upper case characters.

    However, if I create a subdirectory on my Unix "home" (ie. not under ClearCase) directory containing upper case letters, add a file to it, and add that to VC++, it opens fine.


  • Nagendra Jammi

    Problem solved, or at least a work-around found, by ticking the 'Case Insensitive MVFS' box on the MVFS tab of the ClearCase Windows Control Panel tool.

    Thanks to Christophe Beunens on the IBM developerWorks Rational ClearCase forum.

  • VDA

    Mmmm... in fact, there are some .c and .h files in other directories that also won't open, although I didn't have any problem adding them (and the .js files) to the project as 'existing items' ie. I added them by double-clicking on files displayed in the file selector dialog. No (mis-)typing of file names.

    Perhaps it's just something about our network... any ideas

    Just to repeat, I had (and still have) no problems using MSVC++ 6.


  • Can't open .js files in projects