Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #2628

Closed
Open
Created 12 years ago by Administrator@rootOwner
  • New issue

  • Report abuse

  • New issue

  • Report abuse

"No preview for this file type" for various .pm files

Closed

"No preview for this file type" for various .pm files

Created by: pnull

for many of our .pm files, gitlab doesn't show the diff on the commit page. instead a message "No preview for this file type" is shown.

Those files are perl module files. they are plain text files - no binaries or something like that.

How can i make sure, gitlab shows those files ?

Linked issues
0


  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: riyad

    Is it in the commit diffs or in the file view?

    By Administrator on 2013-01-17T00:13:51 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: pnull

    I've seen it in the commit diffs - i'll check that in the file view when i'm in the office, later...

    By Administrator on 2013-01-17T07:57:44 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: pnull

    In the file view i get a download link but can't see the file contents directly in the browser. I have several .pm files with that issue.

    By Administrator on 2013-01-17T22:11:00 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: rroemhild

    I have a similar problem with javascript files. If a JQuery javascript file example1.js starts with a newline, gitlab handles it as a binary file, doesn't show the commit diff and provides a download link in file view. Remove the newline(s) example2.js or add a comment in line one fix the issue for me.

    $ file *.js
    example1.js: Emacs v18 byte-compiled Lisp data
    example2.js: ASCII text, with very long lines
    $ head -n3 *.js
    ==> example1.js <==
    
    (function($) {
        var functName = "socials", functClass = "extSocials";
    
    ==> example2.js <==
    (function($) {
        var functName = "socials", functClass = "extSocials";
        var extSocials = function(node, options) {

    By Administrator on 2013-01-22T11:10:08 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: bbodenmiller

    Thanks for the issue report. Please reformat your issue to conform to the issue tracker guidelines found in our contributing guidelines.

    By Administrator on 2013-06-08T13:43:05 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: Razer6

    Can't reproduce on 5.3 stable. Newlines at start are filtered in UI but exist in raw file. I close this for now. Please report back if the error still exist.

    By Administrator on 2013-07-03T10:47:26 (imported from GitLab project)

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
Milestone
No milestone
None
None
Time tracking
Due date
None
None
4
Labels
Awaiting feedback Diff/commit history Feature request Git/Grit
Assign labels
  • No matching results
  • Manage project labels
Confidentiality
Not confidential

You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

Lock issue
Unlocked
participants
Reference:

Menu

Projects Groups Snippets
Help