Recent

Author Topic: Strange editor error - Unable to load HTML stream  (Read 9764 times)

JD

  • Hero Member
  • *****
  • Posts: 1848
Strange editor error - Unable to load HTML stream
« on: October 01, 2011, 05:28:00 pm »
Hi there everyone,

I keep getting a strange annoying error message periodically when I'm working in the Lazarus editor. I've never seen this error message before so I don't know what to make of it. The error says

"URL:
Error: TLIHProviders.GetStream: unable to open file /usr/lib/lazarus/0.9.31//docs/lazdoc.css".

I'm not working with streams for the moment so I don't know where this error comes from. I can't understand why it is trying to open a CSS stylesheet either.

Find attached a screen capture of the error.

I'm using Lazarus 0.9.31/FPC 2.4.4 svn 31847 on Linux Mint 11.

Thanks for your assistance.

JD
« Last Edit: October 01, 2011, 05:32:41 pm by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Strange editor error - Unable to load HTML stream
« Reply #1 on: October 01, 2011, 06:37:23 pm »
Don't know, why iot is missing (or at least not accessible) on your PC.

Maybe you have a different install location...

That css file is used for displaying the hint. You can uninstall the package TurboPowerIproDsgn, in order to get none-html hints. Or just put a css file in place.


JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Strange editor error - Unable to load HTML stream
« Reply #2 on: October 01, 2011, 08:10:47 pm »
I took a look at the /usr/lib/lazarus/0.9.31//docs/ directory in Linux and compared its contents with the equivalent directory in my Windows XP Lazarus installation and I was surprised to see that while the Linux installation was missing the files, the Windows installation had the files!  :o

So I just copied the files from the Windows installation to the Linux installation.

For now it looks OK.
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Strange editor error - Unable to load HTML stream
« Reply #3 on: October 01, 2011, 08:39:28 pm »
Which installer did you use?

The snapshots are sometimes getting broken / partly uploaded (Or at least, IIRC someone once said so). So if you used a snapshot, maybe it was incomplete?

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Strange editor error - Unable to load HTML stream
« Reply #4 on: October 01, 2011, 08:56:00 pm »
Which installer did you use?

The snapshots are sometimes getting broken / partly uploaded (Or at least, IIRC someone once said so). So if you used a snapshot, maybe it was incomplete?

I just downloded the deb files and installed them using the terminal.

It was certainly broken and incomplete. I talked about it here http://lazarus.freepascal.org/index.php/topic,14829.msg78928/topicseen.html#new
« Last Edit: October 01, 2011, 09:00:52 pm by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Strange editor error - Unable to load HTML stream
« Reply #5 on: October 01, 2011, 09:38:14 pm »
The revision you mentioned is a while back. I doubt anyone will remember or be able to check, if they were ok on that day.

the snapshots are entirely automated. A script runs every night,, builds and uploads them.

There is no person, who checks that it completed.

Since you use 0.931 => the easiest for you is to switch to direct SVN. As long as you have an fpc install.

If you dislike using the Makefiles to build lazarus, use your current lazarus, point it to the new sources, and rebuild.

If you have or will have more than one Lazarus, look for  --primary-config-path

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 451
  • Programming is FUN only when it works :)
    • Cool Technology
Re: Strange editor error - Unable to load HTML stream
« Reply #6 on: December 18, 2015, 09:04:58 pm »
I got the same error with the latest and the greatest of Lazarus 1.2.4 and FPC 2.6.2

I just went online searching for lazdoc.css. Then, downloaded it and placed a copy of it in following folder /usr/lib/lazarus/1.2.4/doc/

And the error box went away...  :) :D


Here is the content of the lazdoc.css. Just copy it and paste into a empty file and name it as lazdoc.css.

