Giter VIP home page Giter VIP logo

doc-browser's People

Contributors

noctux avatar qwfy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doc-browser's Issues

Ask any questions you may have about Hoogle

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.

Installation on Ubuntu 20.04 and Linux Mint 20.1

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)

Error building in Archlinux AUR

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.

Requires happy and c2hs

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.