Giter VIP home page Giter VIP logo

Comments (5)

wJoenn avatar wJoenn commented on September 22, 2024 1

I don't get those errors when disabling Crystalline but then I'm back to this issue #185

from vscode-crystal-lang.

nobodywasishere avatar nobodywasishere commented on September 22, 2024

This is probably due to the wrong main file being set. Some fixes should be coming soon but in the meantime can you post the contents of the crystal output channel when this happens, and your projects file structure?

from vscode-crystal-lang.

wJoenn avatar wJoenn commented on September 22, 2024

Output

[Crystal] loading lsp /home/joenn/.asdf/plugins/crystal/bin/crystalline
[Info  - 11:37:35 PM] LSP server is ready.
[Spec] (kemal) $ /home/joenn/.asdf/shims/crystal spec --junit_output /tmp/202433-2488-qk5rfi.6yvnj.xml --no-color   --dry-run

File Structure

|-- ROOT
|   |-- bin
|   |-- config
|   |   |-- initializers
|   |   |   |-- cors.cr                  <-- undefined constant Kemal::Handler error
|   |   |   |-- database.cr              <-- require jennifer here
|   |   |-- config.cr                    <-- require Kemal then all initializers here
|   |-- db
|   |   |-- migrations
|   |   |   |-- create_tasks.cr          <-- undefined constant Jennifer::Migration::Base error
|   |-- lib
|   |   |-- jennifer
|   |   |-- kemal
|   |-- spec
|   |-- src
|   |   |-- controller
|   |   |-- models
|   |   |   |-- user.cr                  <-- undefined constant Jennifer::Model::Base error
|   |   |-- services
|   |   |-- app.cr                       <-- require config/config.cr
|   |-- shards.lock
|   |-- shards.yml

Not that all the errors I get are from classes I inherit from.

class CorsHandler < Kemal::Handler
end

class CreateTasks < Jennifer::Migration::Base
end

class User < Jennifer::Model::Base
end

from vscode-crystal-lang.

nobodywasishere avatar nobodywasishere commented on September 22, 2024

As you're using Crystalline, the issue either lies with that or with how you've set it up. Do these errors still come up when the LSP is disabled?

from vscode-crystal-lang.

nobodywasishere avatar nobodywasishere commented on September 22, 2024

When using crystalline, try setting an entrypoint using the process described here

from vscode-crystal-lang.

Related Issues (20)

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.