JPMoresmau / dbIDE

Prototype of a web based, database driven Haskell IDE
17 stars 2 forks source link

Missing code-mirror #5

Open ndmitchell opened 9 years ago

ndmitchell commented 9 years ago

I can compile hwide, and run it, but the file http://localhost:8023/static/js/codemirror-4.5/lib/codemirror.js serves up:

<!doctype html>
<head>
  <title>Haskell Web IDE</title>
  <script src="driver/threepenny-gui.js"></script>
  <link rel="stylesheet" type="text/css" href="driver/threepenny-gui.css"/>
  <link rel="stylesheet" type="text/css" href="static/js/codemirror-4.5/lib/codemirror.css">
  <script src="static/js/codemirror-4.5/lib/codemirror.js"></script>
  <script src="static/js/codemirror-4.5/mode/haskell/haskell.js"></script>
  <script src="static/js/codemirror-4.5/mode/yaml/yaml.js"></script>
  <script src="static/js/codemirror-4.5/mode/javascript/javascript.js"></script>  
  <script src="static/js/hwide.js"></script>
</head>
<body>
  <noscript>Please enable JavaScript.</noscript>
</body>
</html>

I can fix that by pasting code-mirror into the right directory, but that's not a very nice user experience. Either ship it by default, or make a quick check and then error out saying "no code-mirror, here's how you get it, and here's where you put it".

ndmitchell commented 9 years ago

Ah, I see this is basically a dupe of #2 - so already an FAQ :)