Code: Pascal  [Select][+][-]
  1. body {
  2.   background: #ffffc0
  3. }
  4.  
  5. body, p, th, td, caption, h1, h2, h3, ul, ol, dl {
  6.   color: black;
  7.   font-family: sans-serif
  8. }
  9.  
  10. div {
  11.   margin: 0 0 0 0px;
  12.   padding: 0 0 0 0;
  13. }
  14.  
  15. div.header {
  16.   margin-bottom: 0px;
  17. }
  18.  
  19. div.title {
  20.   font-weight: bold;
  21.   font-size: 14px;
  22.   color: #005A9C;
  23. }
  24.  
  25. div.focushint {
  26.   text-align: right;
  27.   font-size: 10px;
  28.   color: #005A9C;
  29. }
  30.  
  31. tt, span.keyword, pre {
  32.   font-family: Courier, monospace
  33. }
  34.  
  35. body, p, th, td, caption, ul, ol, dl, tt, span.kw, pre {
  36.   font-size: 14px
  37. }
  38.  
  39. A:link {
  40.   color: blue
  41. }
  42.  
  43. A:visited {
  44.   color: darkblue
  45. }
  46.  
  47. A:active {
  48.   color: red
  49. }
  50.  
  51. A {
  52.   text-decoration: none
  53. }
  54.  
  55. A:hover {
  56.   text-decoration: underline
  57. }
  58.  
  59. h1, h2, td.h2 {
  60.   color: #005A9C
  61. }
  62.  
  63. /* Especially for Netscape on Linux: */
  64. h3, td.h3 {
  65.   font-size: 12pt
  66. }
  67.  
  68. /* identifier in source fragments */
  69. span.identifier {
  70.  
  71. }
  72.  
  73. /* symbols in source fragments */
  74. span.symbol {
  75.   color: darkred
  76. }
  77.  
  78. /* keywords in source fragments */
  79. span.keyword {
  80.   font-weight: bold
  81. }
  82.  
  83. /* comments in source fragments */
  84. span.comment {
  85.   color: darkcyan;
  86.   font-style: italic
  87. }
  88.  
  89. /* directives in source fragments */
  90. span.directive {
  91.   color: darkyellow;
  92.   font-style: italic
  93. }
  94.  
  95. /* numbers in source fragments */
  96. span.number {
  97.   color: darkmagenta
  98. }
  99.  
  100. /* characters (#...) in source fragments */
  101. span.character {
  102.   color: darkcyan
  103. }
  104.  
  105. /* strings in source fragments */
  106. span.string {
  107.   color: blue
  108. }
  109.  
  110. /* assembler passages in source fragments */
  111. span.assembler {
  112.   color: green
  113. }
  114.  
  115.  
  116. td.pre {
  117.   white-space: pre
  118. }
  119.  
  120. p.cmt {
  121.   color: gray
  122. }
  123.  
  124. span.warning {
  125.   color: red;
  126.   font-weight: bold
  127. }
  128.  
  129. span.file {
  130.   color: darkgreen
  131. }
  132.  
  133. table.remark {
  134.   background-color: #ffffc0;
  135. }
  136.  
  137. table.bar {
  138.   background-color: #a0c0ff;
  139. }
  140.  
  141. span.bartitle {
  142.   font-weight: bold;
  143.   font-style: italic;
  144.   color: darkblue
  145. }
  146.  
  147. /* definition list */
  148. dl {
  149.   border: 3px double #ccc;
  150.   padding: 0.5em;
  151. }
  152.  
  153. /* definition list: term */
  154. dt {
  155.   float: left;
  156.   clear: left;
  157.   width: auto; /* normally browsers default width of largest item */
  158.   padding-right: 20px;
  159.   font-weight: bold;
  160.   color: darkgreen;
  161. }
  162.  
  163. /* definition list: description */
  164. dd {
  165.   margin: 0 0 0 110px;
  166.   padding: 0 0 0.5em 0;
  167. }
  168.  
  169.  

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Strange editor error - Unable to load HTML stream
« Reply #7 on: December 18, 2015, 10:14:02 pm »
I got the same error with the latest and the greatest of Lazarus 1.2.4 and FPC 2.6.2
The latest (for testing) is 1.6RC1 / Otherwise 1.4.4

The downloads are on http://sourceforge.net/projects/lazarus/files/

If your linux distro has its own package system then ignore this. The packages distributed by individual linux distros are made by the maintainers of those distros, and the Lazarus team has no influence on them.

If the error is present in 1.6RC1 from above link, then it can be fixed (in that case report on the bugtracker, with clear steps how to reproduce / maybe it is related to the hint in the source editor).

If 1.6RC1 is not affected then wait for your distro to ship 1.6. If the problem is only present in your distro but not in the official installer of the same version, then report a bug with your linux distro

 

TinyPortal © 2005-2018