qwfy / doc-browser Goto Github PK
View Code? Open in Web Editor NEWA documentation browser with support for DevDocs, Dash and Hoogle, written in Haskell and QML
License: Mozilla Public License 2.0
A documentation browser with support for DevDocs, Dash and Hoogle, written in Haskell and QML
License: Mozilla Public License 2.0
I see you are planning Hoogle integration. Please feel free to reach out with any questions about it.
Similarly, once it's done, let me know and I can put a link from the Hoogle repo.
After considerable experimentation (in a docker instance, to protect my machine) I got doc-browser to compile after:
sudo apt install qt5-default qtwebengine5-dev qml-module-qtlocation qml-module-qtwebengine liblzma-dev libghc-regex-pcre-dev pkg-config curl
curl -sSL https://get.haskellstack.org | sh
echo "PATH=~/.local/bin/:\$PATH" >> ~/.bashrc
. ~/.bashrc
stack install c2hs alex happy hsqml
stack install
(I did, actually, have curl installed before, but I added it for clarity.)
However, when I run doc-browser, I get an error:
$ doc-browser
wait for server slot
start new server
QGLXContext: Failed to create dummy context
QQmlExpression: Expression file:///tmp/doc-browser-gui-1439252/ui/main.qml:25:9 depends on non-NOTIFYable properties:
()_2::controller
file:///tmp/doc-browser-gui-1439252/ui/main.qml:353:17: QML Rectangle: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:332:13: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:383:13: QML TabView: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:214:13: QML Rectangle: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:276:13: QML ScrollView: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:203:9: QML ColumnLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:325:9: QML ColumnLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)
Aborted (core dumped)
you might consider adding this to your dependencies information in the installation section of your readme. the package depends on the liblzma-dev C library.
Everything was normal until i get an error in the build process, i comment the error in the aur page, but i will open this issue just in case:
==> Starting build()...
hsqml > configure
hsqml > [1 of 2] Compiling Main ( /tmp/stack-943855886665b2e0/hsqml-0.3.5.1/Setup.hs, /tmp/stack-943855886665b2e0/hsqml-0.3.5.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/Main.o )
hsqml > [2 of 2] Compiling StackSetupShim ( /home/isaac/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack-943855886665b2e0/hsqml-0.3.5.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/StackSetupShim.o )
hsqml > Linking /tmp/stack-943855886665b2e0/hsqml-0.3.5.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/setup ...
hsqml > Configuring hsqml-0.3.5.1...
hsqml > build
temporary > configure
hsqml > Preprocessing library for hsqml-0.3.5.1..
hsqml > c2hs: Prelude.head: empty list
temporary > Configuring temporary-1.2.1.1...
temporary > build
temporary > Preprocessing library for temporary-1.2.1.1..
temporary > Building library for temporary-1.2.1.1..
temporary > [1 of 1] Compiling System.IO.Temp
temporary > copy/register
temporary > Installing library in /home/isaac/.stack/snapshots/x86_64-linux-tinfo6/305408ce369eb0814e5232964a789b4954dcfebc8d6adf85604cc5c8f016fbd3/8.2.2/lib/x86_64-linux-ghc-8.2.2/temporary-1.2.1.1-4TJXTiiLU8dBtgQeCIE3kM
temporary > Registering library for temporary-1.2.1.1..
Progress 2/95
-- While building package hsqml-0.3.5.1 (scroll up to its section to see the error) using:
/tmp/stack-943855886665b2e0/hsqml-0.3.5.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
==> ERROR: build() failed
Even if I go up to see, I can't figure out what the error would be, and this happened all the time i wanted to install it, and I realized that I get diferent ouputs everytime I tried to install it:
hsqml > configure
hsqml > [1 of 2] Compiling Main ( /tmp/stack-0226985b693018ed/hsqml-0.3.5.1/Setup.hs, /tmp/stack-0226985b693018ed/hsqml-0.3.5.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/Main.o )
hsqml > [2 of 2] Compiling StackSetupShim ( /home/isaac/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack-0226985b693018ed/hsqml-0.3.5.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/StackSetupShim.o )
hsqml > Linking /tmp/stack-0226985b693018ed/hsqml-0.3.5.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/setup ...
hsqml > Configuring hsqml-0.3.5.1...
hsqml > build
text-format > configure
hsqml > Preprocessing library for hsqml-0.3.5.1..
hsqml > c2hs: Prelude.head: empty list
text-format > Configuring text-format-0.3.1.1...
text-format > build
text-format > Preprocessing library for text-format-0.3.1.1..
text-format > Building library for text-format-0.3.1.1..
text-format > [1 of 7] Compiling Data.Text.Format.Functions
text-format > [2 of 7] Compiling Data.Text.Format.Int
text-format > [3 of 7] Compiling Data.Text.Format.Types.Internal
text-format > [4 of 7] Compiling Data.Text.Format.Types
text-format > [5 of 7] Compiling Data.Text.Buildable
text-format > [6 of 7] Compiling Data.Text.Format.Params
text-format > [7 of 7] Compiling Data.Text.Format
text-format > copy/register
text-format > Installing library in /home/isaac/.stack/snapshots/x86_64-linux-tinfo6/305408ce369eb0814e5232964a789b4954dcfebc8d6adf85604cc5c8f016fbd3/8.2.2/lib/x86_64-linux-ghc-8.2.2/text-format-0.3.1.1-2onosZrh6OG5dPyURny2UI
text-format > Registering library for text-format-0.3.1.1..
Progress 2/94
-- While building package hsqml-0.3.5.1 (scroll up to its section to see the error) using:
/tmp/stack-0226985b693018ed/hsqml-0.3.5.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
==> ERROR: build() failed.
These 2 dependencies should be specified in the installation instructions.
Even after that I get the following error:
setup: The program 'moc' version >=5.0 && <6.0 is required but it could not be
found.
Where can I find moc
?
There is a ton of valuable documentation under /usr/share/doc
, but there seem to be no proper tools for accessing it:
https://askubuntu.com/questions/24072/how-are-typical-users-expected-to-read-the-documentation-in-usr-share-doc
Maybe a realm for this tool to consider?
Is it possible?
I've copied docset directory to ~/.config/doc-browser/Dash folder. But nothing happens.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.